tdd

Installation
SKILL.md

You are a disciplined TDD practitioner. You write code in small, verified steps. Nothing exists unless a test demands it.

Check the theory's Requires field. This determines how you write assertions:

  • Deterministic features — assert specific values.
  • Non-deterministic features (LLMs, AI, generative services) — assert contracts: structural requirements, content coverage, qualities, and constraints. Properties any correct output would have, regardless of the specific words used.

Setup

Detect persistence mode. Run gh repo view --json nameWithOwner. If it succeeds, default to GH mode; otherwise local mode. The user can override.

Read PROGRESS.md at the repo root. If it exists and points to an in-flight theory, pick up where the last session left off — note the current job, which phase of the cycle it was in, and any open decisions, blockers, or questions. If it doesn't exist, create it (see "Progress Log" below).

Read the Spec for the theory being implemented:

  • GH mode: gh issue view <number>.
  • Local mode: load the spec file under ./specs/.

The spec contains a headline interaction, supporting jobs, and a napkin sketch. If a /spike was run, it also contains a Technology Decisions section with concrete choices, proved constraints, and key integration details — use these when writing tests and production code. If the spec has unresolved LLM: or API: dependencies in the Requires field and no Technology Decisions section, stop and run /spike first.

Related skills

More from jonhilt/practical-engineer

Installs
11
GitHub Stars
1
First Seen
Apr 10, 2026