ワンクリックで
test-driven-development
Use when implementing any feature, bugfix, behavior change, or refactor before writing production code.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Use when implementing any feature, bugfix, behavior change, or refactor before writing production code.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Use when preparing local changes, a branch, pull request, merge request, or merge-to-main for final review before publishing, opening a PR, merging, or claiming readiness.
Use when the user asks to shape fuzzy planning, product/design/engineering tradeoffs, scope/spec/ticket plans, or says "challenge this/help me think"; delegate to an advisor subagent. Good for rough ideas, second opinions, load-bearing decisions, or scope cuts. Skip scoped implementation, narrow bugs, reviews, and "just build" requests.
Use when setting up a project-local eval harness for prompts, agents, judges, RAG, tools, or other LLM behavior, especially when the default should be free/OSS promptfoo with repo-owned artifacts.
Use when a pull request or merge request needs to be driven to merge — watching CI, responding to review feedback, and merging once green and approved, across GitHub, Forgejo, or GitLab.
Use when the user wants repository task tracking, shared agent task state, cross-worktree coordination, tiber setup/install/scaffold guidance, or task create/list/show/prioritize/validate/close workflows. Plugin install and session start are non-mutating; setup integration starts with dry-run previews.
Use when the user asks to add, capture, file, or record a new repository task or backlog ticket through Tiber from chat.
| name | test-driven-development |
| description | Use when implementing any feature, bugfix, behavior change, or refactor before writing production code. |
Write the test first. Watch it fail for the intended behavioral reason. Write the smallest implementation that makes it pass. Refactor only while green.
Gherkin or acceptance specs may define a coherent scenario set up front. Even then, implementation proceeds one step or scenario at a time.
Treat each completed behavior as a preservable implementation increment. Before starting the next RED test:
Long-running integration, mutation, exhaustive, full-suite, and similarly expensive checks belong in CI unless a local run is directly required to diagnose a failure. Do not make every local increment wait for them.
Full review is the ticket-completion gate after the actual acceptance criteria are implemented; it is not a prerequisite for preserving each green increment. When full review requires a code or guidance edit, first confirm the latest pushed build is running or green, make the edit test-first, then repeat fast unit tests, lightweight review, commit and push, and the CI check. Resume full review through one diff-bound delta risk assessment rather than restarting unaffected lenses.
After each implementation step, run one fresh-context review subagent before
moving to the next RED test or scenario. This is a compact version of
final-review:
For review-only or no-subagent environments, state that the lightweight review cannot be completed to this standard instead of silently skipping it.
| Signal | Action |
|---|---|
| Production code exists without a prior RED test | Revert or discard it, then restart from the test |
| Test passes immediately | Replace it with a test for missing behavior |
| Test checks internals or mocks instead of behavior | Rewrite against the public surface |
| Several cases are bundled into one test | Split them unless this is the acceptance scenario table |
| You want to "add tests after" | Stop; that is not TDD |
| Lightweight review is skipped after GREEN | Run it before starting the next RED cycle |
Before moving on, be able to point to the RED output, the GREEN output, and the small implementation step that connects them. Before starting the next cycle, also point to the clean lightweight review or the defended finding accepted by a follow-up review, the pushed commit, and a latest pushed build that is running or green.