mzored/superpowers-cc-to-codex/test-driven-development-codex
- community
Checking that the SKILL.md file is still in the repository.
Enforce strict test-driven development via Codex-backed implementation. Use only when the user explicitly asks for the Codex-backed TDD workflow.
Install
npx vskill@latest install mzored/superpowers-cc-to-codex/test-driven-development-codexSKILL.md
Test-Driven Development
Keep Claude in the main thread for user interaction and task acceptance. Call the codex_implement MCP tool with promptTemplate: "tdd" for TDD-disciplined implementation. Use codex_resume for fix loops if TDD discipline is violated. Reference testing-anti-patterns.md when reviewing Codex output for testing quality.
<HARD-GATE> You MUST call codex_implement with promptTemplate: "tdd" (Step 2). You cannot implement with TDD yourself. Codex enforces red-green-refactor discipline. No MCP call = cannot proceed. </HARD-GATE>
Overview
Tests written after code prove nothing — passing tests don't confirm they test the right thing.
Core principle: NO PRODUCTION CODE WITHOUT A FAILING TEST FIRST.
Announce at start: "I'm using the test-driven-development skill to implement this with strict red-green-refactor discipline."
The Iron Law
If Codex returns implementation without red-green evidence, reject it and resume with TDD enforcement.
When to Use
- Any implementation task where test coverage is critical
- New features, bug fixes, refactors where behavior must be verified
- When the user explicitly requests TDD methodology
Workflow
Step 1: Verify Task Readiness
- [ ] Task has clear acceptance criteria
- [ ] Test framework is identified (check existing test files)
- [ ] Codex CLI is available
If acceptance criteria are unclear, ask the user before dispatching.
Step 2: Call codex_implement with TDD Prompt Template
Call the codex_implement MCP tool with promptTemplate: "tdd":
The tdd prompt template routes through skills/test-driven-development-codex/prompts/tdd-implement-task.md.
Step 3: Verify TDD Evidence in Results
When Codex returns, check:
- [ ]
testsarray is non-empty - [ ] Tests were written before implementation (red-green-refactor order)
- [ ] Each test has a clear, descriptive name covering one behavior
- [ ] No testing anti-patterns (see
testing-anti-patterns.md)
Step 4: Handle Status
| Status | Action | |
|---|---|---|
DONE | Verify tests pass, accept implementation | |
DONE_WITH_CONCERNS | Review concerns, check if TDD was followed despite issues | |
BLOCKED | Surface blocker to user, do not attempt workarounds | |
NEEDS_CONTEXT | Answer Codex's questions, resume with fix prompt |
Step 5: Resume if TDD Violated
If the tests array is empty or implementation lacks red-green evidence, call codex_resume with promptTemplate: "tdd":
Red Flags
Never:
- Accept implementation without corresponding tests
- Skip the red-green-refactor cycle "just this once"
- Allow mocks to replace real behavior verification
- Let Codex write tests after implementation
Always:
- Verify test failure evidence before accepting
- Check for anti-patterns from
testing-anti-patterns.md - Ensure minimal implementation matching test requirements
- Run the full test suite after accepting
Integration
Can be used standalone or as a methodology enforcer within subagent-driven-development by swapping the prompt file from implement-task.md to tdd-implement-task.md.
Pairs with:
subagent-driven-development— TDD prompt can replace the standard implement promptrequesting-code-review— Review should verify TDD discipline was followed
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/test-driven-development-codex/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/mzored/superpowers-cc-to-codex/test-driven-development-codex)