// 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.
  1. Write a failing test.
  2. Run it and see red.
  3. Implement the minimum.
  4. Run green.
  5. Refactor.

Completion checks

  • The workflow was followed.
  • Relevant commands/tests/gates were run.
  • The result cites real files or observable evidence when applicable.

Open this page in the interactive docs