tdd

Enforce a tests-first workflow with Red-Green-Refactor cycles and factory-based test data.

21|6|Updated Dec 10, 2025
One-click install
npx skills add https://github.com/mintuz/claude-plugins --skill tdd-mintuz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd
Source: https://github.com/mintuz/claude-plugins/tree/main/plugins/web/skills/tdd
Command: npx skills add https://github.com/mintuz/claude-plugins --skill tdd-mintuz

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill guides teams in adopting Test-Driven Development by enforcing a tests-first workflow.

Core Features & Use Cases

  • Red-Green-Refactor cycle guidance for rapid feedback and safer refactors.
  • Factory-based test data and organization practices to ensure test isolation.
  • Behavior-focused testing patterns, naming guidelines, and organization by feature/behavior.
  • Practical workflow examples and references to expand TDD knowledge.

Quick Start

Start by reviewing the workflow examples in references/workflow-examples.md and apply the Red-Green-Refactor cycle to a small feature in your project.

Frequently Asked Questions about tdd

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

FAQPage Schema
How do I implement a red-green-refactor workflow for test-driven development?

A red-green-refactor workflow enforces a tests-first approach by writing failing tests, developing minimal production code to pass them, and then refactoring. This skill provides cycle guidance and practical workflow examples to structure your testing process effectively.

What is behavior-focused testing and how does it organize test data?

Behavior-focused testing organizes tests by feature and behavior rather than implementation details. It utilizes factory-based test data practices to ensure test isolation, providing clear naming guidelines and structure for your test suite.

When do I need to use factory-based test data in my testing workflow?

You need factory-based test data when ensuring test isolation across typical software projects. It provides structured organization practices and reliable data generation, preventing test dependencies from causing flaky results during your development cycles.

Can I apply TDD practices to existing software projects with minimal code changes?

Yes, you can apply TDD to existing projects by enforcing a tests-first workflow and writing minimal production code to pass new tests. The skill offers practical workflow examples and refactoring practices to integrate TDD incrementally.

What is the best way to structure tests for clear public API testing?

The best way to structure tests for clear public API testing is using behavior-focused patterns with specific naming guidelines. This approach ensures you satisfy requirements by validating behaviors and organizing tests by feature rather than internal methods.

Why does refactoring existing code often break my test suite?

Refactoring breaks test suites when tests are tied to implementation rather than behavior. Adopting behavior-focused testing and factory-based test data ensures test isolation, allowing you to refactor production code safely without breaking API expectations.