tdd

Guide developers through the red-green-refactor loop for test-driven development.

Updated May 17, 2026
One-click install
npx skills add https://github.com/tanglg/cms --skill tdd-tanglg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd
Source: https://github.com/tanglg/cms/tree/main/.codex/skills/tdd
Command: npx skills add https://github.com/tanglg/cms --skill tdd-tanglg

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps users implement test-driven development (TDD) practices, focusing on the red-green-refactor loop, integration tests, and test-first development.

Core Features & Use Cases

  • Test-Driven Development: Encourages writing tests before code to ensure software quality.
  • Red-Green-Refactor Loop: Guides users through the process of writing a failing test (RED), making it pass (GREEN), and then refactoring the code (REFACTOR).
  • Integration Tests: Promotes writing integration-style tests that verify behavior through public interfaces.
  • Use Case: A developer wants to add a new feature to an application and wants to ensure high code quality by using TDD practices.

Quick Start

Use the tdd skill to start a new test-driven development cycle for your feature implementation.

Frequently Asked Questions about tdd

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

FAQPage Schema
How do I implement test-driven development for a new software feature?

To implement test-driven development, you write a failing test first, write the minimum code to pass it, and then refactor. This Skill guides you through that red-green-refactor loop to ensure high code quality for new application features.

What is the red-green-refactor loop in test-first development?

The red-green-refactor loop in test-first development is a cycle where you write a failing test (RED), implement code to make it pass (GREEN), and then clean up the code (REFACTOR). This Skill walks you through each phase of this process.

How do I write integration tests that verify behavior through public interfaces?

Writing integration tests that verify behavior through public interfaces is promoted by this Skill as part of test-driven development. It guides you to structure tests around external interactions rather than internal implementation details.

Do I need prior knowledge of software testing principles to use test-driven development?

Yes, using test-driven development requires existing knowledge of software testing principles and practices. This Skill applies those foundations to guide you through the test-first development cycle for your feature implementation.

When should I use test-driven development practices in my software development workflow?

You should use test-driven development practices when you want to ensure software quality through test-first development. It is applicable in software development scenarios where you are adding new features and need verified code quality.