tdd

Guide users through the Red-Green-Refactor cycle for test-driven development.

Updated Nov 7, 2025
One-click install
npx skills add https://github.com/IKcoding-jp/Roast-Plus --skill tdd-ikcoding-jp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd
Source: https://github.com/IKcoding-jp/Roast-Plus/tree/main/.claude/skills/tdd
Command: npx skills add https://github.com/IKcoding-jp/Roast-Plus --skill tdd-ikcoding-jp

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

TDD (Test-Driven Development) discipline helps teams reduce bugs by writing automated tests before implementing features, ensuring code quality and safer refactors.

Core Features & Use Cases

  • Structured workflow: enforces Red→Green→Refactor cycles to guide development from test design to implementation.
  • Selective scope: applies to common code areas like lib logic, hooks, and components, and can operate standalone or with SDD/testing docs when available.
  • Clear collaboration: provides guidelines for test design, commit messages, and coverage checks to support consistent teamwork.

Quick Start

Begin by writing a failing test for your target code, then implement the minimal logic to pass and iterate.

Frequently Asked Questions about tdd

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

FAQPage Schema
How do I start test-driven development in TypeScript?

To start test-driven development, you write a failing unit test for your target code, implement the minimal logic to pass, and iterate. This enforces a structured Red-Green-Refactor cycle workflow for rock-solid code.

What is the Red-Green-Refactor cycle for unit tests?

The Red-Green-Refactor cycle is a test-driven development workflow where you first design a failing test (Red), implement code to pass it (Green), and then iteratively refine the implementation (Refactor) while maintaining coverage.

Does test-driven development apply to React hooks and components?

Yes, test-driven development applies to common code areas like lib logic, hooks, and components. It provides specific guidelines for test design and failure-driven implementation across these selective scopes.

Can I use SDD testing docs with a TDD workflow?

Yes, the TDD workflow can operate standalone or in conjunction with SDD and testing docs when available. It integrates existing documentation to guide failure-driven implementation and iterative refinement.

Why write automated tests before implementing features?

Writing automated tests before implementing features helps teams reduce bugs and ensures code quality. This test-first discipline provides safer refactors and clear collaboration through structured commit messages and coverage checks.

What are the limitations of enforcing test-driven development?

Enforcing test-driven development requires strict adherence to the Red-Green-Refactor cycle for every feature, which may slow initial implementation. However, it ensures safer refactors and consistent teamwork through structured coverage checks.