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
More from manastalukdar/claude-devstudio
duplication-detect
Find and eliminate code duplication with DRY refactoring strategies
20db-diagram
Generate database ER diagrams from schema for documentation
17lighthouse
Run Lighthouse audits and implement performance, accessibility, and SEO fixes
13session-resume
Resume previous work from archived session with full context restoration
12owasp-check
OWASP Top 10 vulnerability scanning and remediation
12database-connect
Database MCP server integration for PostgreSQL, MySQL, MongoDB
11