From silver-bullet
Enforces Test-Driven Development (Red-Green-Refactor cycle) for implementation work. Ensures no production code is written without a failing test first.
How this skill is triggered — by the user, by Claude, or both
Slash command
/silver-bullet:tddThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill is an internal Silver Bullet policy layer. It is not picker-visible and is only used by SB workflows.
This skill is an internal Silver Bullet policy layer. It is not picker-visible and is only used by SB workflows.
Canonical marker: tdd (recorded when this skill runs; silver-tdd is accepted as a legacy alias)
Before behavior-changing implementation work, follow this red-green-refactor cycle directly. Do not invoke an external plugin as a prerequisite; SB owns this TDD contract.
Activation point: SB workflows invoke this hidden gate immediately before the SB execution boundary for behavior-changing implementation work.
NO PRODUCTION CODE WITHOUT A FAILING TEST FIRST
Violating this rule in letter violates it in spirit. No exceptions.
Write one minimal test for the behavior you're about to implement.
Run it. Confirm it FAILS.
Confirm it fails for the RIGHT reason — "feature missing" not "syntax error".
Commit: [RED] test(<scope>): <behavior description> — N stubs
DCO: Signed-off-by: <name> <email>
If the test passes immediately: you're testing existing behavior. The test is wrong. Fix it.
Write the simplest code that makes the test pass. Nothing more.
No extra features. No refactoring. Minimum to go green.
Run ALL tests. Confirm they all pass.
Commit: [GREEN] feat(<scope>): <description> — N tests pass
DCO sign-off.
After green: improve names, extract helpers, remove duplication. Tests must stay green throughout. If any go red: revert refactor, retry.
[RED] test(scope): describe-behavior — N stubs (todo!/unimplemented!)[GREEN] feat(scope): describe-behavior — N tests passrefactor(scope): clean up (optional, only after all green)Any of these means delete the code and start with a failing test:
Before marking any implementation complete:
npx claudepluginhub alo-exp/silver-bullet --plugin silver-bulletGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.