tdd

Automates test-first development cycles from failing behavioral tests to refactoring across any language.

Updated Apr 26, 2026
One-click install
npx skills add https://github.com/MADTeacher/skills --skill tdd-madteacher
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd
Source: https://github.com/MADTeacher/skills/tree/main/tdd
Command: npx skills add https://github.com/MADTeacher/skills --skill tdd-madteacher

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Помогает реализовывать функции и исправлять баги по TDD-циклу: один падающий поведенческий тест, минимальная правка, затем безопасный рефакторинг. Навык не привязан к конкретному языку программирования.

Core Features & Use Cases

  • Поддержка поведенческих тестов через публичный интерфейс.
  • Руководство по созданию вертикальных срезов и рефакторинга.
  • Применимо к любым языкам и тестовым фреймворкам; ориентировано на минимальные, безопасные шаги в процессе разработки.

Quick Start

Напиши один падающий поведенческий тест и реализуй минимальный код, чтобы он прошёл, затем безопасно отрефакторируй.

Frequently Asked Questions about tdd

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

FAQPage Schema
How do I practice TDD in small vertical slices?

To practice TDD in small vertical slices, you write one failing behavioral test, implement the minimal code to pass it, and then safely refactor. This approach ensures you build features incrementally with continuous feedback.

What is the red-green-refactor cycle in test-driven development?

The red-green-refactor cycle in test-driven development is a loop where you write a failing test (red), create minimal viable code to pass it (green), and improve the code structure through safety-focused refactoring (refactor).

Can I use test-driven development with any programming language or test framework?

Yes, you can use test-driven development with any programming language or test framework. The approach is language-agnostic and focuses on enforcing observable behavior through public interfaces rather than specific testing tools.

How do I enforce observable behavior when writing behavioral tests?

You enforce observable behavior when writing behavioral tests by interacting strictly with public interfaces and avoiding internal implementation details. This ensures tests validate user-facing functionality through minimal viable code.

When should I do refactoring during the TDD cycle?

You should do refactoring during the TDD cycle immediately after your minimal viable code passes the failing test. This safety-focused refactoring step lets you clean up the implementation while ensuring the behavioral test remains green.