Use when the user asks to fix broken, incorrect, failing, flaky, or regressed behavior, such as failing tests, wrong status codes, crashes, ignored CLI flags, duplicate output, wrong UI rendering, infinite retries, stack traces, or behavior that used to work and no longer does. This skill guides regression-test-driven bug fixing through Reproduce → Root Cause → Regression Test → Minimal Fix → Verify by capturing the symptom, reproducing or representing the failure, defining expected behavior, lo
NewMaintained
Automatic
◆Coding pack
Last verified 8/15/2026
What it changes
Passed 0 of 17 test cases with the skill, and 17 of 17 without it.
Without skill100%
With skill0%
0 fixed15 passed either way3 still failing5 broke
Pass-rate lift
-100 pp
Tokens
+63%
Agent turns
0%
Response time
-40%
Model gemini-3.6-flashMeasured 8/15/2026v215 of 23 cases passed with skill · 17 comparable
Tokens, turns and time describe resource use, not a dollar price.
What's inside
The instructions your model reads when the skill loads.
SKILL.md155 linessingle file
bugfix
Purpose
Fix broken behavior with evidence while keeping the change narrow and reviewable.
Use this core loop:
Reproduce the failure or establish a credible evidence trail.
Define expected behavior and identify the narrowest credible root cause.
Decide which verification will most directly prove the fix.
Apply the smallest safe change that addresses the cause.
Verify the original behavior and relevant surrounding behavior.
Report what was and was not proven.
A new regression test is one valuable verification method, not a universal completion gate. Verification is always required; the form of verification depends on the bug, risk, and repository.
Non-negotiable rules
Understand the reported failure before editing.
Fix the root cause rather than suppressing the symptom.
Preserve unrelated behavior and keep the diff focused.
Follow repository instructions and existing conventions.
Do not delete or weaken valid tests merely to make checks pass.
Do not claim a command, test, or scenario passed unless it was actually run.
Do not claim the bug is fixed without direct verification or clearly qualified evidence.
Treat security, authorization, privacy, billing, data-loss, destructive-action, concurrency, and public-contract changes as high risk and require stronger evidence.
Avoid unrelated features, cleanup, refactoring, and dependency changes.
Workflow
1. Capture the failure
Collect only the context needed to define the problem:
reported symptom;
expected and actual behavior;
error, stack trace, logs, screenshot, request/response, or failing command;
relevant input, state, environment, version, configuration, or external dependency;
whether the failure is deterministic, intermittent, environment-specific, or a known regression.