Skip to content
Automation
Skill

/test-driven-development

Strict RED-GREEN-REFACTOR cycle enforcement. Tests are never skipped or deferred. Run mode only, never watch mode. Exit code evidence mandatory.

From plugin
babysitter
1.8k200 skills3 agents21 commands1 MCP
Install
$ npx -y skills add a5c-ai/babysitter --skill test-driven-development --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/test-driven-development

Context preview

The summary Claude sees to decide when to auto-load this skill.

Strict RED-GREEN-REFACTOR cycle enforcement. Tests are never skipped or deferred. Run mode only, never watch mode. Exit code evidence mandatory.

SKILL.md

test-driven-development.SKILL.md
name: test-driven-development
description: Strict RED-GREEN-REFACTOR cycle enforcement. Tests are never skipped or deferred. Run mode only, never watch mode. Exit code evidence mandatory.
allowed-tools: Read, Write, Edit, Bash, Grep, Glob
graph:
  domains: [domain:software-engineering]
  skillAreas: [skill-area:agentic-loops, skill-area:orchestration-loop]
  workflows: [workflow:feature-development]
  topics: [topic:developer-experience]
  roles: [role:tech-lead, role:backend-engineer]
2. **GREEN**: Write minimal code to make test pass. Exit code MUST be 0.
3. **REFACTOR**: Clean up implementation while keeping tests green. Exit code MUST remain 0.

Non-Negotiable Rules

  • Always use run mode (`CI=true npm test` or `--run` flag)
  • NEVER use watch mode (prevents hanging processes)
  • Use timeout guards (`timeout 60s`) as backup
  • Record exit codes as evidence at each phase
  • If tests fail 3 consecutive times in GREEN, report failure status
  • Never skip RED phase (failing test must exist before implementation)
  • Never defer tests to "later" -- TDD means tests first

Scope Discipline

  • If implementation requires >3 file changes, flag for scope review
  • Architectural choices require user approval unless pre-approved in plan
  • New dependencies require user approval

When to Use

  • Every feature implementation in BUILD workflow
  • Every bug fix in DEBUG workflow (regression test)

Agents Used

  • `component-builder` (primary consumer)
  • `bug-investigator` (regression tests)
Read more
Ships withbabysitter

Enforce obedience on agentic workforces. Manage extremely complex workflows through deterministic, hallucination-free self-orchestration.

Get the whole plugin

Other skills on babysitter.