tdd-test-writer
Use when a behavior-changing task needs failing tests first, RED/GREEN handoff, or automated behavior gates before implementation.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Use when a behavior-changing task needs failing tests first, RED/GREEN handoff, or automated behavior gates before implementation.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Use when any oasis7 user request starts and must bind the canonical worktree, GitHub-backed task truth, and owner before routing.
Use when a branch is about to create a PR and needs fresh involved-role review.
Use when implementation is verified and the branch must proceed through review, PR, merge, and cleanup.
Use when a task has written repo truth and implementation should proceed step by step with evidence.
Use when about to claim a task is complete, tests passed, a branch is ready for PR, or a PR is ready to merge. Requires fresh verification, direct output inspection, and use of `./scripts/pm/claim-ready.sh` when the claim can be mapped to one verification command.
Use when a bound oasis7 task needs the next repo-owned workflow phase selected.
| name | tdd-test-writer |
| description | Use when a behavior-changing task needs failing tests first, RED/GREEN handoff, or automated behavior gates before implementation. |
Use this skill when:
Do not use this skill when:
Use this skill to complete the RED phase of TDD: define behavior with tests first, verify they fail for the right reason, then hand off implementation with objective pass criteria.
Use this skill by default only when all of the following are true:
Do not treat this skill as a universal gate for:
When you skip RED phase in oasis7, record the skip reason in project.md, handoff, or GitHub task issue evidence comments.
Use this skill when the user asks for:
Also use it in oasis7 when a behavior-changing implementation task already has a stable automated harness and the repo workflow needs a behavior-first guard before production edits.
tdd_test_writer for RED-phase test authoring whenever available.test_tier_required/full; it does not replace them.ASSUMPTION: lines in output.tdd_test_writertdd_test_writer subagent with task scope, target files, and acceptance criteria.tdd_test_writer is unavailable, continue directly and note FALLBACK: tdd_test_writer unavailable.vitest, jest, pytest, go test, cargo test).Return a block that implementation agents must follow. The handoff must include:
tdd_test_writer) or explicit fallback reasonTDD RED PHASE COMPLETE
## Authoring Mode
- Subagent: tdd_test_writer
- Fallback: [only if subagent unavailable]
## Test Files
- [path]
## Verification
- Command: [exact command]
- Result: FAIL (expected)
- Failure reason: [1-2 lines tied to missing behavior]
## Implementation Contract (for next agent)
1. Do not modify these tests: [paths]
2. Implement production changes only in: [paths or modules]
3. Completion gate: [exact command] passes with no test weakening.
4. Run broader safety check: [secondary command]
5. Return evidence: changed files + command output summary.
## Assumptions
- ASSUMPTION: [only if needed]