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 | tdd |
| description | Use when implementing tasks that have test-based verify commands — provides RED-GREEN-REFACTOR cycle guidance |
| effort | medium |
| user-invocable | false |
| disable-model-invocation | true |
!for f in .planning/features/*/CONTEXT.md; do [ -f "$f" ] && d=$(dirname "$f") && echo "$(basename "$d"): $(sed -n 's/^status: *//p' "$f")"; done 2>/dev/null; true
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 |