tdd-development

Guide Test-Driven Development with the t-wada methodology and Red-Green-Refactor cycles.

1|Updated Jan 11, 2026
One-click install
npx skills add https://github.com/YH-05/finance --skill tdd-development
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-development
Source: https://github.com/YH-05/finance/tree/main/.claude/skills/tdd-development
Command: npx skills add https://github.com/YH-05/finance --skill tdd-development

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and assets (resource) components.

What problem does it solve?

This Skill provides a comprehensive knowledge base for Test-Driven Development (TDD) following the t-wada methodology, ensuring robust and maintainable code through a structured testing approach.

Core Features & Use Cases

  • TDD Cycle Guidance: Clear steps for Red → Green → Refactor.
  • Test Naming Conventions: Japanese naming patterns for clarity.
  • Test Structuring: Guidelines for unit, property, and integration tests.
  • Use Case: When starting a new feature, use this Skill to guide the creation of failing tests first, then write the minimal code to pass, and finally refactor, ensuring high code quality from the outset.

Quick Start

Follow the TDD cycle to write a new test for the 'add' function.

Frequently Asked Questions about tdd-development

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

FAQPage Schema
How do I start writing tests using the TDD cycle?

Start the TDD cycle by writing a failing test for a new function, then write the minimal code required to pass the test, and finally refactor the implementation while maintaining green tests. This Red, Green, Refactor approach ensures robust code from the outset.

What are the best practices for naming tests in TDD?

Test naming conventions in TDD follow Japanese patterns to ensure maximum clarity. Structuring test names clearly describes the specific behavior being tested, making the test suite self-documenting and easier to maintain during refactoring.

How should I organize unit, property, and integration tests?

Organize unit, property, and integration tests by following structured file organization guidelines. Separating tests based on their scope and execution speed keeps the test suite manageable and ensures fast feedback during the test-driven development process.

What is the triangulation technique in test-driven development?

The triangulation technique in test-driven development is a method used to drive the generalization of code. By writing multiple specific tests for the same functionality, you force the implementation to become more generic and robust to pass all scenarios.

Does TDD work well when refactoring existing code?

TDD works effectively for refactoring by ensuring existing behavior is protected by a comprehensive suite of green tests. The methodology allows you to safely restructure internal code without changing external behavior or introducing regressions.