tdd

Implement features using test-driven development with public interface tests.

71|17|Updated Apr 24, 2026
One-click install
npx skills add https://github.com/AgentiveStack/skills --skill tdd-agentivestack
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd
Source: https://github.com/AgentiveStack/skills/tree/main/tdd
Command: npx skills add https://github.com/AgentiveStack/skills --skill tdd-agentivestack

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Implementing features can be unreliable when changes occur, so this Skill provides a disciplined approach to ensure behavior is proven through tests that exercise public interfaces rather than internals.

Core Features & Use Cases

  • One-test-one-implementation loop: write a single failing test and minimal code to pass it, iterating until the feature is complete.
  • Public-interface focus: tests validate observable behavior through public APIs, not private details.
  • Tracer-bullet workflow: supports end-to-end development from feature concept to working slice, with clear rules for red-green-refactor.
  • UI and glue code guidance: provides pragmatic guidance for UI or integration code when necessary, while prioritizing test-first logic for core behavior.

Quick Start

Write a failing test for the desired behavior, then implement the minimal code to pass it.

Frequently Asked Questions about tdd

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

FAQPage Schema
How do I implement features using test-driven development without testing internal implementation details?

Pragmatic test-driven development lets you implement features by verifying behavior through public interfaces rather than internals. You write tests that exercise observable public APIs, ensuring changes remain reliable without coupling tests to private details.

What is the one-test-one-implementation loop for feature development?

The one-test-one-implementation loop is a test-driven development cycle where you write a single failing test for desired behavior, then implement minimal code to pass it. You iterate this red-green-refactor process until the feature is complete.

How do I handle UI and glue code when using test-driven development for a feature slice?

Test-driven development provides pragmatic guidance for UI and integration glue code when necessary, while prioritizing test-first logic for core behavior. You focus test-first discipline on core logic and boundary contracts, applying pragmatic approaches to UI code.

Does pragmatic TDD work for turning a feature slice into working code end-to-end?

Pragmatic TDD supports end-to-end development from feature concept to working slice using a tracer-bullet workflow. It applies clear red-green-refactor rules, proving behavior through public interfaces as you incrementally build the feature.

When should I avoid testing private internals during feature development?

You should avoid testing private internals during feature development because tests should validate observable behavior through public APIs. Testing internals couples tests to implementation details, making changes unreliable and increasing maintenance burden when refactoring.