tdd

Guide Test-Driven Development with the Red-Green-Refactor cycle in TypeScript and Python.

1|Updated Jan 26, 2026
One-click install
npx skills add https://github.com/arakitakashi/homework-coach-robo --skill tdd-arakitakashi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd
Source: https://github.com/arakitakashi/homework-coach-robo/tree/main/.claude/skills/tdd
Command: npx skills add https://github.com/arakitakashi/homework-coach-robo --skill tdd-arakitakashi

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides a comprehensive guide to Test-Driven Development (TDD), helping developers write cleaner, more robust code by focusing on testing first.

Core Features & Use Cases

  • TDD Principles: Learn the core tenets of TDD, including the Red-Green-Refactor cycle, and the importance of test code quality.
  • Development Strategies: Understand and apply strategies like "Fake It," "Triangulation," and "Obvious Implementation."
  • Practical Examples: See TDD applied in TypeScript and Python (FastAPI/pytest) with clear, step-by-step examples.
  • Use Case: A developer is starting a new feature and wants to ensure high code quality and maintainability from the outset. They consult this Skill to guide their TDD process.

Quick Start

Use the tdd skill to learn about the Red-Green-Refactor cycle.

Frequently Asked Questions about tdd

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

FAQPage Schema
What is the Red-Green-Refactor cycle in Test-Driven Development?

The Red-Green-Refactor cycle is the core Test-Driven Development process: write a failing test, write code to pass it, then refactor cleanly. This enforces high test coverage and robust software design from the start.

How do I apply TDD strategies like Fake It and Triangulation?

Fake It and Triangulation are Test-Driven Development strategies used to pass tests incrementally. Fake It uses hardcoded return values, while Triangulation generalizes code only after multiple specific tests force the correct implementation.

Does this TDD guide support Python and TypeScript environments?

Yes, the Test-Driven Development guide supports both Python and TypeScript environments. It provides practical, step-by-step examples using Python with FastAPI and pytest, alongside TypeScript implementations.

What's the best way to start writing tests before implementation?

The best way to start writing tests before implementation is to consult a Test-Driven Development guide for the Red-Green-Refactor cycle. This ensures high code quality and maintainability from the project's outset.

Why focus on test code quality in agile software development?

Focusing on test code quality in agile software development is essential because tests must remain readable and maintainable. High-quality tests support continuous refactoring and ensure long-term software robustness.