Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions .github/workflows/ai-all.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: AI Workflows

on:
pull_request:
types: [opened, synchronize]
issue_comment:
types: [created]
pull_request_review:
types: [submitted]
check_suite:
types: [completed]
push:
branches: [main]
workflow_dispatch:
inputs:
commit_sha:
description: "Commit SHA to review (leave blank for latest main)"
required: false
type: string

permissions: {}

jobs:
# Push to main -> re-dispatch as workflow_dispatch so post-merge suites
# can use the commit SHA via inputs.commit_sha (workflow_run context workaround).
post-merge-dispatch:
if: github.event_name == 'push'
runs-on: ubuntu-latest
permissions:
actions: write
steps:
- name: Re-trigger as workflow_dispatch
env:
WORKFLOW_NAME: ${{ github.workflow }}
GH_TOKEN: ${{ github.token }}
run: |
gh workflow run "$WORKFLOW_NAME" \
--repo "${{ github.repository }}" \
--ref main \
-f commit_sha="${{ github.sha }}"

# All non-push events -> suite-all routes to correct sub-suite
all:
if: github.event_name != 'push'
permissions:
actions: read
checks: read
contents: write
id-token: write
issues: write
pull-requests: write
uses: JacobPEvans/ai-workflows/.github/workflows/suite-all.yml@v0.8.0
with:
caller_event: ${{ github.event_name }}
review_prompt: "Focus on Claude Code plugin structure, skill authoring patterns, and hook configuration best practices"
commit_sha: ${{ inputs.commit_sha || github.sha }}
secrets: inherit
26 changes: 26 additions & 0 deletions .github/workflows/ai-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: AI CI

on:
workflow_run:
workflows: ["Validate Claude Code Plugin"]
types: [completed]

permissions:
actions: read
contents: write
id-token: write
issues: write
pull-requests: write

concurrency:
group: ai-ci-${{ github.event.workflow_run.head_branch }}
cancel-in-progress: true

jobs:
ci-suite:
uses: JacobPEvans/ai-workflows/.github/workflows/suite-ci.yml@v0.8.0
with:
repo_context: "Claude Code plugins: skills, hooks, and slash commands for Claude Code CLI"
ci_structure: "validate-plugin.yml (JSON schema validation for plugin manifests)"
workflow_name: "Validate Claude Code Plugin"
secrets: inherit
13 changes: 13 additions & 0 deletions .github/workflows/best-practices.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Best Practices
on:
schedule:
- cron: "0 3 * * 2,5"
workflow_dispatch:
permissions:
contents: read
id-token: write
pull-requests: write
jobs:
best-practices:
uses: JacobPEvans/ai-workflows/.github/workflows/best-practices.yml@v0.8.0
secrets: inherit
18 changes: 18 additions & 0 deletions .github/workflows/code-simplifier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Code Simplifier
on:
schedule:
- cron: "0 4 * * 0,3,6"
workflow_dispatch:
permissions:
contents: write
id-token: write
pull-requests: write

concurrency:
group: code-simplifier
cancel-in-progress: true

jobs:
simplify:
uses: JacobPEvans/ai-workflows/.github/workflows/code-simplifier.yml@v0.8.0
secrets: inherit
82 changes: 82 additions & 0 deletions .github/workflows/issue-auto-resolve.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
name: Issue Auto-Resolve

on:
issues:
types: [opened, labeled]
workflow_dispatch:
inputs:
issue_number:
description: "Issue number to resolve"
required: true
type: string

permissions:
actions: write
contents: write
id-token: write
issues: write
pull-requests: write

jobs:
dispatch:
if: github.event_name == 'issues'
runs-on: ubuntu-latest
permissions:
actions: write
issues: write
steps:
- name: Dispatch as workflow_dispatch
env:
GH_TOKEN: ${{ github.token }}
WORKFLOW_NAME: ${{ github.workflow }}
REPO: ${{ github.repository }}
ISSUE_NUM: ${{ github.event.issue.number }}
EVENT_ACTION: ${{ github.event.action }}
LABEL_NAME: ${{ github.event.label.name }}
run: |
# Filter labeled events to only ai:ready
if [[ "$EVENT_ACTION" == "labeled" && "$LABEL_NAME" != "ai:ready" ]]; then
echo "Label '$LABEL_NAME' is not ai:ready — skipping"
exit 0
fi

# Daily dispatch limit (cost control safety valve)
TODAY=$(date -u +%Y-%m-%d)
COUNT=$(gh run list \
--workflow "$WORKFLOW_NAME" \
--repo "$REPO" \
--event workflow_dispatch \
--created ">=$TODAY" \
--json databaseId --jq 'length')
if [[ "$COUNT" -ge 5 ]]; then
echo "Daily dispatch limit reached ($COUNT/5) — skipping"
exit 0
fi

# Remove ai:ready label so it can be re-applied to re-trigger
if [[ "$EVENT_ACTION" == "labeled" && "$LABEL_NAME" == "ai:ready" ]]; then
gh issue edit "$ISSUE_NUM" --repo "$REPO" --remove-label "ai:ready" || true
fi

gh workflow run "$WORKFLOW_NAME" \
--repo "$REPO" \
-f issue_number="$ISSUE_NUM"

run-triage:
if: github.event_name == 'workflow_dispatch'
uses: JacobPEvans/ai-workflows/.github/workflows/issue-triage.yml@v0.8.0
secrets: inherit
with:
issue_number: ${{ inputs.issue_number }}

resolve-issue:
needs: [run-triage]
if: >-
always() &&
github.event_name == 'workflow_dispatch' &&
(needs.run-triage.result == 'success' || needs.run-triage.result == 'skipped')
uses: JacobPEvans/ai-workflows/.github/workflows/issue-resolver.yml@v0.8.0
secrets: inherit
with:
repo_context: "Claude Code plugins: skills, hooks, and slash commands for Claude Code CLI"
issue_number: ${{ inputs.issue_number }}
14 changes: 14 additions & 0 deletions .github/workflows/issue-hygiene.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Issue Hygiene
on:
schedule:
- cron: "0 7 * * 0"
workflow_dispatch:
permissions:
contents: read
id-token: write
issues: write
pull-requests: read
jobs:
hygiene:
uses: JacobPEvans/ai-workflows/.github/workflows/issue-hygiene.yml@v0.8.0
secrets: inherit
14 changes: 14 additions & 0 deletions .github/workflows/issue-sweeper.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Issue Sweeper
on:
schedule:
- cron: "0 6 * * 0"
workflow_dispatch:
permissions:
contents: read
id-token: write
issues: write
pull-requests: read
jobs:
sweep:
uses: JacobPEvans/ai-workflows/.github/workflows/issue-sweeper.yml@v0.8.0
secrets: inherit
19 changes: 19 additions & 0 deletions .github/workflows/next-steps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Next Steps
on:
schedule:
- cron: "0 5 * * 1,4"
workflow_dispatch:
permissions:
contents: write
id-token: write
pull-requests: write
issues: write

concurrency:
group: next-steps
cancel-in-progress: true

jobs:
next-steps:
uses: JacobPEvans/ai-workflows/.github/workflows/next-steps.yml@v0.8.0
secrets: inherit
Loading