Writes failing tests first for test-driven development and hands off a strict implementation contract that requires agents to make those tests pass without weakening the tests. Use when users ask for test-first workflows, RED/GREEN cycles, or behavior-gating tasks with automated tests.
Install with Tessl CLI
npx tessl i github:am-will/codex-skills --skill tdd-test-writer100
Does it follow best practices?
Validation for skill structure
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 when the user asks for:
tdd_test_writer for RED-phase test authoring whenever available.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]c810917
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.