Bug first tdd
Skill Johnny-Martinez/fleet-of-one-free/skills/bug-first-tdd
Reproduce a bug before fixing it, encode the expected behavior in a failing test, then make the smallest safe change.From its SKILL.md
npx -y skills add Johnny-Martinez/fleet-of-one-free --skill bug-first-tddAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.1 KB, 237 tokens by cl100k_base, as published. Nobody here has run it
Bug-First TDD
Use this skill for any bug, regression, broken workflow, failing test, or "fix this" request.
Loop
- Reproduce the bug with the smallest exact input or workflow.
- Write a failing test for the correct behavior.
- Run the test and confirm it fails for the expected reason.
- Make the smallest code change that turns the test green.
- Run the targeted test and the nearest surrounding suite.
- Verify the affected workflow outside the test if users touch it.
- Report what is fixed and what remains unverified.
Guardrails
- Do not weaken a test to pass broken code.
- Do not fix a guessed cause before reproducing the symptom.
- Do not mix unrelated refactors into a bug fix.
- Do not call it done until the proof matches the original failure.
Minimal Report
🟢 **DONE**
Reproduced: `<command/input>` failed with `<error>`.
Test: `<test file>` now covers expected behavior.
Fix: `<short change>`.
Verified: `<targeted test>` and `<workflow proof>`.
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.