ship-tdd
Use when implementing tasks that have test-based verify commands — provides RED-GREEN-REFACTOR cycle guidance
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Use when implementing tasks that have test-based verify commands — provides RED-GREEN-REFACTOR cycle guidance
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Use when a feature plan has been verified and is ready for implementation — executes tasks with atomic commits
Use when you want to auto-run all remaining Ship steps for a feature without manual step-by-step invocation
Use when a feature has been brainstormed and needs a detailed implementation plan with tasks
Use when a brainstormed feature needs architectural decisions — presents 2-3 approaches for user to choose before planning
Use when a plan has been created and needs independent verification against codebase patterns before building
Use when beginning new feature work, adding functionality, or fixing a bug — runs intensive brainstorming to capture requirements before planning
| name | ship:tdd |
| description | Use when implementing tasks that have test-based verify commands — provides RED-GREEN-REFACTOR cycle guidance |
| effort | medium |
| user-invocable | false |
When a task's <verify> command runs tests, follow this cycle.
<verify> runs a test command (node --test, npm test, pytest, cargo test, etc.)Skip TDD for: Config changes, file wiring, template creation, or tasks with non-test verify commands (e.g., grep, ls, type-check only).
Write one minimal test for the behavior described in the task. Run it. Confirm it fails because the feature is missing (not because of a typo or import error).
If the test passes immediately, you're testing existing behavior — fix the test.
Write the simplest code to make the test pass. No extras, no "while I'm here" improvements.
Run the verify command. All tests must pass.
Remove duplication, improve names. Keep tests green. Don't add behavior.
| Problem | Action |
|---|---|
| Don't know what to test | Write the assertion first — what should the output be? |
| Test too complicated | The interface is too complicated — simplify the design |
| Must mock everything | Code too coupled — note it as a deviation, implement anyway |