mcpField
T
tdd

tdd

github.com/darknesskillerTesting & quality0100 installsUpdated 2w ago
Repository

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

  1. 01Follow Red, Green, Refactor phases
  2. 02Write checks for behavior slices
  3. 03Choose high-level tests with minimal brittleness
  4. 04Run checks using the normal repository command
  5. 05Report passing checks and untestable edges

Use cases

  1. 01Develop a feature through incremental tests
  2. 02Verify HTTP behavior with request-response tests
  3. 03Test services or repositories with practical integration tests
  4. 04Report remaining untestable behavior

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/darknesskiller/skills --skill tdd

After installing, type/tddin Claude Code to confirm it loaded.

Bundled filesagents/openai.yaml

Details

From the project README

TDD

Loop

  1. Red — write one failing check for the next behaviour slice.
  2. Green — make the smallest implementation pass.
  3. Refactor — simplify while the check stays green.
  4. 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.

Comments

Markdown supported