tdd

Enforce the TDD red-green-refactor cycle with domain-specific build and test commands.

1|Updated Feb 19, 2026
One-click install
npx skills add https://github.com/alessioroberto82/claude-plugin-bmad --skill tdd-alessioroberto82
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd
Source: https://github.com/alessioroberto82/claude-plugin-bmad/tree/main/plugin/skills/tdd
Command: npx skills add https://github.com/alessioroberto82/claude-plugin-bmad --skill tdd-alessioroberto82

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enforces the strict Test-Driven Development (TDD) cycle, ensuring that tests are written before implementation and that code is refactored only after it passes.

Core Features & Use Cases

  • Strict TDD Enforcement: Guides users through the Red-Green-Refactor cycle, preventing shortcuts.
  • Domain Detection: Automatically identifies project types (Swift, Node, Go, Python, etc.) to use the correct build and test commands.
  • Use Case: A developer needs to implement a new feature. They invoke the TDD Guardian, which prompts them for the unit of work, guides them to write a failing test, then the minimum code to pass, and finally refactor, ensuring code quality and test coverage.

Quick Start

Use the tdd skill to implement the user story "As a user, I want to be able to reset my password".

Frequently Asked Questions about tdd

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce the red-green-refactor cycle when writing tests?

By enforcing strict Test-Driven Development, this Skill prevents shortcuts by prompting you to write a failing test first, implement the minimum code to pass it, and then refactor. It ensures code quality by rigidly guiding you through the red-green-refactor sequence.

Does this TDD enforcement tool support Python, Node, and Swift projects?

Yes, this Test-Driven Development tool supports Python, Node, Swift, Go, Rust, and Java projects. It automatically detects your project domain to execute the appropriate build and test commands for your specific environment.

What's the best way to start implementing a new feature using test-driven development?

The best way to start test-driven development is by defining a unit of work or user story. This Skill prompts you for the feature details, guides you to write a failing test, and then helps you write the minimum code required to pass it.

How does automated domain detection work for TDD build commands?

Automated domain detection works by identifying your project type, such as Swift, Go, or Rust, to use the correct build and test commands. This ensures the Test-Driven Development cycle runs the right tests automatically without manual configuration.

Why should I write tests before implementation code?

You should write tests before implementation code to prevent regressions and promote robust, testable code. This approach ensures that functionality is defined by a failing test first, driving better design and comprehensive test coverage.