tdd

Guide developers through test-driven development by writing failing tests first.

Updated Feb 4, 2026
One-click install
npx skills add https://github.com/officechbusinessservices-creator/CompliCore --skill tdd-officechbusinessservices-creator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd
Source: https://github.com/officechbusinessservices-creator/CompliCore/tree/main/skills/tdd
Command: npx skills add https://github.com/officechbusinessservices-creator/CompliCore --skill tdd-officechbusinessservices-creator

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Development often drifts into unclear implementation as teams struggle to capture behavior before coding. This Skill promotes test-driven development to ensure features are guided by tests, reducing regression risk and improving design.

Core Features & Use Cases

  • Structured TDD workflow: follow the red-green-refactor loop to maintain alignment between tests and code.
  • Behavior-first testing: emphasize tests of public interfaces to survive refactors and changes in internal structure.
  • CI-ready practices: pairs with continuous integration and test-first approaches for feature work or bug fixes.

Quick Start

Start a TDD cycle by writing a failing test for a small feature, then implement the minimal code to make it pass.

Frequently Asked Questions about tdd

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

FAQPage Schema
How does the red-green-refactor loop work in test-driven development?

The red-green-refactor loop in test-driven development involves writing a failing test first, implementing minimal code to pass the test, then refactoring while maintaining behavioral validation. This enforces CI-ready workflows and public-interface testing.

How do I fix bugs using a test-first workflow?

Using a test-first workflow for bug fixes means capturing acceptance criteria in a failing test that reproduces the bug, then implementing the minimal code to pass the test. This ensures robust error handling and reduces regression risk.

What is the best way to structure integration testing in TDD?

The best way to structure integration testing in TDD is to emphasize behavior-first testing across integration boundaries. By validating public interfaces, tests survive internal structural changes and maintain alignment with CI-ready practices.

When do I need test-driven development for feature implementation?

You need test-driven development for feature implementation when development drifts into unclear implementation. It captures behavior before coding, reducing regression risk and improving design through structured behavioral validation.

Does test-driven development work for refactoring existing code?

Yes, test-driven development works for refactoring by emphasizing tests of public interfaces to survive internal structural changes. It maintains alignment between tests and code throughout the red-green-refactor loop.