Help us improve
Share bugs, ideas, or general feedback.
From hb
Guides test-driven development with red-green-refactor loop. Use when building features or fixing bugs test-first, or when user mentions TDD or red-green-refactor.
npx claudepluginhub helderberto/agent-skills --plugin hbHow this skill is triggered — by the user, by Claude, or both
Slash command
/hb:tddThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Tests verify behavior through public interfaces, not implementation details. See [principles.md](references/principles.md) for testing philosophy and mocking guidelines.
Guides TDD workflow with red-green-refactor cycle: plan interfaces, tracer bullet tests, minimal implementation to green, refactor under tests. For explicit TDD requests only.
Guides test-driven development with red-green-refactor cycles, vertical slicing, and integration tests via public interfaces. Use for feature building or bug fixes in TDD style.
Guides test-driven development with red-green-refactor loop, emphasizing integration-style tests and vertical slicing.
Share bugs, ideas, or general feedback.
Tests verify behavior through public interfaces, not implementation details. See principles.md for testing philosophy and mocking guidelines.
DO NOT write all tests first, then all implementation. Each cycle: one test → minimal code to pass → next test. See examples.md for demonstrations.
RED: Write first test → fails
GREEN: Minimal code to pass → passes
For each remaining behavior:
RED: Write next test → fails
GREEN: Minimal code to pass → passes
One test at a time. Minimal code to pass. No refactoring while RED.
Once all tests GREEN, look for refactor candidates:
Never refactor while RED.
| Excuse | Rebuttal |
|---|---|
| "This is too small for TDD" | Small functions have edge cases too. A 1-min test prevents a 30-min debug. |
| "I'll write tests after" | That's not TDD. Tests written after miss the design feedback loop. |
| "The test is obvious, skip RED" | If it's obvious, writing it takes 10 seconds. Skip nothing. |
| "I need to refactor first" | Never refactor while RED. Get to GREEN, then refactor. |
| "Mocking is too complex here" | Complexity in mocking signals a design problem. Simplify the interface. |
| "I'll batch these 3 tests" | One test at a time. Batching hides which change broke what. |
package.json for test script; ask user which runner to use