tdd-red-green

Installation
SKILL.md

TDD Red-Green Workflow

I'll guide you through true Test-Driven Development with strict RED → GREEN → REFACTOR cycle enforcement.

TDD Philosophy (Based on obra/superpowers):

  • Write failing test FIRST (RED)
  • Write minimum code to pass (GREEN)
  • Refactor while keeping tests green
  • YAGNI: You Aren't Gonna Need It
  • DRY: Don't Repeat Yourself

Token Optimization:

  • ✅ Bash-based framework detection (minimal tokens)
  • ✅ Grep for test file patterns (100 tokens vs 2,000+ reading all files)
  • ✅ Caching framework detection - saves 70% on subsequent runs
  • ✅ Early exit when no test framework found - saves 95%
  • ✅ Template-based examples (no file reads needed)
  • ✅ Progressive guidance (step-by-step instead of all at once)
  • Expected tokens: 800-2,000 (vs. 2,500-4,000 unoptimized)
Related skills
Installs
6
GitHub Stars
1
First Seen
Feb 21, 2026