Skip to content
Education
Skill

/tdd

Builds a requested feature test-first, one behavior at a time, and stops at a diff for review. Use when the user asks for a new function or feature, or says test-first or TDD.

From plugin
claude-code-everything-you-need-to-know
3.5k6 skills3 agents

Claude Code

$ npx -y skills add wesammustafa/Claude-Code-Everything-You-Need-to-Know --skill tdd --agent claude-code

SKILL.md

tdd.SKILL.md
name: tdd
description: Builds a requested feature test-first, one behavior at a time, and stops at a diff for review. Use when the user asks for a new function or feature, or says test-first or TDD.

Build this test-first, one behavior at a time: $ARGUMENTS

1. Red: write one failing test for the next behavior. Run the tests and confirm that it fails, and fails for the reason you expect. Don't change code outside the tests in this step. 2. Green: write the least code that makes the new test pass, then run the whole test suite and confirm that every test passes. Don't change the tests in this step. 3. Refactor: improve the names and structure of the code you just wrote without changing what it does, and run the tests again. They must still pass.

Repeat until the feature is done, then run the whole test suite and show the diff. Don't commit: the user reviews the diff and commits.

@wesammustafa
Ships withclaude-code-everything-you-need-to-know

Learn Claude Code in three levels, from your first session to unattended multi-agent runs.

3.5k6 skills3 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
3.5k
Star history of wesammustafa/Claude-Code-Everything-You-Need-to-Know on GitHub, a chart by star-history.com

More skills from other plugins.

Questions about tdd.

Which coding agents can use tdd?
tdd installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.