codex-cli
Skill1 starsChanged 6 months agoMITView on GitHub
Use when a code-factory skill or workflow drives OpenAI Codex — choosing a model and effort, scoping a session to the right checkout, or getting a cross-model adversarial review. Covers only the choices code-factory makes; the codex plugin owns the command surface.
23 other projects use a version of this.
Adopted by
Most recently taken up by
- kortix-ai/sunatheir own version, first seen Nov 28, 2026
- amirkiarafiei/subagent-cli-skillstheir own version, first seen Nov 15, 2026
- Awakehsh/awesome-agent-toolstheir own version, first seen Nov 8, 2026
- kortix-ai/CompanyOStheir own version, first seen Nov 8, 2026
- legibet/agent-skillstheir own version, first seen Nov 1, 2026
- samirpatil2000/skillstheir own version, first seen Nov 1, 2026
Used with
Projects with it also use opencode-cli, pi-cli and 8 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
julweberSkillopencode-cli
Expert control of opencode via the command line. Use when running opencode TUI, headless server, web UI, or the `run` non-interactive mode; managing sessions, providers, agents, MCP servers, models, stats, import/export, GitHub integration, debugging, database tools, upgrades, or shell completions.
Also in 6 projects that use this
mkSteadySkillpi-cli
统一项目分析 CLI 工具。支持 DAG 调度、LLM 批量任务、依赖图构建、测试分析/修复、文档生成、代码审计、Web Dashboard。与 project-index 功能完全一致,推荐作为统一入口。
Also in 3 projects that use this
yu-iskwSkillantigravity-cli
Executes coding, review, research, and automation tasks using Google Antigravity CLI (`agy`). Uses native fine-grained permission rules for interactive or headless execution.
Also in 4 projects that use this
julweberSkillclaude-cli
Expert control of the `claude` CLI (Claude Code). Use when running Claude Code interactively or non-interactively, managing sessions, configuring MCP servers, managing plugins, handling authentication, or piping prompts through claude for scripting.
Also in 3 projects that use this
forayconsultingSkillgemini-cli
Wield Google's Gemini CLI as a powerful auxiliary tool for code generation, review, analysis, and web research. Use when tasks benefit from a second AI perspective, current web information via Google Search, codebase architecture analysis, or parallel code generation. Also use when user explicitly requests Gemini operations.
Also in 3 projects that use this
mrgoonieSkillclaude-code
Also in 5 projects that use this
Other versions23 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 23
- kortix-ai/CompanyOS★ 21ksame name
- kortix-ai/suna★ 21ksame name
- wentorai/Research-Claw★ 858same name
- scarletkc/agents★ 227same name
- revfactory/skills★ 160same name
- sugarforever/01coder-agent-skills★ 139same name
- georgekhananaev/claude-skills-vault★ 32same name
- mr-ske1r/1c-ai-devstart★ 23same name
- samirpatil2000/skills★ 17same name
- amirkiarafiei/subagent-cli-skills★ 14same name
13 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository4 other files it gives its agents.
- audit-testsSkill
- babysit-prSkill
- execute-dynamic-workflowSkill
- writing-specsSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 1 is distinctive, and 3 are very specific to this project.
0
Common
Most of the 20 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Don't restate either here.
- Very specific: line 22
cwdis the checkout the session owns: Run the command from that directory. - Very specific: line 48
If the listed model is unavailable, use gpt-6.2-sol if available, then gpt-6.1-sol.
- Very specific: line 67
Call the companion script directly from a Bash step, from the owning checkout.
“Common” is measured: kept by at least 6 in 10 of the 20 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Codex CLI
Codex is driven through the codex Claude Code plugin — /codex:rescue to
delegate work, /codex:review and /codex:adversarial-review to review,
/codex:setup to check the install. The plugin's own skills document the
commands and flags; running the companion script bare
(node "${CLAUDE_PLUGIN_ROOT}/scripts/codex-companion.mjs") prints its usage.
Don't restate either here.
There is no mcp__codex__* tool surface. Don't ToolSearch for Codex tools, and
don't build relay subagents whose only job is to forward a prompt.
This skill covers the calls code-factory makes on top of that.
Session scope
cwdis the checkout the session owns. Run the command from that directory. In worktree fan-outs that's the task's worktree, never the orchestrator's repo root — a session in the wrong directory edits the wrong checkout and reports success.- One thread per task per checkout. Resume within a task (review-fix cycles, follow-ups to a reviewer about its own findings). Start fresh for a new task or a new checkout: the thread's context describes paths that no longer match.
- A reviewer never fixes its own findings. Reviews are review-only; findings go to a separate implementer session. Adversarial review needs a clean context per subject.
Model and effort
Verified against codex debug models on 2026-11-17.
| Job | Model | Effort |
| Mechanical edit, rename, config change | gpt-6.1-terra | low |
| Typical implementation task | gpt-6.2-sol | high |
| Subtle implementation, tricky fix | gpt-6.2-astra | high |
| Adversarial review, plan review, final sweep | gpt-6.2-astra | high |
Set the effort explicitly with --effort. Use xhigh, max, or ultra
only when the task explicitly calls for more reasoning.
If the listed model is unavailable, use gpt-6.2-sol if available, then
gpt-6.1-sol. Keep the effort listed for the job.
A bad model name fails instantly with a 400 ("not supported when using Codex with a ChatGPT account"); fix the name, nothing else is wrong.
Reviews
Cross-model review only counts when the author used a different model. Give the reviewer only the artifact and repo access — no drafting history, no author rationale.
Map Codex's output honestly: if it's ambiguous about whether an issue is real,
it's a finding; never infer a PASS Codex didn't state. When a caller needs
structure, report verdict PASS|ISSUES plus one entry per defect (severity,
file, summary, concrete failure scenario).
In workflow scripts
Call the companion script directly from a Bash step, from the owning
checkout. Keep a run log: the config used, the prompt verbatim, and Codex's
complete final response verbatim — not a summary. The thread id in the output
points into ~/.codex/sessions/ for the full transcript.
Map Codex's self-reported outcome honestly — "could not finish" is BLOCKED, not DONE. Treat its report as advisory and verify claims against the diff and tests.
Gotchas
| Symptom | Fix |
codex (CONNECTION_CLOSED) at session start | Remove the mcpServers.codex entry: claude mcp remove codex --scope user. The plugin needs no MCP server. |
| Codex reports edits it didn't make | task is read-only without --write |
| A turn consumed by a flag | --help after a subcommand is sent as a prompt; run the script bare for usage |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
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.

