skills/add-issue-handler/SKILL.md
Add a GitHub Actions workflow that uses Claude Code to automatically fix bugs and implement features when issues are opened or labeled
npx skillsauth add stevenmburns/dot-claude-files add-issue-handlerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Create a GitHub Actions workflow that triggers when a bug or enhancement issue is opened or labeled, and invokes Claude Code to fix or implement it using the project's /fix-issue and /build-issue skills.
The project's Claude skills live in ~/.claude. The workflow must clone that repo in CI so the skills are available at runtime.
git -C ~/.claude remote get-url origin
Convert the result from SSH to HTTPS format:
[email protected]:user/repo.git → https://github.com/user/repogit checkout -b ci/add-claude-issue-handler
.github/workflows/claude-issue-handler.ymlCreate the directory if needed: mkdir -p .github/workflows
Write the file, substituting the actual HTTPS dot-claude-files URL for <DOT_CLAUDE_URL>:
name: Claude Issue Handler
on:
issues:
types: [opened, labeled]
jobs:
fix-bug:
if: contains(github.event.issue.labels.*.name, 'bug')
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Claude config
run: git clone <DOT_CLAUDE_URL> ~/.claude
- uses: anthropics/claude-code-action@v1
with:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
prompt: "/fix-issue ${{ github.event.issue.number }}"
build-feature:
if: contains(github.event.issue.labels.*.name, 'enhancement')
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Claude config
run: git clone <DOT_CLAUDE_URL> ~/.claude
- uses: anthropics/claude-code-action@v1
with:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
prompt: "/build-issue ${{ github.event.issue.number }}"
git add .github/workflows/claude-issue-handler.yml
git commit -m "ci: add Claude Code issue handler workflow"
ANTHROPIC_API_KEY to repo secrets: Settings → Secrets and variables → Actions → New repository secret/create-pr when ready to mergetools
Scan open GitHub issues, flag duplicates, and summarize with suggested priorities
testing
Interactively clean up the current branch's commits (squash fixups, reword sloppy messages, reorder, drop) before merging — especially important on repos using rebase-merge where every branch commit lands on main verbatim
tools
Analyze the changes in the current PR and suggest a more accurate title if the current one no longer fits
data-ai
Merge the open PR for the current branch into main, delete the branch, and pull main