fix-bug

fix-bug is a skill for Claude Code from nowsprinting/unity-coding-skills. It costs 86 tokens per session (2,322 once invoked), scanned A, original, Unlicense.

A test-first process for fixing software bugs: reproduce the problem, find its cause, and then apply the fix. It applies when software behaves unexpectedly or a defect is reported.

In plain words
What is it for?
Use it to investigate broken behavior, write a reproduction test, identify the root cause, implement the correction, and verify nearby behavior.
Why use it?
It prevents fixes based only on guesswork by requiring a failing test and a diagnosis before changing the code.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions CLAUDE.md; mentions subagents; names the ExitPlanMode tool.

Part of the unity-coding-skills plugin — 10 skills, 3 agents shipped together

Good fit Use it to investigate broken behavior, write a reproduction test, identify the root cause, implement the correction, and verify nearby behavior.

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

Made for: Claude Code.

Or install unity-coding-skills, the plugin that ships this one along with the rest of its 10 skills, 3 agents.

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/nowsprinting/unity-coding-skills/fix-bug/github.svg)](https://agentmods.dev/skills/nowsprinting/unity-coding-skills/fix-bug)
Your own site
<a href="https://agentmods.dev/skills/nowsprinting/unity-coding-skills/fix-bug"><img src="https://agentmods.dev/badge/skills/nowsprinting/unity-coding-skills/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/nowsprinting/unity-coding-skills/fix-bug"><img src="https://agentmods.dev/badge/skills/nowsprinting/unity-coding-skills/fix-bug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 86 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,322 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.00086 $0.02322
Opus 5.5 $0.00034 $0.00929
Sonnet 5.5 $0.00017 $0.00464
Haiku 4.5 $0.00009 $0.00232

Measured today against content hash 37287d8ad53b, 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 today.

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 · 177 lines

How it starts

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

Guide for diagnosing and fixing bugs. This skill defines a test-first debugging workflow: reproduce the bug with a failing test, diagnose the root cause, then fix it.

Mode Check

This skill must be used outside plan mode. Before doing anything else, check the current mode:

  • ExitPlanMode is NOT in the deferred tools list (i.e., directly callable) → in plan mode → stop immediately and tell the user:

    "This skill (/fix-bug) must be used outside plan mode. Please exit plan mode first."

  • ExitPlanMode is in the deferred tools list → not in plan mode → proceed.

Workflow

Recording implementation notes: Notes for this run go in <scratchpad>/implementation-notes.md, where <scratchpad> is the scratchpad directory listed in your system prompt (write its absolute path literally). Immediately before your first append in this run — and only then — delete that file if it exists (usually it will not), so this run starts from an empty one: every /fix-bug, /refine-tests, and plan-file run in the session shares this file, so an earlier run abandoned before its Implementation Notes step would otherwise leak its notes into this one. Never delete it again afterwards, including when Step 3 sends you back to Step 1 or Step 2; those loops are part of the same run and their notes must survive.

While working through Steps 1-8, whenever one of the following occurs, immediately append a line to that file — do not wait until the end to reconstruct these from memory:

  • The confirmed Condition / Expected / Actual differs from what the user first reported, or the documentation conflicted with the report and you resolved which is correct → Bug report clarifications
  • You established — or later revised — which line(s) or logic are responsible and why they misbehave, including when the fix actually applied differs from the one formulated in Step 5 → Root cause
  • You investigated a suspected cause, code path, or reproduction approach and eliminated it → Ruled out
  • You considered alternatives and chose one, and why → Tradeoffs
  • You modified or deleted test code that was already committed, and why → Test changes

Read the full file on GitHub · 177 lines

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. today Changed 37287d8ad53b
  2. 24d ago Changed a9f2b653e77c
  3. 1mo ago First seen · 177 lines · 86 tokens per session scan A 613d4f527918

Subscribe to this mod's changes

fix-bug is a skill published in the GitHub repository nowsprinting/unity-coding-skills (20 stars, last pushed today), licensed Unlicense. It adds 86 tokens to every session and 2,322 once invoked, about $0.0003 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

dotnet-test

This skill should be used when running .NET tests selectively with a build-first, test-targeted workflow. Use it for running tests with xUnit focus.

NikiforovAll/claude-code-rules · 35 tokens

investigate

A structured root-cause investigation method for software bugs. It moves from history and reproduction through tested hypotheses, a focused fix, verification, and a report.

AbyssCN/oh-my-dag · 77 tokens

asp-ft-release

Release an Aspid.FastTools version end to end. Phase 1 opens the release PR (CHANGELOG section, version files, local tests, Unity EditMode); the user merges it. Phase 2 pushes the v tag after the user's yes and checks what the Release workflow published. The version alone picks the channel. - /asp-ft-release…

VPDPersonal/Aspid.FastTools · 98 tokens

dart-flutter-equatable-engineering

Design, implement, review, debug, test, migrate, and optimize value equality in production Dart and Flutter code using Equatable or appropriate alternatives. Use this skill whenever work involves Equatable, props, immutable Bloc/Cubit states or events, equality bugs, suppressed state emissions, lists/sets/maps in…

ariaramin/flutter-skills · 116 tokens

Vitest Mock Isolation Review

Detects Vitest test-isolation hazards: unrestored vi.spyOn/vi.mock without afterEach cleanup or restoreMocks config, un-awaited resolves/rejects assertions, and shared mutable module state across tests.

s977043/river-review · 48 tokens

test-fix-loop

This skill should be used when autonomously iterating on test failures: runs the suite, diagnoses, applies minimal fixes, re-runs with checkpoint commit isolation until all tests pass.

jikig-ai/soleur · 41 tokens