tdd

Guide developers through red-green-refactor test-driven development workflows.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers avoid fragile implementations by guiding them through behavior-focused test-driven development instead of writing code without clear verification.

Core Features & Use Cases

  • Red-Green-Refactor Workflow: Guides incremental development by writing one failing test, implementing the minimum solution, and improving the design afterward.
  • Behavior-Focused Testing: Encourages tests that validate public interfaces and user outcomes while avoiding implementation coupling.
  • Use Case: Apply this Skill when adding features, fixing bugs, or designing new components where maintainable tests and clear interfaces are required.

Quick Start

Use the tdd skill to help me implement this feature using a red-green-refactor workflow with behavior-focused tests.

Frequently Asked Questions about tdd

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

FAQPage Schema
What is test-driven development and how does the red-green-refactor workflow work?

Test-driven development (TDD) is an incremental workflow where you write a failing test, implement the minimum code to pass it, and then refactor to improve design. This red-green-refactor sequence ensures behavior-focused validation before implementation.

How do I implement a new feature using TDD without coupling tests to implementation details?

To implement a feature using TDD, write tests that validate public interfaces and user outcomes rather than internal logic. Apply the red-green-refactor sequence incrementally to maintain clear interfaces and avoid implementation coupling.

When should I use behavior-focused testing for bug fixes and integration testing?

Use behavior-focused testing when fixing bugs or designing components where maintainable tests are required. It validates public interfaces and user outcomes incrementally, ensuring that integration tests remain reliable and avoid fragile implementation coupling.

Does test-driven development require specific testing frameworks or dependencies to start?

Test-driven development does not require specific testing frameworks or dependencies. You can apply the red-green-refactor workflow and behavior-focused testing principles to feature implementation, bug fixes, and interface design in any software development environment.

Why are my tests fragile and how can I design more maintainable test suites?

Tests become fragile when they are coupled to implementation details rather than public behavior. To design maintainable tests, focus on validating public interfaces and user outcomes, and use a red-green-refactor sequence to ensure clear, incremental verification.