Skip to content
Development
Skill

/fix-issue

Take a GitHub issue from number to tested fix — read the issue and comments, reproduce, locate the cause, fix with a regression test, and prep a PR that closes it.

From plugin
dotclaude
87114 skills7 agents8 hooks

Claude Code

$ npx -y skills add poshan0126/dotclaude --skill fix-issue --agent claude-code

SKILL.md

fix-issue.SKILL.md
name: fix-issue
description: Take a GitHub issue from number to tested fix — read the issue and comments, reproduce, locate the cause, fix with a regression test, and prep a PR that closes it.
argument-hint: "[issue number or URL]"
disable-model-invocation: true
allowed-tools:
  - Bash(gh issue view *)
  - Bash(gh issue list *)
  - Bash(git status)
  - Bash(git diff *)
  - Bash(git log *)
  - Bash(git checkout *)
  - Bash(git branch *)

Work a GitHub issue end to end. `$ARGUMENTS` is the issue number or URL; if omitted, run `gh issue list --assignee @me --state open` and ask which one.

Step 1: Understand the issue

The live issue thread (or your open assigned issues, when no number was given) is injected below — no need to fetch it again:

!`gh issue view $ARGUMENTS --comments 2>/dev/null || gh issue list --assignee @me --state open 2>/dev/null || echo "(no issue arg — paste the issue details)"`

  • The thread above is the real spec — read the body AND the discussion; the decision that changes the fix is often in comment 7.
  • Extract: expected behavior, actual behavior, reproduction steps, acceptance criteria, and any decisions already made in the thread.
  • If the issue is ambiguous on something that changes the fix (which behavior is correct? which platform?), ask the user — do NOT guess and do NOT ask in the issue thread without being told to.

Step 2: Classify and branch

  • **Bug** → follow `/debug-fix` discipline: reproduce it first (failing test or manual repro), then investigate. No fix before reproduction.
  • **Small feature / chore** → follow `/tdd` discipline if a test runner exists: failing test, minimum code, refactor.
  • Propose a branch named `fix/issue-$NUMBER-<slug>` (or `feat/...`), matching any existing convention visible in `git branch -a`. Confirm before creating.

Step 3: Locate and fix

  • Find the code path from the symptoms: grep for the error message, the feature's entry point, or names from the issue.
  • Make the smallest change that satisfies the acceptance criteria. Resist adjacent refactoring — note it for a follow-up instead.
  • Every bug fix ships with a regression test that fails on the old code. If you can't write one, say why in the PR body.

Step 4: Verify against the issue

  • Re-run the reproduction from Step 1 — confirm the reported behavior is gone.
  • Run the tests for the touched area, then lint/typecheck.
  • Walk the acceptance criteria one by one; quote each with its status.

Step 5: Ship it

  • Hand off to `/ship` (or follow its discipline): commit message and PR body must include `Fixes #$NUMBER` so the merge auto-closes the issue.
  • PR body: one-line cause, one-line fix, the regression test, and anything from the issue thread that influenced the approach.
  • After the PR exists, offer to comment the PR link on the issue (`gh issue comment` — requires confirmation; it's outward-facing).

Rules

  • Never start coding before Step 1 is complete — the thread often contains a decision that invalidates the obvious fix.
  • One issue per branch per PR. If the issue is really three issues, say so and fix the one that was asked.
  • If reproduction is impossible (can't access the environment, missing credentials), report exactly what's missing instead of fixing blind.
Read more
@poshan0126
Ships withdotclaude

A lean .claude/ setup for daily development. Seven specialist agents, twelve workflow skills, six modular rules, and eight safety/productivity hooks. No bloat, no model assignments, no opinions you can't override.

87114 skills7 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
871
Star history of poshan0126/dotclaude on GitHub, a chart by star-history.com

Other skills on dotclaude.

catchup

catchup

Rebuild working context fast after /clear or a fresh session — reads the handoff note and the branch's changes, then summarizes…

claude-md

claude-md

Keep CLAUDE.md current and lean — capture this session's durable learnings into it (default), or `audit` it for stale commands,…

context-budget

context-budget

Estimate per-turn token cost of `.claude/` and `CLAUDE.md` — always-loaded vs path-scoped vs invoked-only, top contributors,…

debug-fix

debug-fix

Find and fix a bug. Default is careful (reproduce, investigate, test). Add `--fast` for emergency production mode (hotfix branch,…

explain

explain

Explain code. Default is a one-sentence summary plus a mental model. Add `verbose` to also get an ASCII diagram, key details, and…

onboard

onboard

Get oriented in an unfamiliar codebase fast. An Explore-subagent-driven tour that goes from a one-paragraph overview down to…

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills3w309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc3w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react2w252k
@facebook@facebookInstall Skill

Questions about fix-issue.

Which coding agents can use fix-issue?
fix-issue installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.