← ClaudeAtlas

bonfirelisted

Test-first build loop (TDD) - write a failing test, SEE it fail for the right reason (red), write minimal code to pass (green), refactor only when green. One behavior at a time, vertical slices, tested through the public interface. For building a feature with >=2 behaviors or a bug fix that needs a regression guard. Writes the test AND the minimal impl, runs the repo's test command each cycle. Python (pytest) and TypeScript/JavaScript (mocha, jest, vitest).
sgtlaugh/skills · ★ 2 · Testing & QA · score 76
Install: claude install-skill sgtlaugh/skills
# /bonfire - die, rest at the bonfire, venture again The TDD loop *is* the Dark Souls loop: **red** (the flame's out - your test fails), **green** (🔥 bonfire lit - it passes), then venture on. You only **refactor at the bonfire** (when green). bonfire writes the failing test, proves it fails for the right reason, writes the minimal code to pass, and repeats - **one behavior at a time.** **Why it exists.** "Write me some tests" gives you tests that pass *now* - but you never saw them **fail**, so you don't know they catch anything (a test with a broken fixture passes green and guards nothing). bonfire's whole value is the **red step**: a test proven to fail on the real behavior *before* the code exists is a test you can trust. Plus it stops the two classic failures - writing all tests up front against an imagined shape (crap tests), and gold-plating past what the current test needs. **Honest ceiling - read this.** Red→green proves each test **catches its behavior** and the code is **minimal** - NOT that *untested* behaviors work, nor that the **design** is right, nor that it's bug-free (that's `/aristarchus`/`/darkmoon`). You can't test everything; test the critical paths and **name what you skipped**. A lit bonfire means *this* test passes - not that the dark is gone. ## Usage ``` /bonfire <feature or bug to build, test-first> ``` bonfire writes BOTH the test and the minimal impl (you review). Python (pytest) and TypeScript/JavaScript (mocha, jest, vitest); other stacks