tdd

Drive test-first development with an incremental red-green-refactor workflow.

7|Updated Apr 4, 2026
One-click install
npx skills add https://github.com/ste-bah/archon-cli --skill tdd-ste-bah
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd
Source: https://github.com/ste-bah/archon-cli/tree/main/assets/skills/tdd
Command: npx skills add https://github.com/ste-bah/archon-cli --skill tdd-ste-bah

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you build or fix software with confidence by turning unclear implementation work into a disciplined test-first workflow.

Core Features & Use Cases

  • Behavior-Focused Testing: Defines tests around public interfaces and observable outcomes instead of internal implementation details.
  • Incremental Delivery: Uses a red-green-refactor loop to make progress one behavior at a time, reducing risk and rework.
  • Practical Planning: Helps you choose the most important behaviors to test first, especially for features, bug fixes, and integration-heavy changes.

Quick Start

Ask the AI to help you plan a red-green-refactor implementation by identifying the public interface and the highest-priority behaviors to test first.

Frequently Asked Questions about tdd

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

FAQPage Schema
How do I implement test-first development using red-green-refactor?

Test-first development using red-green-refactor involves writing a failing test for one behavior, making it pass, then refactoring the code. This Skill drives that incremental workflow to build features and fix bugs with observable outcomes.

What is behavior-driven testing and when should I use it for refactoring?

Behavior-driven testing verifies software through public interfaces and observable outcomes rather than internal implementation details. Use it during refactoring to ensure existing behavior remains intact while you improve code structure after the test suite is green.

How do I write integration tests for a new feature without testing internal implementation details?

Write integration tests by targeting the public interface and observable outcomes of the feature. This Skill helps you identify the highest-priority behaviors to test first, ensuring integration-heavy changes are verified one behavior at a time.

Can I use this red-green-refactor workflow for fixing bugs in an existing codebase?

Yes, the red-green-refactor workflow applies to bug fixes in existing codebases. You write a test that reproduces the bug as a failing red test, implement the fix to make it green, and then refactor safely with a verified suite.

What's the best way to plan incremental delivery for behavior-focused testing?

The best way to plan incremental delivery is to identify the public interface and select the most important behaviors to test first. This Skill helps you choose those high-priority behaviors, reducing risk and rework by making progress one test at a time.

When should I not use test-first development for software engineering tasks?

You should not use test-first development when unable to define tests against public interfaces or when changes lack observable outcomes. The workflow requires defining one behavior at a time and refactoring only after the suite is green.