0votes
Claude Code slash command: /fix-issue
TemplateLow riskSave as .claude/commands/fix-issue.md: give it a GitHub issue number and it reproduces, fixes and tests.
--- description: Reproduce, fix and test a GitHub issue argument-hint: <issue number> allowed-tools: Bash(gh issue view:*), Bash({{test_command}}:*) --- 1. Read the issue: `gh issue view $ARGUMENTS`. 2. Reproduce it: write a failing test that shows the bug. Run it and confirm it fails. 3. Find the root cause. Explain it in two sentences before changing code. 4. Fix it with the smallest reasonable change. 5. Run `{{test_command}}`; the new test and the full suite must pass. 6. Summarize: cause, fix, test added, and anything you're unsure about. Don't push or open a PR unless I ask.

Log in to join the discussion.