bug-fix-protocol

bug-fix-protocol is a skill for Claude Code from nimadorostkar/Claude-Skills-collection. It costs 92 tokens per session (905 once invoked), scanned A, original, MIT.

A step-by-step method for fixing a software defect from report to verified change. It starts by reproducing the problem and writing a test that fails because of it.

In plain words
What is it for?
Use it for reproducible bugs, production or CI regressions, and urgent hotfixes. It helps isolate the cause, make the smallest targeted change, and check where similar defects might exist.
Why use it?
It reduces the risk of fixing only the visible symptom or introducing another defect. The regression test helps prevent the same problem from returning.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the development plugin — 13 skills shipped together

Good fit Use it for reproducible bugs, production or CI regressions, and urgent hotfixes. It helps isolate the cause, make the smallest targeted change, and check where similar defects might exist.

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

Made for: Claude Code.

Or install development, the plugin that ships this one along with the rest of its 13 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 bug-fix-protocol

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/nimadorostkar/claude-skills-collection/bug-fix-protocol"><img src="https://agentmods.dev/badge/skills/nimadorostkar/claude-skills-collection/bug-fix-protocol.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 92 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 905 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.00092 $0.00905
Opus 5.5 $0.00037 $0.00362
Sonnet 5.5 $0.00018 $0.00181
Haiku 4.5 $0.00009 $0.00090

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

Security

Grade A, and why

bug-fix-protocol 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/development/bug-fix-protocol/SKILL.md · 88 lines

How it starts

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

Bug Fix Protocol

Purpose

Turn a bug report into a merged fix without introducing a second bug. The protocol is deliberately rigid: it exists to prevent the two most common failures — fixing the symptom, and fixing the cause without proving it.

When to Use

  • Any reported defect with a reproducible symptom.
  • A regression discovered in CI or production.
  • A hotfix under time pressure — especially then.

Capabilities

  • Reproduction and minimization.
  • Root-cause isolation (see the debugging skill for the search method).
  • Minimal, targeted fixes with regression tests.
  • Blast-radius assessment for the same class of defect elsewhere.

Inputs

  • The bug report: expected behavior, observed behavior, environment, steps.
  • Access to logs, traces, or a failing build.
  • The severity and whether a rollback is available.

Outputs

  • A failing test that captures the bug.
  • The smallest change that makes it pass.
  • A note on where else this defect class could occur.

Workflow

  1. Reproduce before reading code. If you cannot reproduce it, the report is incomplete — go back for the missing detail. Do not guess.
  2. Write the failing test. In the real test suite, at the right level. It must fail for the right reason, with a clear message.
  3. Find the cause. Not the line where it crashed — the decision that made the crash possible.
  4. Fix minimally. Change only what is required. Refactoring belongs in a separate commit.
  5. Verify. New test passes; full suite passes; reproduce the original scenario manually and confirm it is gone.
  6. Look for siblings. Grep for the same pattern elsewhere. A bug found once is usually present three times.
  7. Close the loop. State in the PR: what broke, why, what changed, and what now prevents it.

Best Practices

  • If you cannot write a test that fails before the fix, you have not understood the bug.
  • Under time pressure, mitigate first (rollback, feature flag, rate limit), then fix properly. Do not ship a rushed fix to production and call it done.
  • Never "fix" a flaky test by retrying it. Flakiness is a real defect in the test or the code.
  • Do not widen a try/except to make an error go away. That hides the next bug too.
  • Record the root cause in the issue, not just the fix. The next person will search for the symptom.

Read the full file on GitHub · 88 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. 1mo ago Changed · +44 tokens per session a69932dc9efe
  2. 3mo ago First seen · 88 lines · 48 tokens per session scan A e6038d581718

Subscribe to this mod's changes

bug-fix-protocol is a skill published in the GitHub repository nimadorostkar/Claude-Skills-collection (41 stars, last pushed today), licensed MIT. It adds 92 tokens to every session and 905 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-30.

Related

bug-fix-protocol compared with skills from other repositories

bug-fix-protocol next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
bug-fix-protocolnimadorostkar/Claude-Skills-collectionSkill41todayMITA92Claude Code
incident-postmortemmohitagw15856/pm-claude-skillsSkill1.6ktodayMITA87Claude Code, Codex
agent-design-reviewmohitagw15856/pm-claude-skillsSkill1.6ktodayMITA91Claude Code
agent-incident-postmortemmohitagw15856/pm-claude-skillsSkill1.6ktodayMITA120Claude Code
prompt-debuggingmohitagw15856/pm-claude-skillsSkill1.6ktodayMITA131Claude Code
prompt-optimizermohitagw15856/pm-claude-skillsSkill1.6ktodayMITA86Claude Code
rag-architecture-reviewmohitagw15856/pm-claude-skillsSkill1.6ktodayMITA89Claude Code