From dev-workflow
Use when implementing any feature or bugfix, before writing implementation code
How this skill is triggered — by the user, by Claude, or both
Slash command
/dev-workflow:test-driven-developmentThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
**No production code without a failing test first.**
No production code without a failing test first.
You may only write production code to make a failing test pass. If there is no failing test, you must write one before implementing.
Before any implementation:
Checkpoint: Test exists and fails with expected error message.
Write minimal implementation:
Checkpoint: Test passes. All existing tests still pass.
Improve without changing behavior:
Checkpoint: All tests pass. Code is cleaner than before.
Always use for:
This is the default mode for implementation work.
Works with dev-workflow:systematic-debugging:
Works with dev-workflow:implementer:
❌ Writing tests after implementation ("test-after") ❌ Writing implementation for "future needs" without tests ❌ Skipping the RED phase (assuming test would fail) ❌ Writing multiple tests before any implementation ❌ Committing code without tests
✅ Every production code change has a corresponding test ✅ Tests were written before the implementation ✅ Each test failed before its implementation was written ✅ All tests pass before moving to next requirement ✅ Code is clean and well-factored
npx claudepluginhub tombakerjr/claude-code-workflows --plugin dev-workflowGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.