tdd

Guide developers through a five-phase Test-Driven Development workflow.

1|Updated Oct 24, 2025
One-click install
npx skills add https://github.com/anexpn/claude-plugins --skill tdd
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd
Source: https://github.com/anexpn/claude-plugins/tree/main/skills/tdd
Command: npx skills add https://github.com/anexpn/claude-plugins --skill tdd

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill eliminates the risks of writing untested code, which often leads to bugs, regressions, and difficulty in future refactoring. It enforces the Test-Driven Development (TDD) methodology, ensuring robust, well-tested code through a disciplined, incremental approach.

Core Features & Use Cases

  • Five-Phase Workflow: Guides you through writing failing tests, minimal implementation, confirming success, and refactoring while keeping tests green.
  • Guaranteed Test Coverage: Ensures every new feature or bug fix has dedicated, passing tests, improving code reliability.
  • Safe Refactoring: Provides the confidence to improve code structure and readability without introducing regressions, thanks to a comprehensive test suite.
  • Use Case: When implementing a new user authentication module, use this Skill to guide you through writing tests for each component (e.g., password hashing, token generation) before writing the actual code, ensuring correctness from the start.

Quick Start

When starting a new feature or fixing a bug: "Guide me through the TDD workflow for this task: [task description]."

The skill will prompt you to:

  1. Write a failing test.
  2. Run the test to confirm failure.
  3. Write minimal code to pass the test.
  4. Run tests to confirm success.
  5. Refactor.