playbook-bug-fix
Reproduce first, confirm mechanism, ship the smallest causal fix with proof.
Files1
View on GitHubSKILL.md.claude/skills/playbook-bug-fix/SKILL.md
GitHub<!-- Generated by mstack from Misbah's Build Like This workflow. Regenerate instead of editing. -->
Bug fix
You own the defect end to end. Investigation may fan out; integration stays with you.
Prompt shape
- Goal: what is broken for whom
- Finish condition: original repro fails before the fix and passes after on the same surface
- Evidence: failing-then-passing command, log, or journey capture
- Constraints: reproduce before editing; no speculative multi-fix patches
Match
Defect, regression, incorrect behavior, flake with a failing expectation.
Steps
Copy these steps into the todo list word for word. Mark skips as skip: <reason>.
- Restate symptom, expected behavior, scope, and non-goals. Label assumptions.
- Reproduce on the matching surface before changing code. Preserve the failing evidence.
- Binary-search to the violated invariant. Confirm mechanism with runtime evidence (
fix-root-causes). - Implement the smallest causal fix. Add or update a regression check that fails on the original mechanism.
- Re-run the original repro and adjacent cases (
prove-it-works). Revert changes that lack evidence. - Report root cause, diff intent, and paste failing-then-passing proof.
Principles to cite by name
fix-root-causesprove-it-workssmallest-complete-slicenever-block-on-the-human
Reply: broken behavior, mechanism, fix, and verbatim verification evidence.