test-driven-development

Enforce a red-green-refactor test-first workflow for software development.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/s0341969/scheduler-project --skill test-driven-development-s0341969
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-driven-development
Source: https://github.com/s0341969/scheduler-project/tree/main/.codex/skills/agent-skills/skills/test-driven-development
Command: npx skills add https://github.com/s0341969/scheduler-project --skill test-driven-development-s0341969

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

TDD drives development by making tests the first step, reducing defects and regression risk.

Core Features & Use Cases

  • Enforces a red-green-refactor cycle for new and existing code
  • Provides guidelines for writing meaningful tests, managing edge cases, and reproducing bugs
  • Includes patterns like the Prove-It approach and the Test Pyramid to guide QA and maintenance

Quick Start

Write a failing test for a new behavior, implement the minimum code to pass, then refactor while keeping tests green.

Frequently Asked Questions about test-driven-development

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

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

Test-driven development starts by writing a failing test for a new behavior, implementing the minimum code to pass, then refactoring while keeping tests green.

What is the red-green-refactor cycle in unit testing?

The red-green-refactor cycle is a test-driven workflow where you write a failing test, implement code to make it pass, and then refactor while maintaining green tests.

How do I write unit tests to reproduce a bug fix?

To reproduce a bug fix with unit testing, write an explicit failing test that captures the defect, then modify the code to satisfy requirements and make the test pass.

Does test-driven development work for existing TypeScript code?

Test-driven development works for existing TypeScript code by enforcing the red-green-refactor cycle during logic changes, bug fixes, and feature work to reduce regression risk.

When should I use the test pyramid in software engineering?

Use the test pyramid in software engineering to guide QA and maintenance by structuring meaningful tests and managing edge cases when writing robust, maintainable code.