From xonovex-skill-tdd
Use when driving code test-first or coaching the red-green-refactor rhythm — writing a failing test before the production code, going green with fake-it / obvious-implementation / triangulation, then refactoring to remove duplication, working a test list one item at a time, and letting the tests grow the design. Triggers on red-green-refactor, test-first, 'write the test first', failing test before code, triangulation, fake it till you make it, test list / to-do list, classical (Detroit) vs mockist (London) TDD, and 'clean code that works' — even when the user doesn't say 'TDD'.
How this skill is triggered — by the user, by Claude, or both
Slash command
/xonovex-skill-tdd:tdd-guideThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Drive production code from a failing test, one small step at a time: red (write a test that fails), green (make it pass by any means), refactor (remove the duplication you just created). The goal is clean code that works — and the design emerges from the tests rather than being drawn up front.
Drive production code from a failing test, one small step at a time: red (write a test that fails), green (make it pass by any means), refactor (remove the duplication you just created). The goal is clean code that works — and the design emerges from the tests rather than being drawn up front.
Test list (shopping-cart total):
[ ] empty cart totals 0
[ ] one line item totals its price
[ ] two items sum
[ ] a percentage discount applies
RED test: total([]) === 0 -> fails (no function)
GREEN return 0 -> obvious implementation
RED test: total([{price: 500}]) === 500 -> fails
GREEN return items[0].price -> fake it (duplicated constant)
RED test: total([a, b]) === a.price + b.price -> fails, forces generalize
GREEN items.reduce((s, i) => s + i.price, 0) -> sum; constant duplication gone
REFACTOR name the fold, extract lineTotal() -> structure only, test stays green
npx claudepluginhub xonovex/platform --plugin xonovex-skill-tddGuides completion of development work by verifying tests, detecting environment, and presenting structured options for merge, PR, or cleanup.
Enforces test-driven development: write failing test first, then minimal code to pass. Use when implementing features or bugfixes.
Guides creation and editing of skills using test-driven development with pressure scenarios and subagents to verify agent compliance.