Fix Issue

Fetch a GitHub issue, implement the fix, verify acceptance criteria and quality gates pass, then open a pull request. Use when the user types /fix-issue <number> or says "fix issue

rockclaver 67a7017 2 files · 2.7 KB Updated

File contents

fix-issue

1. Fetch issue

gh issue view <number> --json title,body,labels,assignees,comments

Extract - [ ] criteria; derive from description if absent.

2. Branch

git checkout -b fix/issue-<number>-<slug>   # kebab-case, 5 words max

Never commit to main.

3. Implement

Scope to the issue only. Commit referencing #<number>.

4. Quality gates

npx tsc --noEmit && npm run lint && npm test

Fix failures first, then verify each - [ ] criterion. Never open the PR on a failing gate.

5. Open the PR

gh pr create \
  --title "<issue title>" \
  --body "$(cat <<'EOF'
## Summary
<bullet list of changes>

## Closes
Closes #<number>

## Acceptance criteria
<criteria list, ✅ per completed item>

## Test plan
<how to verify>

🤖 Generated with [Claude Code](https://claude.com/claude-code)
EOF
)"

Edge cases

Not found → error, stop. No tests → note, flag in PR. Ambiguous → ask first.

See REFERENCE.md for language-specific quality gate commands.

rockclaver/systemcraft/tree/main/skills/fix-issue commit 67a7017933

Frequently asked questions

npx skillmds@latest add rockclaver/fix-issue