/superclaude-plusplus:tddfrom superclaude-plusplus
Enforces RED-GREEN-REFACTOR TDD cycle with Git checkpoints per phase. Use for new testable features and bug fixes (reproduction test first).
Ships in superclaude-plusplus. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use proactively when:
Triggers: TDD, test-driven, test first, red green refactor, write test first, failing test, reproduction test
Do NOT use for: config changes, documentation, simple renames, UI-only changes
Recent TDD commits:
!git log --oneline -5 --grep="red:\|green:\|refactor:" 2>/dev/null || echo "No TDD commits found"
Test infrastructure:
!ls tests/ __tests__/ test/ 2>/dev/null | head -10 || echo "No test directory found"
Enforce disciplined RED-GREEN-REFACTOR cycle with Git checkpoints to prevent skipping steps.
/tdd "user login validation" # new feature
/tdd "fix: timeout on large files" # bug reproduction
/tdd # prompt for description
RED → GREEN → REFACTOR → (repeat)
│ │ │
│ │ └─ git commit "refactor: ..."
│ └─ git commit "green: ..."
└─ git commit "red: ..."
Goal: Write a test that describes the desired behavior. It MUST fail.
DO NOT edit production code until RED state is confirmed.
Acceptable RED states:
NOT acceptable:
git add -A && git commit -m "red: [describe expected behavior]"
Goal: Write the MINIMUM production code to make the test pass. Nothing more.
ALL tests must pass. No new test failures introduced.
git add -A && git commit -m "green: [describe what was implemented]"
Goal: Improve code quality without changing behavior. Tests stay green throughout.
git add -A && git commit -m "refactor: [describe improvement]"
After REFACTOR, evaluate:
After all cycles complete:
# JavaScript/TypeScript
pnpm test -- --coverage
# Python
pytest --cov --cov-report=term-missing
Minimum threshold: Report actual coverage. Flag untested paths. Do not set arbitrary percentage targets unless the project defines one.
TDD checkpoints feed directly into the Verification Iron Law:
Each commit is a verification artifact.
## TDD Cycle 1: [behavior]
### RED
- Test: `test/auth.test.ts` — `should reject empty password`
- Status: FAIL ✓ (assertion error: expected rejection)
- Commit: `red: reject empty password validation`
### GREEN
- Implementation: `src/auth.ts:validatePassword()`
- Status: ALL PASS ✓
- Commit: `green: implement password validation`
### REFACTOR
- Change: extracted validation rules to constants
- Status: ALL PASS ✓
- Commit: `refactor: extract validation constants`
## Coverage: 87% (src/auth.ts: 100%)
/pytest-runner - Python test execution/verify - Post-implementation verification/confidence-check - Pre-implementation assessmentWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub excatt/superclaude-plusplus --plugin superclaude-plusplus44 skills in this plugin
/adaptAdapt designs to work across different screen sizes, devices, contexts, or platforms. Implements breakpoints, fluid layouts, and touch targets. Use when the user mentions responsive design, mobile layouts, breakpoints, viewport adaptation, or cross-device compatibility./animateReview a feature and enhance it with purposeful animations, micro-interactions, and motion effects that improve usability and delight. Use when the user mentions adding animation, transitions, micro-interactions, motion design, hover effects, or making the UI feel more alive./auditRun project-specific verification rules (business logic, architecture patterns, naming) that linters cannot catch; bootstraps rules if none exist. Not for build/lint/test (/verify)./bolderAmplify safe or boring designs to make them more visually interesting and stimulating. Increases impact while maintaining usability. Use when the user says the design looks bland, generic, too safe, lacks personality, or wants more visual impact and character./brainstormInteractive requirements discovery through Socratic dialogue and systematic exploration/build-fixExpert skill for resolving build errors with minimal change principle. Use for build failures, type errors, compile errors. Keywords: build, fix, error, compile, typescript, type, resolve.Other plugins' skills for the same job