codex-cto
Skill41 starsChanged 7 months agoMITView on GitHub
Inverted orchestration—Codex CLI acts as CTO (planning and reviewing), Claude Code executes with native tools. Use when a task benefits from external architectural oversight before and after implementation.
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 4 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 23
Run the plan phase with the user's objective:
- Very specific: line 40
Read the description and acceptance_criteria
- Distinctive: line 42
Verify each acceptance criterion before moving to the next task
- Distinctive: line 45
Do not deviate from the plan without reason.
- Distinctive: line 49
After executing all tasks, run the review phase.
- Very specific: line 63
Read each task_reviews entry with status fail or partial
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Codex CTO — Inverted Orchestration
Codex plans and reviews. Claude Code executes. This inverts the codex-orchestrator pattern: instead of Claude Code delegating to Codex subagents, Codex directs Claude Code as the engineering team.
Protocol
1. CTO plans → cto-invoke.sh plan "<objective>"
2. You execute → native tools (Read, Edit, Write, Bash, Glob, Grep)
3. CTO reviews → cto-invoke.sh review "<objective + results>"
4. Loop → if "revise", fix and re-submit for review (max 5 iterations)Step 1: Get the Plan
Run the plan phase with the user's objective:
~/.claude/skills/codex-cto/scripts/cto-invoke.sh plan "<OBJECTIVE>" [--model MODEL]Parse the returned JSON. It contains:
objective— what to accomplishanalysis— CTO's assessment of the codebasestrategy— high-level approachtasks[]— ordered task list with IDs, actions, targets, descriptions, acceptance criteria, and dependenciesverification— commands to run after all tasks complete
Step 2: Execute Tasks
Work through each task in dependency order using native tools. For each task:
- Read the
descriptionandacceptance_criteria - Execute the action (
create_file,modify_file,delete_file,run_command,verify) - Verify each acceptance criterion before moving to the next task
- Track what was done and what the outcome was
Do not deviate from the plan without reason. If a task is blocked or the plan has an error, note it and continue with unblocked tasks. Report blockers in the review submission.
Step 3: Submit for Review
After executing all tasks, run the review phase. Include the original objective and a summary of what was done:
~/.claude/skills/codex-cto/scripts/cto-invoke.sh review "<OBJECTIVE>. Results: <summary of what was done, any issues encountered>"Parse the returned JSON:
verdict: "approve"— done. Report success to the user.verdict: "revise"— checktask_reviewsfor feedback andrevised_tasksfor new/updated tasks. Fix issues and re-submit.verdict: "abort"— fundamental problem. Report the CTO'sreasonto the user and stop.
Step 4: Iterate (if revise)
On a "revise" verdict:
- Read each
task_reviewsentry with statusfailorpartial - Execute the fixes described in
feedbackand anyrevised_tasks - Re-submit for review (step 3)
- Maximum 5 review iterations. If the CTO issues 3 consecutive "revise" verdicts, escalate to the user.
Model Selection
The --model flag passes through to codex exec. Available models:
| Model | ID | Notes |
| GPT-5.4 Pro | gpt-5.4-pro | Default for plan phase. Deepest reasoning for architectural decomposition. |
| GPT-5.4 | gpt-5.4 | Default for review phase. Unified coding + reasoning flagship. |
| GPT-5 Mini | gpt-5-mini | Cost-optimized, fast iteration. |
| GPT-5.3-Codex | gpt-5.3-codex | Previous generation. Still functional. |
Omit --model to use the default from ~/.codex/config.toml.
Options
| Option | Description |
--model <id> | Override model (default: config default) |
--dry-run | Print command without executing |
Artifacts
Plan and review JSON files are saved to .codex-cto/<PID>/ in the working directory. Each invocation creates sequentially numbered files (plan-001.json, review-001.json, etc.). PID namespacing prevents conflicts between concurrent sessions.
Diagnostics
Reuse codex-orchestrator's status script for CLI diagnostics:
~/.claude/skills/codex-orchestrator/scripts/codex-status.shExamples
# Simple feature
/codex-cto Add a health check endpoint at /health returning {status: "ok"}
# With model override
/codex-cto Refactor the auth module to use JWT --model gpt-5-mini
# Dry run to inspect the command
~/.claude/skills/codex-cto/scripts/cto-invoke.sh plan "Add rate limiting" --dry-runSister Skill
This skill is the inverse of codex-orchestrator. Use codex-orchestrator when Claude Code should delegate one-shot specialist tasks to Codex. Use codex-cto when Codex should direct Claude Code through a plan-execute-review loop.
In this repository99 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- agents-md-managerSkill
- architecture-md-builderSkill
- autoresearchSkill
- claude-agent-sdkSkill
- claude-md-managerSkill
- claude-usageSkill
- dag-typesafeSkill
- fableSkill
- glossarySkill
- openrouter-usageSkill
- react-best-practicesSkill
- skill-optimizerSkill
- stop-slopSkill
- tamarruSkill
- test-harness-auditorSkill
- user-model-builderSkill
- atmosphere-shaderSkill
- component-gallerySkill
- conductor-motionSkill
- design-auditSkill
- design-critiqueSkill
- design-mdSkill
- design-polishSkill
- gemini-claude-resonanceSkill
- gemini-forgeSkill
- gpt-atelierSkill
- grainientSkill
- image-forgeSkill
- image-wellSkill
- meshySkill
- mindnode-uiSkill
- minoan-frontend-designSkill
- nano-banana-proSkill
- overwatch-slidedeckSkill
- paper-designSkill
- particle-swarm-simSkill
- pellicolaSkill
- photo-to-slack-emojiSkill
- pretextSkill
- recordlySkill
- rocaille-shaderSkill
- scroll-cinemaSkill
- shadcnSkill
- shapeSkill
- smolvlmSkill
- speak-responseSkill
- sprite-forgeSkill
- threejs-particle-canvasSkill
- vellum-editorialSkill
- webgpu-threejs-tslSkill
- agent-browserSkill
- beautiful-mermaidSkill
- classical-887Skill
- claude-peersSkill
- cloudflareSkill
- codex-orchestratorSkill
- disc-forgeSkill
- figma-mcpSkill
- linkedin-exportSkill
- The first 60 shown.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

