bug-fix

bug-fix is a skill for Claude Code from ramboz/jig. It costs 208 tokens per session (6,809 once invoked), scanned A, original, MIT.

A structured workflow for fixing reported software defects. It moves a bug through stages such as diagnosis, root-cause confirmation, fixing, review, and completion, with extra paths for verified, escalated, or main-branch cases.

In plain words
What is it for?
Triaging bugs, finding and proving their root causes, implementing regression-safe fixes, coordinating reviews, and confirming the result on the main branch.
Why use it?
It prevents changes from being made before the cause is understood and requires evidence that the fix works. It also checks whether another parallel session has already fixed the problem.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions subagents.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the jig plugin — 20 skills shipped together

Good fit Triaging bugs, finding and proving their root causes, implementing regression-safe fixes, coordinating reviews, and confirming the result on the main branch.

Compare 6 skills from other repositories ↓
View source ↗ ramboz/jig
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add ramboz/jig
Claude Code
/plugin install jig

Made for: Claude Code.

Or install jig, the plugin that ships this one along with the rest of its 20 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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/ramboz/jig/bug-fix"><img src="https://agentmods.dev/badge/skills/ramboz/jig/bug-fix.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 208 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,809 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.00208 $0.06809
Opus 5.5 $0.00083 $0.02724
Sonnet 5.5 $0.00042 $0.01362
Haiku 4.5 $0.00021 $0.00681

Measured 5d ago against content hash 7b149bbcc245, 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 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.

The scan reads SKILL.md. This mod also ships 1 executable file (bug.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

hosts/claude/skills/bug-fix/SKILL.md · 472 lines

How it starts

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

Working posture (ADR-0056). Adversarial review is a named, bounded operation. This workflow invokes review passes (bug-review / craft), whose skeptical register belongs inside those isolated reviewer subagents. Outside a review, default to collaborative and solution-forward; don't carry the adversarial stance into ordinary conversation.

Spec 058 / ADR-0016 built this workflow. The deterministic state mutations and teeth gates live in bug.py; this SKILL.md drives the judgment layer. It is a peer of spec-workflow — a first-class jig workflow that owns its orchestration, not a deferring baseline.

What this skill does

  • Routes a reported bug to the proportional path: triage bows out of trivial work, reserving the record + gates for standard/gnarly tiers.
  • Drives the bug lifecycle state transitions via bug.py transition, which enforces the teeth gates (diagnose-before-fix; red→green).
  • Coordinates reviewer-subagent passes (bug-review, craft, conditional security) at → REVIEWED, validated by the ADR-0014 evidence gate.
  • Rechecks fresh main after ROOT_CAUSED and before FIXING so a stale parallel session does not re-fix a bug already solved on trunk.
  • Provides the first-class escalation seam (bug.py escalate) for when a bug turns out to be a missing or under-specified behaviour.
  • Imports the diagnose-first discipline (the diagnostic question, anti-anchoring, evidence-accruing re-entry) borrowed from diagnose-first debugging — see ADR-0016 §9.

The diagnostic question (read first, every time)

Is this a problem with the output, or the process that created the output? Fixing the output is a treadmill.

This is the heart of DIAGNOSING. A fix that patches the symptom — the bad value, the wrong pixel, the failing assertion — without finding the process that produced it does not close the bug; it relocates it. The bug-review pass exists to catch exactly this (fix_class: workaround honestly labelled is fine; a workaround disguised as a structural_fix is a blocker).

Read the full file on GitHub · 472 lines

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 Changed · +12 lines 7b149bbcc245
  2. 1mo ago Changed · +3 lines c8f65855cd61
  3. 3mo ago First seen · 457 lines · 208 tokens per session scan A 930e97415849

Subscribe to this mod's changes

bug-fix is a skill published in the GitHub repository ramboz/jig (6 stars, last pushed 6d ago), licensed MIT. It adds 208 tokens to every session and 6,809 once invoked, about $0.0008 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

bug-fix compared with skills from other repositories

bug-fix next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
bug-fixramboz/jigSkill66d agoMITA208Claude Code
serenadatit309/supergraphSkill236d agoMITA40Claude Code
diagnosedatit309/supergraphSkill236d agoMITA59Claude Code
fixdatit309/supergraphSkill236d agoMITA33Claude Code
zoom-outdatit309/supergraphSkill236d agoMITA53Claude Code
onboardingknitli/toolshedSkill13d agoMITA0Claude Code
setupknitli/toolshedSkill13d agoMITA0Claude Code