Skip to content
Development
Command

/fix-issue

Fix a GitHub issue by number: read the issue, create a branch, implement the fix, and open a PR.

From plugin
rohitg00-claude-code-toolkit
2.5k199 skills138 agents199 commands
Install
$ npx -y skills add rohitg00/awesome-claude-code-toolkit --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/fix-issue

Context preview

What this command does when you run it.

Fix a GitHub issue by number: read the issue, create a branch, implement the fix, and open a PR.

Command definition

fix-issue.md

Fix a GitHub issue by number: read the issue, create a branch, implement the fix, and open a PR.

Steps

1. Fetch the issue details using `gh issue view <number> --json title,body,labels,assignees`. 2. Parse the issue body to understand the problem, expected behavior, and reproduction steps. 3. Create a feature branch: `git checkout -b fix/<number>-<slug>` where slug is derived from the title. 4. Analyze the codebase to locate relevant files mentioned in or related to the issue. 5. Implement the fix:

  • Make minimal, focused changes that address only the reported problem.
  • Add or update tests that cover the fixed behavior.

6. Run the project test suite to verify the fix does not introduce regressions. 7. Commit changes with `fix: <title> (closes #<number>)`. 8. Push the branch and create a PR: `gh pr create --title "Fix #<number>: <title>" --body "Closes #<number>"`.

Format

Issue #<number>: <title>
Status: <Open/Closed>
Labels: <label1>, <label2>

Analysis:
- Root cause: <description>
- Files affected: <list>

Changes made:
- <file>: <what changed>

Tests: <pass/fail summary>
PR: <url>

Rules

  • Always read the full issue including comments before starting.
  • Never modify files unrelated to the issue.
  • If the issue is unclear or lacks reproduction steps, ask for clarification before proceeding.
  • Reference the issue number in commit messages and PR description.
Read more
Ships withrohitg00-claude-code-toolkit

The most comprehensive toolkit for Claude Code -- 135 agents, 35 curated skills (+400,000 via SkillKit), 42 commands, 176+ plugins, 20 hooks, 15 rules, 7 templates, 15 MCP configs, 26 companion apps, 53 ecosystem entries, and more.

Get the whole plugin