ClaudeSuperPower

tdd

Skill

Use test-driven development for behavior-changing feature or fix work, and whenever the user mentions TDD, test-first, red-green-refactor, tracer bullets, integration tests, or public-interface behavior tests. Skip for docs-only, path-only rename, formatting-only, or purely mechanical chores unless

Install

git clone https://github.com/youdotcom-oss/agent-skills.git ~/.claude/skills/tdd

What is tdd?

Use test-driven development for behavior-changing feature or fix work, and whenever the user mentions TDD, test-first, red-green-refactor, tracer bullets, integration tests, or public-interface behavior tests. Skip for docs-only, path-only rename, formatting-only, or purely mechanical chores unless explicitly requested.

What this can do

Capabilities declared in this component's own frontmatter — not inferred.

Inherit all session tools

Declares no tool restrictions — inherits every session tool

~80 tokens of context used while enabled, before you invoke anything

Documentation

README · ~2 min read

Test-Driven Development

Core Rule

Work in vertical red-green-refactor slices:

  1. RED: write one test for one observable behavior.
  2. GREEN: implement the smallest production change that makes that test pass.
  3. REFACTOR: clean up only while tests are green.

Do not write a batch of imagined tests before implementation. Each new test should respond to what the last cycle taught you about the actual behavior and interface.

Plaited Defaults

  • Use bun test for targeted tests and bun --bun tsc --noEmit for the type gate.

Reviews

Log in to leave a review.

No reviews yet — be the first.

Explore related

Other things in this space — across every part of the ecosystem, not just skills.

Skillssimilar to this one

All skills