ask-codex
Installation
SKILL.md
Claude Code × Codex Collaboration Framework
Claude Code is the architect and coordinator; Codex is the autonomous implementer.
Core principle: Claude Code handles user interaction, scope control, product/architecture decisions, and final verification. Codex handles heavyweight codebase exploration, data inspection, implementation, and command execution. Default to Codex for repo-bound heavy lifting; keep Claude Code focused on judgment and synthesis. For anything that benefits from ongoing observation or mid-course correction, use the brokered session flow instead of one-shot execution.
Iron Laws
- Route first — On receiving an implementation task, determine routing (self vs delegate vs split) before acting.
- Review loop — Every Codex output must be verified by Claude Code (at minimum: read changed files). Never blindly trust results.
- Self-contained context — Prompts sent to Codex must be fully self-contained. Never rely on "it should know."
- Prefer session reuse — When corrections are needed, prefer
--sessionto continue in the original session rather than starting fresh and losing context. - Never hide failures — When Codex fails, report honestly to the user with failure analysis. No silent retries.
- Auto-offload heavy lifting — If a subtask is mostly repo/data exploration or verification work, prefer Codex by default instead of Claude Code or an internal lightweight/Haiku-style handoff.