Individual skill
codex-test-driven-development
Use before feature, bugfix, or refactor implementation when behavior can be tested; enforces Red-Green-Refactor discipline.
skills/codex-test-driven-development/SKILL.md
Source commit 3b3b4c14636a65a9060cb5b0b5d7e94df9c04f0f
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- Yes
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Instructions only
- Last checked
- Nov 6, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 10
- Repository last updated
- Oct 23, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- codex Repository topic
- codex-skills Repository topic
- codex-script Repository topic
- engineering Derived category
- testing Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 10,748 bytesSKILL.mdcore · 10,748 bytesSKILL.mdcore · 10,748 bytesSKILL.mdcore · 10,748 bytesSKILL.mdcore · 10,748 bytesSKILL.mdcore · 10,748 bytesSKILL.mdcore · 10,748 bytesSKILL.mdcore · 10,748 bytesSKILL.mdcore · 10,748 bytesSKILL.mdcore · 10,748 bytesSKILL.mdcore · 10,748 bytesSKILL.mdcore · 10,748 bytesSKILL.mdcore · 10,748 bytesagents/openai.yamlasset · 293 bytesreferences/testing-anti-patterns.mddoc · 6,060 bytes
Read excerpt
## TL;DR
Write test first → watch it fail → write minimal code to pass → watch it pass → refactor. Delete code written before tests. No exceptions. Integrate with `$gate` for automated verification. Use `$tdd` or `$red-green` to activate.
# Test-Driven Development (TDD)
## Activation
1. Activate on `$codex-test-driven-development`, `$tdd`, or `$red-green`.
2. Activate when implementing any feature or bugfix, before writing implementation code.
3. Activate when `codex-workflow-autopilot` routes to `build` or `fix` workflow.
4. Activate when `codex-intent-context-analyzer` detects implementation intent.
5. Always active as a behavioral constraint during implementation phases.
## The Iron Law