tdd

Community

Implement features with TDD: red, green, refactor.

Authoranexpn
Version1.0.0
Installs0

System Documentation

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.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: tdd
Download link: https://github.com/anexpn/claude-plugins/archive/main.zip#tdd

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.