tdd-wada-style

Apply t.wada's test-first Red-Green-Refactor workflow to Python projects.

Updated Nov 8, 2025
One-click install
npx skills add https://github.com/YunosukeYoshino/ImageScraper --skill tdd-wada-style
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-wada-style
Source: https://github.com/YunosukeYoshino/ImageScraper/tree/main/.claude/skills/tdd
Command: npx skills add https://github.com/YunosukeYoshino/ImageScraper --skill tdd-wada-style

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a structured framework to adopt t.wada's TDD philosophy, helping teams design simpler APIs and catch regressions early through disciplined test-first development.

Core Features & Use Cases

  • Structured TDD Cycle: Red-Green-Refactor with AAA pattern guidance and practical templates.
  • Training Materials: Examples, anti-patterns, and templates to accelerate learning and code reviews.
  • Use Case: Teams applying TDD during feature development, bug fixes, or refactors will gain maintainable tests and clearer specifications.

Quick Start

Write a failing test for a small behavior, implement the minimal code to pass, and refactor for clarity.

Frequently Asked Questions about tdd-wada-style

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

FAQPage Schema
What is the Red-Green-Refactor cycle in TDD and how does it improve Python code quality?

The Red-Green-Refactor cycle in TDD involves writing a failing test, implementing minimal code to pass it, then refactoring for clarity. It improves Python code quality by enforcing test-first development to catch regressions early and design simpler APIs.

How do I structure Python tests using the AAA pattern for maintainable test code?

Structure Python tests using the AAA pattern by organizing code into Arrange, Act, and Assert sections. This intention-revealing structure promotes maintainable test code and clearer specifications, ensuring tests remain readable during feature development and refactoring.

Does this TDD approach work for both new feature development and bug fixes in Python?

Yes, this TDD approach works for new feature development, bug fixes, and refactoring in Python projects. It provides structured templates and anti-patterns to help teams apply disciplined test-first development across typical Python workflows.

How do I start practicing test-first development with intention-revealing tests?

Start test-first development by writing a failing test for a small behavior, implementing the minimal code to pass, and refactoring for clarity. This structured cycle uses intention-revealing tests to accelerate learning and produce code-review friendly artifacts.

What are common TDD anti-patterns to avoid when writing Python tests?

Common TDD anti-patterns to avoid include skipping the Red phase or writing overly complex tests. This framework provides dedicated examples and anti-pattern guidance to ensure maintainable test code and prevent regressions during typical Python project refactoring.