tdd

Installation
SKILL.md

TDD

Tests verify behavior through public interfaces, not implementation. Good tests survive refactors; bad tests break on rename.

See tests.md and mocking.md for examples.

Anti-pattern: horizontal slices

Don't write all tests then all code. One behavior: RED → GREEN → repeat.

Workflow

  1. Plan — read CONTEXT.md/ADRs. Confirm interface changes and behaviors to test with user.
  2. Tracer bullet — one test, one minimal implementation, passes.
  3. Loop — one test at a time; only code to pass current test; no speculation.
  4. Refactor — only when GREEN; see refactoring.md.

Per-cycle checklist

Installs
3
Repository
yugasun/aiops
GitHub Stars
4
First Seen
Jun 29, 2026
tdd — yugasun/aiops