bugfix

bugfix is a skill for Claude Code from LuisFelipeMoro/Harness-devkit. It costs 0 tokens per session (1,365 once invoked), scanned A, original, MIT.

A bug-investigation workflow that reproduces a reported problem, tests possible root causes, applies a chosen fix, and verifies the result.

In plain words
What is it for?
Use it to diagnose and fix a specific software bug while recording the confirmed cause, the test evidence, and the resulting change.
Why use it?
It prevents guessed fixes by requiring a failing regression test before the repair and a passing test afterward. It also checks the full test suite and other project gates.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; names the AskUserQuestion tool.

Part of the coding-pipeline plugin — 5 skills, 13 agents, 5 hooks shipped together

Good fit Use it to diagnose and fix a specific software bug while recording the confirmed cause, the test evidence, and the resulting change.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/luisfelipemoro/harness-devkit/bugfix
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 LuisFelipeMoro/Harness-devkit --skill bugfix
Clone the repo
git clone --depth 1 https://github.com/LuisFelipeMoro/Harness-devkit

Made for: Claude Code.

Or install coding-pipeline, the plugin that ships this one along with the rest of its 5 skills, 13 agents, 5 hooks.

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 bugfix

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/luisfelipemoro/harness-devkit/bugfix"><img src="https://agentmods.dev/badge/skills/luisfelipemoro/harness-devkit/bugfix.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,365 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.00000 $0.01365
Opus 5.5 $0.00000 $0.00546
Sonnet 5.5 $0.00000 $0.00273
Haiku 4.5 $0.00000 $0.00136

Measured 8d ago against content hash 4252671e2250, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

bugfix 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 8d 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.

plugins/coding-pipeline/skills/bugfix/SKILL.md · 31 lines

How it starts

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

Input: a bug description; the questions in step 1 fill in the rest. Output: a feedback-loop command, ranked hypotheses with the confirmed one, a root-cause report, a regression test observed RED then GREEN (or a documented no-seam finding with the loop as the RED evidence), the minimal fix at the chosen depth, a green full suite and gates, a Bug Fix Summary, a PROGRESS.md entry. Boundary: never weaken, delete or rewrite an existing test to make the fix pass. Dispatches: bug-investigator (sonnet) + coder (haiku) per fix round — exploration stays out of the main context; the post-checkpoint continuation resumes the same investigator, not a new dispatch. No push, no PR.

Discipline: the failing reproduction test is written RED before any fix. This is the one deliberate exception to the devkit's spec-first rule (feature work implements first, then writes and falsifies the specified tests). A bug fix keeps test-first because the RED run is the evidence that the root cause was actually found rather than guessed: a fix applied without a test that failed beforehand can just as easily be masking the symptom. The RED here is the falsification step, obtained for free.

Steps

  1. Ask first — one AskUserQuestion call, up to four questions (skip one the description already answers):
    • Symptom vs expected — what happens now, and what should happen?
    • Reproduction — exact command, input or steps (or "not reproducible yet").
    • Fix depth — Minimal patch / Root-cause fix / Not sure — investigate first.
    • Branch — current branch / new fix/{slug} (per references/branching.md; on main/master always fix/{slug}).
  2. Loop and hypothesise. At this step, read references/dispatch.md (this skill's) and dispatch bug-investigator with its template: the answers verbatim, Base: $(git merge-base HEAD main) (fall back to master). Before any theory it builds a tight feedback loop (one command, already run, red on the user's exact symptom, deterministic, fast, agent-runnable), reproduces and minimises, then returns a CHECKPOINT: the loop, the minimised repro and 3–5 ranked falsifiable hypotheses. NO LOOP → show what it tried and its ask (environment access, a redacted artifact, or permission for temporary instrumentation) and stop for the user.
  3. Show the hypotheses, then continue. Print the ranked list — the user's domain knowledge often re-ranks it instantly — and continue the same investigator in this turn with the continuation template in references/dispatch.md; do not block on an answer (the user may be away). A re-rank or a ruled-out item the user gives is passed on verbatim. It instruments one variable at a time, confirms one hypothesis, writes the RED test at a correct seam, and returns BUG REPORT (root cause, code path file:line, why existing tests miss it, each hypothesis's verdict), the failing test (path + quoted RED output) and HANDOFF. Root cause unknown → show exactly what it asks to instrument and stop for the user. It does not fix anything.
  4. Confirm. Show the BUG REPORT, RED output and the HANDOFF's Seam line (a none is a finding the user sees before the fix). AskUserQuestion: Fix as proposed / Change depth / Stop. "Not sure" from step 1 becomes a concrete depth here, chosen by the user from the HANDOFF's minimal-patch and root-cause options.
  5. Fix. Dispatch the coder matching the bug's tier (coder-backend, coder-frontend, or coder) with the template in references/dispatch.md — paths and one-line facts only. Make the RED test GREEN with the minimum change at the chosen depth; the coder may ADD regression tests for edge cases the fix exposes, never weaken an existing one.
  6. Verify yourself — every gate for the detected stack, not just the test suite (references/quality-gate-reference.md, read at this step): the regression test GREEN · the HANDOFF's original, un-minimised loop command green · full suite · format · type/vet · lint · build · coverage · race (Go) · vuln · bash ~/.claude/git-hooks/dup-gate.sh --worktree. A fix that passes its new test but fails lint/typecheck/build must not be called done. Re-break the fix once with scripts/verify/break-run.sh (revert the fix line → the regression test, or the loop on a no-seam finding, must fail by name). Any FAIL → a fresh coder dispatch with the output (Loop Integrity applies); after 3 failed rounds stop and suggest /planning with the BUG REPORT as input — the bug is bigger than a fix.
  7. Clean up, report and record. Tick the cleanup checklist in references/dispatch.md (original loop green · regression test green or no-seam documented · no [DEBUG- tag left (grep -rn "\[DEBUG-" . empty) · throwaway prototypes deleted · confirmed hypothesis written into the summary's commit/PR line); an unticked item is not done. Print the gate report and the Bug Fix Summary from references/dispatch.md. Append to PROGRESS.md: `[{slug}]` root cause — fix (file:line) — regression test (RED → GREEN).

Read the full file on GitHub · 31 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. 8d ago Changed · -1 lines 4252671e2250
  2. 1mo ago First seen · 32 lines · 0 tokens per session scan A 70a78acad51a

Subscribe to this mod's changes

bugfix is a skill published in the GitHub repository LuisFelipeMoro/Harness-devkit (14 stars, last pushed 6d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,365 tokens. 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-10-26.

Related

bugfix compared with skills from other repositories

bugfix next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
bugfixLuisFelipeMoro/Harness-devkitSkill146d agoMITA0Claude Code
systematic-debuggingNousResearch/hermes-agentSkill268ktodayMITA16Claude Code, Codex
build-testnexu-io/open-designSkill111ktodayApache-2.0A31Claude Code, Codex
reenable-testchromium/chromiumSkill25ktodayBSD-3-ClauseA85Claude Code, Codex
resolve-author-fixomnigent-ai/omnigentSkill12ktodayApache-2.0A24Claude Code, Codex
fixing-flaky-testsamplifthq/opentagSkill1.4k13d agoMITA220Claude Code, Codex
nw-mikado-methodnWave-ai/nWaveSkill63713d agoMITA28Claude Code