skills/tdd/SKILL.md
Test-Driven Development workflow with RED-GREEN-REFACTOR cycle enforcement. Ensures tests are written before production code, with Git checkpoints at each phase. Use proactively when: - New feature implementation with testable behavior - Bug fix (write reproduction test first) - User explicitly requests TDD approach 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
npx skillsauth add excatt/superclaude-plusplus tddInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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%)
/testing - General test strategy and patterns/pytest-runner - Python test execution/verify - Post-implementation verification/confidence-check - Pre-implementation assessmenttesting
사용자 계획을 기존 도메인 모델에 대해 stress-test하는 인터뷰 세션. 용어를 날카롭게 다듬고, 결정이 굳어질 때마다 CONTEXT.md(도메인 어휘 사전)와 ADR을 인라인으로 갱신한다. 새 기능 요구사항 탐색은 `/brainstorm`을, 기존 도메인 모델·용어와의 정합성 점검은 이 스킬을 사용한다.
development
# Excel (XLSX) Spreadsheet Skill Claude Code supports comprehensive spreadsheet operations through the **xlsx** skill, enabling creation, editing, and analysis of Excel files (.xlsx, .xlsm, .csv, .tsv). ## Trigger - When user needs Excel spreadsheet creation or editing - Financial modeling or data analysis required - Spreadsheet formulas and calculations needed - Data import from CSV/TSV files ## Core Capabilities **Primary functions include:** - Creating new spreadsheets with formulas and f
tools
Generate structured implementation workflows from PRDs and feature requirements
development
실시간 통신 설계 가이드를 실행합니다.