fix-bug

fix-bug is a skill for Claude Code, Codex from kunalsuri/ai-fication-kit. It costs 48 tokens per session (551 once invoked), scanned A, original, Apache-2.0.

A bug-fixing workflow that requires reproducing the problem and writing a test that fails before the fix. It also records the cause and change for later reference.

In plain words
What is it for?
Use it to investigate broken or crashing behavior, create regression tests, identify the root cause, make a small fix, and review the result.
Why use it?
It reduces the risk of guessing at a fix, changing unrelated behavior, or declaring success without proof.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/kunalsuri/ai-fication-kit/fix-bug
Any agent
npx skills add kunalsuri/ai-fication-kit --skill fix-bug
Clone the repo
git clone --depth 1 https://github.com/kunalsuri/ai-fication-kit

Made for: Claude Code, Codex.

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/kunalsuri/ai-fication-kit/fix-bug.svg)](https://agentmods.dev/skills/kunalsuri/ai-fication-kit/fix-bug)
Your own site
<a href="https://agentmods.dev/skills/kunalsuri/ai-fication-kit/fix-bug"><img src="https://agentmods.dev/badge/skills/kunalsuri/ai-fication-kit/fix-bug.svg" alt="Measured on agentmods" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 551 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00048 $0.00551
Opus 5 $0.00024 $0.00275
Sonnet 5 $0.00010 $0.00110
Haiku 4.5 $0.00005 $0.00055

Measured 5d ago against content hash fbc1c56967aa, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 5d 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.

.agents/skills/fix-bug/SKILL.md · 48 lines

What it actually says

Fix a bug

The contract: no fix before a reproduction, no reproduction without a failing test, no "fixed" without the regression test green, no closing without the ledger row and the gotcha recorded.

1. Reproduce

Draft ai/lab/specs/BUGFIX_<name>.md from BUGFIX_TEMPLATE.md: symptom (observed vs expected), exact reproduction steps. Get the user's OK.

2. Prove

Turn the reproduction into a regression test and watch it fail. A bug you cannot make a test fail for is a bug you do not understand yet. The test is permanent — it outlives the fix.

3. Locate

  • ai/guide/MODULE_MAP.md → which modules; note Stability of every suspect.
  • ai/guide/FEATURE_MAP.md gotchas + ai/lab/WORKLOG.md → was this area recently touched, or is the "bug" deliberate behavior a past ADR explains?
  • Keep broad reading read-only and cheap (directory listings, manifests, search hits over whole-file reads) to protect context.

4. Gate

Root cause in a file with Stability frozen or ? ⇒ stop and ask the human. Record their approval in the bugfix doc before proceeding.

5. Diagnose, then fix

Name the root cause in the bugfix doc — the defect, not the symptom. Then make the smallest diff that turns the regression test green. Match the license headers of neighboring files. No drive-by refactors, no layout changes, no dependency additions while "in there".

6. Verify

Run the regression test (now green), then the suites covering the touched area. Report command run · exit status · failures verbatim. Red or unrun ⇒ not fixed.

7. Review & record

Request /review-change on the diff (fresh context — not this session). Append a bugfix row to ai/lab/WORKLOG.md linking the bugfix doc and review; add the gotcha line to FEATURE_MAP so the next agent knows the trap. All [inferred] — tell the user which tags await their [verified] flip.

Files

What ships with it

1 file 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. 5d ago First seen · 48 lines · 48 tokens per session scan A fbc1c56967aa

Subscribe to this mod's changes

fix-bug is a skill published in the GitHub repository kunalsuri/ai-fication-kit (3 stars, last pushed yesterday), licensed Apache-2.0. It adds 48 tokens to every session and 551 once invoked, about $0.0002 per session on Opus 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

Other skills, from other repositories

sistematizar

Transforma um trabalho recorrente observado em Sistema local com contrato, pipeline, CONFIGURAÇÃO, régua e primeiro run. Use depois do Architect ou quando a pessoa quer sistematizar uma decisão, venda ou entrega; não use para apenas organizar notas ou conectar ferramentas.

gabrielzucco/cerebro-inevita · 59 tokens

close-my-loops

Build and maintain a personal work profile and open-loop tracker for the user's own job — a markdown file covering their org, key contacts, communication style, active initiatives, and open loops synthesized from their own email/Slack; a Cowork Project setup so that file is actually read every session; and a scheduled…

insideout-ai/make-it-work · 193 tokens

fonte

Decide o que fazer com qualquer coisa que chega (e-mail, PDF, planilha, pasta, drive, print, áudio, export de CRM) — recomenda o nível de refino certo, executa até ele e PARA. Use quando a pessoa pergunta "o que eu faço com isso?", "trato ou guardo o bruto?", aponta uma fonte nova, ou pede "ingere o que tá em…

gabrielzucco/cerebro-inevita · 89 tokens

reindex

O ritual semanal (30-45 min) que mantém o cérebro afiado — triagem da bandeja, faxina dos fios, resumo da semana a partir das dailies. Use quando a pessoa diz "bora fazer o reindex", "fechar a semana", ou uma vez por semana em dia fixo.

gabrielzucco/cerebro-inevita · 69 tokens

call

Transforma uma call ou reunião real em decisões, ações, dores, números e memória citável, com aprovação e eval. Use quando a pessoa cola uma transcrição, aponta um arquivo, diz “trata essa call” ou opera o sistema Calls em Decisões.

gabrielzucco/cerebro-inevita · 57 tokens

daily

O fechamento do dia em 5-10 minutos — captura o que aconteceu com a memória quente e destila em até 5 átomos. Use quando a pessoa diz "bora fazer a daily", "fechar o dia", ou no fim do expediente dela.

gabrielzucco/cerebro-inevita · 57 tokens