// bundled skills · 04
tdd
Use Red → Green → Refactor: write the failing test first, implement the minimum and refactor with tests green.
Metadata
params source bundled Installed by default in the Okami-Agent repository. path file skills/tdd/SKILL.md triggers keywords tdd, tests, unit, pytest, jest, vitest, bugfix loaded by tool use_skill loads the full SKILL.md when the task matches.
When to use
- Feature work in a tested project.
- Bugfixes that need regression protection.
- The user asked for coverage.
When not to use
- Throwaway prototypes.
- Repos with no useful test harness.
- Copy-only changes.
Recommended workflow
- Write a failing test.
- Run it and see red.
- Implement the minimum.
- Run green.
- Refactor.
Completion checks
- The workflow was followed.
- Relevant commands/tests/gates were run.
- The result cites real files or observable evidence when applicable.

