About tdd
TDD is a skill that guides development through the Red, Green, and Refactor loop. It emphasizes behavior-focused checks, running them with the repository's normal command, and reporting any untestable edges.
Key features
- 01Follow Red, Green, Refactor phases
- 02Write checks for behavior slices
- 03Choose high-level tests with minimal brittleness
- 04Run checks using the normal repository command
- 05Report passing checks and untestable edges
Use cases
- 01Develop a feature through incremental tests
- 02Verify HTTP behavior with request-response tests
- 03Test services or repositories with practical integration tests
- 04Report remaining untestable behavior
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ darknesskiller/ skills --skill tddAfter installing, type/tddin Claude Code to confirm it loaded.
Bundled filesagents/openai.yaml
Details
From the project READMETDD
Loop
- Red — write one failing check for the next behaviour slice.
- Green — make the smallest implementation pass.
- Refactor — simplify while the check stays green.
- Repeat until the contract is covered.
Output
Name every phase: Red, Green, Refactor, Repeat. Finish with: Passing check, Normal command, Untestable (none or remaining edge).
Completion: every requested behavior has a passing check, the check ran in the repo's normal command, and any untestable edge is reported.
Test choice
Prefer the highest-level test that proves the behaviour without brittle setup. HTTP paths: request/response tests. Service/repository: integration tests when practical. Go: table-driven with testify/require if project uses it. Keep mocks at boundaries. Do not mock what you can run cheaply. One assert-style self-check suffices for tiny cases.