fix-issue

fix-issue is a skill for Claude Code from smartwhale8/claude-playbook. It costs 35 tokens per session (436 once invoked), scanned A, original, MIT.

A workflow for taking a GitHub issue from investigation through a code fix, tests, verification, commit, and pull request. GitHub issues are written requests or reports about changes needed in a project.

In plain words
What is it for?
Reading an issue, finding its root cause, changing the relevant files, adding a regression test, running checks, committing the fix, and opening a pull request.
Why use it?
It reduces the chance of patching only a visible symptom or forgetting tests, type checks, linting, or the final code review step.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the claude-playbook plugin — 5 skills, 4 agents, 3 hooks shipped together

Good fit Reading an issue, finding its root cause, changing the relevant files, adding a regression test, running checks, committing the fix, and opening a pull request.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/smartwhale8/claude-playbook/fix-issue
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add smartwhale8/claude-playbook --skill fix-issue
Clone the repo
git clone --depth 1 https://github.com/smartwhale8/claude-playbook

Made for: Claude Code.

Or install claude-playbook, the plugin that ships this one along with the rest of its 5 skills, 4 agents, 3 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for fix-issue

README.md
[![agentmods](https://agentmods.dev/badge/skills/smartwhale8/claude-playbook/fix-issue/github.svg)](https://agentmods.dev/skills/smartwhale8/claude-playbook/fix-issue)
Your own site
<a href="https://agentmods.dev/skills/smartwhale8/claude-playbook/fix-issue"><img src="https://agentmods.dev/badge/skills/smartwhale8/claude-playbook/fix-issue/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for fix-issue

Your own site · 80×15
<a href="https://agentmods.dev/skills/smartwhale8/claude-playbook/fix-issue"><img src="https://agentmods.dev/badge/skills/smartwhale8/claude-playbook/fix-issue.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 436 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00035 $0.00436
Opus 5.5 $0.00014 $0.00174
Sonnet 5.5 $0.00007 $0.00087
Haiku 4.5 $0.00003 $0.00044

Measured 1mo ago against content hash ddf3dad5e763, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

fix-issue scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/fix-issue/SKILL.md · 38 lines

What it actually says

Fix issue $ARGUMENTS

The issue

!gh issue view $ARGUMENTS 2>&1 || echo "Could not read issue $ARGUMENTS. Check the number and that gh is authenticated."

Workflow

  1. Understand. Read the issue above. If the expected behaviour is ambiguous, ask before writing code. A wrong fix costs more than a question.

  2. Reproduce. Find the failing behaviour in the code. Do not proceed on a theory you have not confirmed.

  3. Plan. State the root cause and the change you intend, before editing. If the cause is unclear, say so instead of guessing.

  4. Branch. git switch -c fix/<short-description>. Never commit to the default branch.

  5. Test first. Write a test that fails because of this bug. Run it and watch it fail. A regression test that never failed proves nothing.

  6. Fix. Address the cause. If the fix spans several files, explain why in the pull request.

  7. Verify. Run the new test, then the full suite, then lint and type checks. Paste what the commands returned. Never assert success without the output.

  8. Commit and open the pull request. Reference the issue. The description covers what changed, why, how it was verified, and any risk.

Rules

  • The root cause, never the symptom. If the first idea is a workaround, keep looking.
  • Do not change anything the issue did not ask for.
  • If the fix turns out to need a decision that is not yours to make, stop and report what you found.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +14 lines · +21 tokens per session ddf3dad5e763
  2. 1mo ago First seen · 24 lines · 14 tokens per session scan A 901bf053ce6e

Subscribe to this mod's changes

fix-issue is a skill published in the GitHub repository smartwhale8/claude-playbook (43 stars, last pushed 1mo ago), licensed MIT. It adds 35 tokens to every session and 436 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

verification-before-completion

Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims.

JeremyDev87/codingbuddy · 38 tokens

checkpoint

Save all work, update memory, commit, push, and prepare to end the session. Use when user says "save my work", "wrap up", or "I'm done for now". Use at natural breakpoints or when context is getting large.

john-wilmes/claude-agentic-coding-playbook · 52 tokens

create-project

Scaffold a new project with git, .gitignore, CLAUDE.md, AGENTS.md, GitHub repo, and memory directory. Use when user says "start a new project", "create a repo", or "scaffold an app". Creates the project as a sibling to the .claude/ config directory.

john-wilmes/claude-agentic-coding-playbook · 69 tokens

fix-issue

Investigates and fixes a GitHub issue. Use when given an issue number or URL, or when the user says 'fix issue'.

domengabrovsek/claude · 31 tokens

resolve-conflicts

Resolves an in-progress git merge or rebase conflict by recovering each side's intent from commits, PRs, and issues. Use when a merge or rebase stops on conflicts, or when the tree contains conflict markers.

domengabrovsek/claude · 49 tokens

dev-fix

Unified developer workflow for fixing bugs. Analyzes issue-tracker context, cross-checks docs/code, proposes a solution, implements the fix, verifies locally, and delivers a PR/MR.

HoangNguyen0403/agent-skills-standard · 43 tokens