Babysitter test-driven-development

Test-first development practice where test specifications are written before production code, integrated into plan tasks as mandatory first sub-steps.

install
source · Clone the upstream repo
git clone https://github.com/a5c-ai/babysitter
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/a5c-ai/babysitter "$T" && mkdir -p ~/.claude/skills && cp -r "$T/library/methodologies/rpikit/skills/test-driven-development" ~/.claude/skills/a5c-ai-babysitter-test-driven-development-e821d8 && rm -rf "$T"
manifest: library/methodologies/rpikit/skills/test-driven-development/SKILL.md
source content

Test-Driven Development

Overview

Every code-changing task must enumerate tests before implementation. Test specification is always the first sub-step of each task in the plan.

When to Use

  • During plan writing (test strategy per task)
  • During implementation (write tests before code)
  • When verifying step completion

Process

  1. Specify tests first - Define inputs, expected outputs, edge cases
  2. Write test code - Create automated tests matching specification
  3. Implement production code - Write code that passes the tests
  4. Verify - Run tests and confirm all pass

Test Categories

  • Unit tests: Isolated function/method testing
  • Integration tests: Cross-component interaction testing
  • Manual verification: Human-performed checks when automation is impractical

Key Rules

  • Never combine test writing and implementation into a single step
  • Every task with code changes must have associated tests
  • Tests must be runnable and produce clear pass/fail results
  • Edge cases must be explicitly considered

Tool Use

Integrated into

methodologies/rpikit/rpikit-plan
and
methodologies/rpikit/rpikit-implement