tdd

Guides engineers through red-green-refactor cycles for feature development and bug fixes.

1|Updated Feb 13, 2026
One-click install
npx skills add https://github.com/paialex/ai-skills-bank --skill tdd-paialex
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd
Source: https://github.com/paialex/ai-skills-bank/tree/main/mattpocock_skills/engineering/tdd
Command: npx skills add https://github.com/paialex/ai-skills-bank --skill tdd-paialex

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Test-driven development skills enable teams to validate behavior via public interfaces, ensuring code remains robust to refactors and changes.

Core Features & Use Cases

  • Guides users through red-green-refactor cycles for feature development and bug fixes.
  • Emphasizes integration-style tests over private implementation details.
  • Supports planning and incremental learning workflows that align tests with user-facing behavior.

Quick Start

Try a red-green-refactor cycle on a small feature to see tests guide design.

Frequently Asked Questions about tdd

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

FAQPage Schema
How do I use test-driven development to guide feature design?

Test-driven development guides feature design by using red-green-refactor cycles to validate behavior via public interfaces, ensuring code remains robust. It aligns tests with user-facing behavior to support incremental learning and planning workflows.

What is the best way to structure integration tests for refactoring?

The best way to structure integration tests for refactoring is to emphasize testing public interfaces over private implementation details. This integration-style testing approach ensures your code remains robust and validates behavior effectively during changes.

When should I use red-green-refactor cycles for bug fixes?

You should use red-green-refactor cycles for bug fixes when you need to validate behavior via public interfaces and ensure refactor readiness. This test-first strategy incrementally aligns tests with user-facing behavior to prevent regressions.

Does test-driven development require planning alignment before writing tests?

Test-driven development benefits from planning alignment to map out user-facing behavior before writing tests. This incremental learning workflow supports tracer-bullet style development, ensuring tests validate the intended public interfaces.

What are the limitations of focusing on integration-style tests in TDD?

Focusing on integration-style tests in TDD means you emphasize public interfaces over private implementation details. While this ensures refactor readiness, it may not isolate specific logic units as precisely as narrower scoped tests.

Can I apply a test-first strategy to tracer-bullet style development?

Yes, you can apply a test-first strategy to tracer-bullet style development. This approach uses incremental testing to align end-to-end workflows with user-facing behavior, validating public interfaces during early feature development.