tdd

Guides users through the Red-Green-Refactor cycle with Tidy First principles.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/tmsjngx0/mindcontext-core --skill tdd-tmsjngx0
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd
Source: https://github.com/tmsjngx0/mindcontext-core/tree/main/skills/tdd
Command: npx skills add https://github.com/tmsjngx0/mindcontext-core --skill tdd-tmsjngx0

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers consistently apply Test-Driven Development (TDD) principles, ensuring code is built with a strong foundation of tests and adheres to best practices like "Tidy First."

Core Features & Use Cases

  • TDD Cycle Enforcement: Guides users through the Red-Green-Refactor cycle.
  • "Tidy First" Adherence: Separates structural and behavioral code changes.
  • Commit Discipline: Enforces clean, logical commits with passing tests.
  • Use Case: When starting a new feature, this Skill ensures you write a failing test first, implement minimal code to pass, and then refactor, leading to more maintainable and reliable software.

Quick Start

Use the tdd skill to implement the next task from tasks.md.

Frequently Asked Questions about tdd

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

FAQPage Schema
What is the Red-Green-Refactor cycle in test-driven development?

The Red-Green-Refactor cycle in test-driven development is a methodology where you write a failing test, implement minimal code to pass it, and then refactor. This Skill guides you through these steps to ensure robust, maintainable software.

How do I apply Kent Beck's Tidy First principles when refactoring code?

To apply Tidy First principles when refactoring code, this Skill enforces a clear separation between structural and behavioral changes. It ensures structural cleanup happens independently before modifying behavior, leading to safer refactoring.

How do I enforce commit discipline during test-driven development?

You enforce commit discipline during test-driven development by ensuring tests pass before committing. This Skill enforces clean, logical commits that align with the Red-Green-Refactor cycle for reliable version control.

Can I use this TDD Skill with OpenSpec task management systems?

Yes, you can use this TDD Skill with OpenSpec task management systems. It supports structured workflows by guiding you to implement the next task from tasks.md, facilitating disciplined test-first development.

What is the best way to start a new feature using test-driven development?

The best way to start a new feature using test-driven development is to write a failing test first, implement minimal code to pass, and then refactor. This Skill guides you through that exact sequence for reliable software.