tddlisted
Install: claude install-skill supermodo/skills
# tdd — Test-Driven Development & Test-First Debugging
> **Requires:** the sibling `protocols` skill (shared protocol masters); uses `skills.config.json` when present. Missing protocols → tell the user to install the full supermodo package.
Two modes, one discipline: tests lead, production code follows.
**Command preflight.** With `skills.config.json` present, validate it per
`../protocols/references/config.md` and run tests ONLY via the configured
tiers (`../protocols/references/tooling.md`): `commands.test` (fallback
`commands.testUnit`) inside the red-green loop — the fast tier, after
every change — `commands.testUnit` as the completion gate,
`commands.testAll` for full-suite checks, `commands.coverage` against
`coverage.target` for coverage gates. A needed tier that is missing → say
so and point at `config --edit commands`; and when a configured project
has NEITHER `test` nor `testUnit`, HALT before touching production code —
a test-first workflow with no way to run tests is impossible, not
degradable. Never invent a command. No config → infer the project's own
test runner from its manifests and state which command you chose.
| Invocation | Mode |
|---------------|------|
| `tdd` | **Development** — red-green-refactor while building a feature |
| `tdd --debug` | **Debugging** — hypothesis-testing for an existing bug (below) |
> Supersedes the older `tdd-debug` skill name (its methodology is the
> `--debug` mode here, unchanged).
---
## Development mode (