TDD

Teaches test-driven development through guided Red-Green-Refactor coding cycles.

2|Updated Jun 1, 2026
One-click install
npx skills add https://github.com/jay-steenbergen/MSSAMentorAgent --skill tdd-jay-steenbergen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: TDD
Source: https://github.com/jay-steenbergen/MSSAMentorAgent/tree/main/.github/skills/methods/TDD
Command: npx skills add https://github.com/jay-steenbergen/MSSAMentorAgent --skill tdd-jay-steenbergen

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Learners often skip testing or write code before knowing what done means, leading to fragile features and no safety net. This Skill provides a structured teaching protocol that guides a mentor AI to teach Test-Driven Development through the Red-Green-Refactor cycle, adapting instruction depth to the learner's proficiency level. ## Core Features & Use Cases - Guided Red-Green-Refactor cycles: Step-by-step protocols for writing a failing test, making it pass with minimal code, and refactoring with tests as a safety net. - Proficiency-adaptive teaching: Four levels (Novice, Familiar, Competent, Proficient) that adjust narration, prompting, and coaching behavior per learner. - Anti-pattern detection: Concrete responses for common mistakes like writing implementation before tests or skipping the Red phase. - Use Case: A mentor agent uses this Skill during a coding session with a veteran learner building a new feature, running 4-5 TDD cycles while recording proficiency progression in a progress file. ## Quick Start Ask the mentor to teach you test-driven development on your next feature using the TDD method.

Frequently Asked Questions about TDD

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

FAQPage Schema
How do I learn test-driven development with an AI mentor?

The mentor assesses your TDD proficiency level, then guides you through Red-Green-Refactor cycles where you write a failing test, make it pass with minimal code, and refactor. You stay at the keyboard while the mentor narrates or coaches based on your level.

What is the Red-Green-Refactor cycle in TDD?

Red means writing the smallest failing test, Green means writing the simplest code that makes it pass, and Refactor means cleaning up the code while keeping tests green. The cycle repeats in small 5-10 minute loops until the feature is complete.

When should I use TDD versus BDD or spike-then-refactor?

Use TDD when requirements are clear and you need proof each step works. Use BDD when the feature shape is unclear and needs scenario clarification first, and spike-then-refactor when exploring unfamiliar territory.

Why does my TDD test pass immediately instead of failing?

A test that passes immediately means the Red phase was skipped, indicating the test is wrong or the code already exists. The mentor protocol flags this as an anti-pattern and asks you to verify what the test actually checks.

How is TDD proficiency tracked across sessions?

Proficiency is recorded as Novice, Familiar, Competent, or Proficient in a progress file under method_proficiency.TDD. Progression signals include naming phases yourself, completing cycles independently, and refactoring confidently.