/tdd-workflow:redfrom TDD Workflow
Write a focused failing test before implementation. Use when starting a scoped feature or bug fix with test-first development.
Ships in TDD Workflow. 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.
현재 작업 범위에서 아직 충족되지 않은 동작을 나타내는 실패 테스트를 먼저 작성한다. 구현 코드는 작성하지 않는다.
spsc skill에서 정의한 완료 기준이 있으면 우선 사용한다.
${CLAUDE_PLUGIN_ROOT}/references/workflow-handoff.md의 freshness 규칙으로 현재 Issue, HEAD와 범위를 다시 확인한다.node "${CLAUDE_PLUGIN_ROOT}/scripts/detect-project.mjs" --pretty를 실행해 package manager, test runner, profile과 명령을 탐지한다.${CLAUDE_PLUGIN_ROOT}/references/project-detection.md를 읽어 기존 설정과 CI에서 보완한다.${CLAUDE_PLUGIN_ROOT}/references/react-typescript.md${CLAUDE_PLUGIN_ROOT}/references/node-typescript.md프로젝트에 이미 정착된 규칙이 profile보다 우선한다.
완료 기준을 관찰 가능한 동작으로 바꾸고 필요한 케이스만 선택한다.
모든 기능에 null, undefined, throw 케이스를 기계적으로 추가하지 않는다.
any와 강제 타입 단언을 사용하지 않는다.탐지한 test runner의 targeted test 명령으로 새 테스트만 실행한다.
Red가 유효하려면 테스트가 다음 이유로 실패해야 한다.
다음 실패는 올바른 Red가 아니므로 테스트 설정부터 수정한다.
테스트가 처음부터 통과하면 이미 구현된 동작인지, 테스트가 충분히 관찰 가능한지 확인한다.
## 🔴 Red Phase 완료
Test runner: <runner>
실행 명령: `<targeted-command>`
작성한 테스트:
- [ ] 테스트 동작 설명 — 요구 동작 미구현으로 실패
구현 파일은 변경하지 않았습니다. /green으로 진행하세요.
완료 보고 뒤에 handoff를 갱신한다.
Produced by: redVerification status: redNext skill: greenWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
6 skills in this plugin
/fixApply only safe mechanical fixes for failures reported by quality-check, then rerun validation./greenImplement the smallest correct change that makes the current Red-phase tests pass./quality-checkRun repository-defined non-mutating format, lint, type, test, and build checks before commit or pull request./refactorImprove the current diff without changing externally observable behavior after tests pass./setup-ciCreate or improve a GitHub Actions quality workflow from the target repository's actual package manager and scripts.npx claudepluginhub gulsam00/sham-agent-tools --plugin tdd-workflow