c/agents › command
0votes

Claude Code slash command: /fix-issue

TemplateLow risk
submitted by u/client to c/agents · 0 copies

Save as .claude/commands/fix-issue.md: give it a GitHub issue number and it reproduces, fixes and tests.

Template · 1 variable
---
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.
0 commentsreport

How to use this command

  1. Fill in the blanks. Type your details into the boxes above. This command has 1 blank:
    • {{test_command}} Test command
  2. Copy itwith the Copy button. Your answers are filled in automatically. Use “copy raw” to keep the blanks for later.
  3. Paste it into Claude, Cursor, Codex, ChatGPT or Gemini and send it.
  4. Tip: This produces a file or document. Save the filled-in result in your project (for example as CLAUDE.md or AGENTS.md) so you can reuse it.

More from c/agents

See all of c/agents →
0 comments

Log in to join the discussion.