Skip to main content
</>

TDD

Develop concrete behavior through test-first vertical slices, prove the tests can detect failure, verify the real runtime surface, and apply risk-proportional adversarial testing.

Engineeringv1.0.0Stable
$agy skill install tdd

Develop concrete behavior through test-first vertical slices, prove sensor sensitivity, and apply risk-proportional verification.

What this skill does

Develop concrete behavior through test-first vertical slices, prove the tests can detect failure, verify the real runtime surface, and apply risk-proportional adversarial testing.

Prevents brittle implementations and false confidence by proving test sensitivity before code is written, ensuring every test accurately exercises real failure modes.

When to reach for it

  • When implementing new features or bug fixes where behavior can be observed.
  • When requested to work in red-green-refactor discipline.
  • When high-risk algorithms or state machines require strict regression verification.
Note: Every vertical slice must prove test sensor failure (RED) before writing minimal production code (GREEN).

How it works

TDD follows a simple, structured process to pressure-test your thinking and help you reach a clearer decision.

1

Define Behavior Slice

Identify the smallest observable unit of behavior to implement.

Select single sliceDefine expected inputs/outputs
2

Choose Inner-Loop Seam

Select the most direct, fast execution seam to test the behavior.

Identify test seamAvoid heavy integration mocks
3

RED (Prove Sensor Fails)

Write the failing test and run it to prove it fails for the expected reason.

Write minimal testVerify failure message
4

GREEN (Minimal Implementation)

Write the smallest viable production code to satisfy the test sensor.

Implement minimal codeVerify test passes
5

Sensor Verification & Refactor

Mutate the code or sensor to prove sensitivity, then refactor cleanly.

Adversarial checkRefactor safelyAdvance to next slice

What's included

The skill comes with a ready-to-use prompt, guidance, and supporting resources.

SKILL.md
The main skill definition, usage guide, and examples.
References
Links to relevant concepts and deeper reading (3 local files: adversarial-testing.md, runtime-verification.md, test-quality.md).
Dependencies
None. Runs with a standard assistant.
Workflows
None. Standalone skill execution.
Evaluation scenarios
20 formal test scenarios in evals/tdd/cases.yaml to validate quality and consistency.

Common questions

No. Every vertical slice begins with a proven failing test (RED) before minimal production code is written (GREEN).

Install this skill

Add TDD to your assistant and start using it in your workflow.

View source on GitHub
Target: .agent-toolkit/skills/tdd/SKILL.md
Uses the deterministic standard-library installer with SHA-256 hash tracking.
$python scripts/install.py apply --skill tdd
Distribution Unavailable — GitHub Release Pendingcommit: 0e4dc4c

Pre-packaged ZIP archives are published when a tagged GitHub release is created on the public repository. Zero simulated or fabricated binary downloads are served.