fix-bug

fix-bug is a skill for Claude Code from mgiovani/cc-arsenal. It costs 94 tokens per session (2,565 once invoked), scanned A, original, MIT.

A bug-fixing workflow that uses test-driven debugging, meaning it first creates or finds a test that demonstrates the failure. It then finds the underlying cause, makes the smallest fix, and checks the tests again.

In plain words
What is it for?
Use it to investigate errors, failing tests, reported bugs, and other software defects.
Why use it?
It prevents guessed fixes by requiring evidence that the bug occurs and that the change resolves it without unrelated refactoring.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: mentions CLAUDE.md; mentions subagents; names the AskUserQuestion tool.

Part of the cc-arsenal-dev plugin — 19 skills shipped together , and of cc-arsenal

Good fit Use it to investigate errors, failing tests, reported bugs, and other software defects.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mgiovani/cc-arsenal/fix-bug
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 mgiovani/cc-arsenal --skill fix-bug
Clone the repo
git clone --depth 1 https://github.com/mgiovani/cc-arsenal

Made for: Claude Code.

Or install cc-arsenal-dev, the plugin that ships this one along with the rest of its 19 skills.

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-bug

README.md
[![agentmods](https://agentmods.dev/badge/skills/mgiovani/cc-arsenal/fix-bug/github.svg)](https://agentmods.dev/skills/mgiovani/cc-arsenal/fix-bug)
Your own site
<a href="https://agentmods.dev/skills/mgiovani/cc-arsenal/fix-bug"><img src="https://agentmods.dev/badge/skills/mgiovani/cc-arsenal/fix-bug/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-bug

Your own site · 80×15
<a href="https://agentmods.dev/skills/mgiovani/cc-arsenal/fix-bug"><img src="https://agentmods.dev/badge/skills/mgiovani/cc-arsenal/fix-bug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 94 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,565 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00094 $0.02565
Opus 5.5 $0.00038 $0.01026
Sonnet 5.5 $0.00019 $0.00513
Haiku 4.5 $0.00009 $0.00257

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

Security

Grade A, and why

fix-bug 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.

skills/fix-bug/SKILL.md · 197 lines

How it starts

The opening of the file, as written. The whole thing — 197 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Bug Fix

Fix the bug the user describes. It might arrive as a plain description, sometimes as an issue ID, occasionally just the name of a failing test. Work test-driven: reproduce the failure first. Track down the root cause with evidence. Apply the smallest fix that resolves it, run the tests, commit.

Anti-hallucination guidelines

A fix that "should work" but was never run against a failing test is a guess, not a fix:

  1. Reproduce first: don't fix what you haven't seen fail.
  2. Test-driven: write or locate a failing test before implementing the fix; confirm it actually fails.
  3. Verify root cause: locate the bug with grep/read evidence (file path, line number), not intuition.
  4. Verify the fix: run the full test suite; all tests must pass before calling the bug fixed.
  5. No invented fixes: only implement solutions that address the demonstrated root cause.
  6. Reference real code: never make claims about code you haven't read.

Workflow Mode: Inline by Default

Most bugs are a single file, single root cause, fixable and verifiable in one sitting. For those, run Phases 0–5 below yourself, in order, inline: no task chain, no subagent fan-out. That's the default; don't create tasks unless the case below applies.

Use a task chain instead when the bug spans multiple files/components, the root cause is unclear enough to need a dedicated analysis phase, or the fix will span multiple sessions and needs progress tracking across them. In that case, before Phase 0, create six tasks (Discovery, Reproduce & Analyze, Plan, Implement, Verify, Commit) with a strict sequential chain, each addBlockedBy the one before it:

TaskCreate: { subject: "Phase 0: Discover project workflow", activeForm: "Discovering project workflow" }
TaskCreate: { subject: "Phase 1: Reproduce and analyze bug", activeForm: "Analyzing bug" }
TaskCreate: { subject: "Phase 2: Plan fix", activeForm: "Planning fix" }
TaskCreate: { subject: "Phase 3: Implement fix", activeForm: "Implementing fix" }
TaskCreate: { subject: "Phase 4: Verify quality", activeForm: "Verifying fix quality" }
TaskCreate: { subject: "Phase 5: Final commit", activeForm: "Creating final commit" }
TaskUpdate: { taskId: "2", addBlockedBy: ["1"] }
TaskUpdate: { taskId: "3", addBlockedBy: ["2"] }
TaskUpdate: { taskId: "4", addBlockedBy: ["3"] }
TaskUpdate: { taskId: "5", addBlockedBy: ["4"] }
TaskUpdate: { taskId: "6", addBlockedBy: ["5"] }
TaskUpdate: { taskId: "1", status: "in_progress" }

Read the full file on GitHub · 197 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · -1 lines df4886e7c323
  2. 2mo ago Changed · +1 lines 975233edbe72
  3. 2mo ago Changed · +2 lines a1c79765b888
  4. 3mo ago First seen · 195 lines · 94 tokens per session scan A f090ec77d17b

Subscribe to this mod's changes

fix-bug is a skill published in the GitHub repository mgiovani/cc-arsenal (8 stars, last pushed 1mo ago), licensed MIT. It adds 94 tokens to every session and 2,565 once invoked, about $0.0004 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-31.

Related

fix-bug compared with skills from other repositories

fix-bug next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
fix-bugmgiovani/cc-arsenalSkill81mo agoMITA94Claude Code
rpa-bugfixcoddy-project/coddy-agentSkill217yesterdayMITA54Claude Code, Codex
repro-firstedonadei/caliperSkill2396d agoMITA30Claude Code
trace-and-isolaterohitg00/skillkitSkill1.6k6mo agoApache-2.0A120Claude Code, Codex
parallel-investigationrohitg00/skillkitSkill1.6k6mo agoApache-2.0A97Claude Code, Codex
hypothesis-testingrohitg00/skillkitSkill1.6k6mo agoApache-2.0A103Claude Code, Codex
root-cause-analysisrohitg00/skillkitSkill1.6k6mo agoApache-2.0A110Claude Code, Codex