SuperAPI AI Directory

tdd

Testing & quality

View repository

Updated 10-16 05:04

About this skill

Test-Driven Development

Process skill — red → green microcycle. Tests at public interfaces only. Shared vocabulary → process-skill-composition.md.

References: anti-patterns.md · output.md · codebase-design.md.

Read research-basis.md only when you calibrate seam claims.

Entry gate

  • Seam agreed with the user — public interface under test (Seam: header or explicit agreement).
  • Slice in scope — path glob or module id shared with other active atoms when layered.
  • If there is no agreed seam, stop and ask. Do not write production code or tests at private helpers only.

Non-negotiables

  1. Red before green — one vertical slice per cycle.
  2. Independent expected values — not tautological to production logic.
  3. Refactor out of scope — defer structural cleanup unless the user asks.

Workflow

  1. Make sure that Seam and Slice are agreed.
  2. Failing test → red → minimal green → stop.
  3. Report per output.md. User-facing report uses clear English.

Exit artifact

Per output.md — seam, cycle summary, test path citations.

Consumer bindings

Project-specific injected context is appended on skill read. Do not edit synced copies in place.

Output format

Follow output-schema.md. Details → references/output.md.