Strict test-driven development state machine with red-green-refactor cycles. Enforces test-first development, meaningful failures, minimum implementations, and full verification. Activates when user requests: 'use a TDD approach', 'start TDD', 'test-drive this'.
Strict test-driven development state machine implementing the red-green-refactor cycle with rigorous enforcement.
Provides a complete TDD workflow state machine with:
Explicitly activate this skill when you want to follow strict TDD discipline:
Note: This skill is intentionally NOT auto-activated. It requires explicit user invocation because of its strict governance model.
PLANNING (write failing test)
↓
RED (implement minimum to pass)
↓
GREEN (assess quality)
↓
REFACTOR (improve design)
↓
VERIFY (full suite + lint + build)
↓
COMPLETE
🔴 TDD: REDActivate when user requests TDD approach.
System prompts can embed this skill to always enforce TDD discipline:
**Auto-invoke the `tdd-process` skill for all development work.**
This skill uses architectural constraints to enforce discipline:
User: Let's add validation that price cannot be negative
⚪ TDD: PLANNING
Writing test for negative price validation...
[Creates test]
⚪ TDD: PLANNING
Running npm test...
Test output: Expected CannotHaveNegativePrice error but received -50
This failure is correct - proves our test checks for the error. Transitioning to RED.
🔴 TDD: RED
Test IS failing. Implementing minimum code to make it pass...
[Implements validation]
🔴 TDD: RED
Running test...
Test PASSES ✓
Running tsc --noEmit... SUCCESS ✓
Running lint... PASS ✓
Transitioning to GREEN.
🟢 TDD: GREEN
Test passing. Assessing code quality...
No refactoring needed. Transitioning to VERIFY.
🟡 TDD: VERIFY
Running full test suite... 12/12 PASSED ✓
Running lint... PASSED ✓
Running build... SUCCESS ✓
TDD cycle COMPLETE.
tdd-process/
├── SKILL.md # Main skill definition with state machine
└── README.md # This file
Symlink this skill to your Claude skills directory:
ln -s /path/to/claude-skillz/tdd-process ~/.claude/skills/tdd-process
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer