codex
Skill0 starsChanged yesterdayMITView on GitHub
Get a second opinion from OpenAI Codex (the `codex` CLI): an independent code review of a diff, branch or commit, or a cross-model check of a plan, design, ADR, finding or bug theory. Use when the user asks for Codex, a second opinion, another model's view or a cross-model review. Local, interactive sessions only: never in an unattended or scheduled agent run.
- Reads credentials
140 other projects use a version of this.
Adopted by
Most recently taken up by
- uraniborg-ai/skillstheir own version, first seen Nov 16, 2026
- Ivan-propio/claude-skillstheir own version, first seen Nov 16, 2026
- dzhng/skillstheir own version, first seen Nov 15, 2026
- mjeffrey18/skillstheir own version, first seen Nov 15, 2026
- rodos4312/Meu-Agenttheir own version, first seen Nov 15, 2026
- muend/orchestration-skillstheir own version, first seen Nov 15, 2026
Used with
Projects with it also use ios-sync, implement-spec-with-codex and 10 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.
Saqlain-811Skillios-sync
Regenerate the iOS debug bridge against the latest upstream gstack templates. (gstack)
Also in 6 projects that use this
dzhngSkillimplement-spec-with-codex
Run [implement-spec](../implement-spec/SKILL.md) with Codex doing the implementation passes while you orchestrate, integrate, and review. Use when the user asks to implement a spec with Codex, or to run implement-spec with Codex as the implementer.
Also in 4 projects that use this
Saqlain-811Skillios-clean
Remove the DebugBridge SPM package and all #if DEBUG wiring from an iOS app. (gstack)
Also in 5 projects that use this
math-incSkillminecraft-modpack-server
Set up a modded Minecraft server from a CurseForge/Modrinth server pack zip. Covers NeoForge/Forge install, Java version, JVM tuning, firewall, LAN config, backups, and launch scripts.
Also in 5 projects that use this
math-incSkillpokemon-player
Play Pokemon games autonomously via headless emulation. Starts a game server, reads structured game state from RAM, makes strategic decisions, and sends button inputs — all from the terminal.
Also in 5 projects that use this
seek888Skillopen-gstack-browser
Launch GStack Browser — AI-controlled Chromium with the sidebar extension baked in. Opens a visible browser window where you can watch every action in real time. The sidebar shows a live activity feed and chat. Anti-bot stealth built in. Use when asked to "open gstack browser", "launch browser", "connect chrome", "open chrome", "real browser", "launch chrome", "side panel", or "control my browser". Voice triggers (speech-to-text aliases): "show me the browser".
Also in 9 projects that use this
- +1 more from Saqlain-811
- +1 more from math-inc
Other versions140 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 140
- NousResearch/hermes-agent★ 264ksame name
- garrytan/gstack★ 142ksame name
- dzhng/jevgrep★ 3.2ksame name
- ispc/ispc★ 3ksame name
- bergside/awesome-design-skills★ 2.9ksame name
- dataplat/dbatools★ 2.9ksame name
- Lilac-Labs/gini-agent★ 1.9ksame name
- Open-Curiosity/gini-agent★ 1.9ksame name
- clice-io/clice★ 1.7ksame name
- dzhng/skills★ 1.5ksame name
130 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 repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- antigravitySkill
- code-optimiserSkill
- design-thinking-ideationSkill
- doc-generatorSkill
- graph-of-thoughtSkill
- implementation-specSkill
- refactorerSkill
- requirements-elicitationSkill
- research-briefSkill
- trade-off-analysisSkill
- tree-of-thoughtSkill
- value-chain-analysisSkill
- vrio-analysisSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 2 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 116 edited versions we read keep these.
2
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
- Very specific: line 17
Run the git setup from the repo root, and codex itself only inside the clean worktree (Setup).
- Distinctive: line 25
Verify before relaying: Every Codex finding gets checked against the code before you present it or act on it.
- Very specific: line 85
Ask a follow-up in the same Codex session (it keeps its context).
- Very specific: line 94
Keep $TREE until the last follow-up, then check it and remove it (Setup).
- Distinctive: line 99
Check each finding against the code.
“Common” is measured: kept by at least 6 in 10 of the 116 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 second opinion
Codex is a different model family with its own blind spots, so it catches things Claude and the Claude subagents miss (and vice versa). Treat it like the other review agents in docs/process.md: a second pair of eyes, not an authority.
Local only. This skill uses the codex CLI on the user's machine, under their own ChatGPT login. If you are running unattended (a scheduled task, CI, a cloud agent), stop here and don't use this skill.
This skill is ad hoc: use it when asked, on uncommitted work, or on plans, ADRs and scope changes before any code exists. antigravity is the pre-PR gate (docs/process.md). If the repo has Codex's GitHub integration reviewing every PR, this adds Codex's view before the PR exists; if it doesn't, consider running this alongside antigravity on high-risk PRs.
Preconditions
codex --versionandcodex login status(expect "Logged in"). If either fails, tell the user and skip the Codex review; don't try to log in. It never blocks a PR.- Run the git setup from the repo root, and
codexitself only inside the clean worktree (Setup). Codex readsAGENTS.mdthere, so don't restate project context it can read; give it the task.
Hard rules
- Read-only, always. Every call passes
-c sandbox_mode='"read-only"'(theROvariable below). Without it,reviewandresumefall back to the user's default sandbox (oftenworkspace-write); neither takes-s. After each run, check the log'ssandbox:line saysread-only. Never useworkspace-write,danger-full-access,--approve-for-meor any--dangerously-*flag unless the user explicitly asks for Codex to edit, and then onlyworkspace-writeon a branch. - Run it in a clean worktree, never in the checkout. The read-only sandbox stops writes, not reads: Codex can read any file in its workspace, gitignored ones included, and whatever it reads goes to OpenAI. A checkout typically holds
.envfiles, local config with real identifiers, Terraform state and other private files. Agit worktreeofHEADhas only committed files (Setup). - It sends content to OpenAI under the user's account. Never point it at secrets,
.env*,*.tfstate*,*.tfvars, keys, cloud CLI output, raw production or CI logs, security-scanner findings, or anything holding account IDs, project numbers or service-account emails. Don't ask it to run cloud CLIs,gh, or anything that calls an external service. - Don't anchor it. For an independent opinion, don't put your own conclusion in the prompt. Ask the question; compare answers afterwards.
- Verify before relaying. Every Codex finding gets checked against the code before you present it or act on it.
Setup
Set these first; write output to the scratchpad with -o and keep the log separate (the log is noisy):
RO=(-c 'sandbox_mode="read-only"')
SP=<absolute scratchpad path> # absolute: the paths below are used from inside $TREE
OUT=$SP/codex-<slug>.md; LOG=$SP/codex-<slug>.log; DIFF=$SP/codex-<slug>.diff
TREE=$SP/codex-<slug>-tree
git worktree add --detach "$TREE" HEAD # committed files only: no ignored or private filesRun every codex call from inside $TREE, in a subshell so your own shell never sits in a directory that's later removed: (cd "$TREE" && codex ...). Committed branches and commits are visible there (the worktree shares the repo's history); uncommitted changes aren't, so they travel as a diff in the prompt (mode 2). Afterwards:
(cd "$TREE" && git status --porcelain --ignored) # must print nothing: no edits, no new files
git worktree remove --force "$TREE"Long reviews: run_in_background: true with a generous timeout (diff reviews take ~15 s for a small commit, minutes for a large branch).
Modes
1. Plain diff review (native reviewer)
(cd "$TREE" && codex exec review "${RO[@]}" --base main -o "$OUT" > "$LOG" 2>&1) # branch vs main
(cd "$TREE" && codex exec review "${RO[@]}" --commit <sha> -o "$OUT" > "$LOG" 2>&1) # one commitThese presets cannot take a custom prompt (--base/--commit conflict with [PROMPT]). For a focused review, or for uncommitted work, use mode 2. Don't use --uncommitted: it only works in the checkout, where Codex can read private files.
2. Focused review or second opinion (codex exec)
For uncommitted work, write the diff first (git diff HEAD > "$DIFF", plus git diff --no-index /dev/null <file> >> "$DIFF" || true for each untracked file) and check it for secrets and private identifiers (Hard rules). Pass the prompt on stdin, with the instructions from a quoted heredoc so nothing in them expands:
(cd "$TREE" && { cat <<'EOF'; [ ! -f "$DIFF" ] || cat "$DIFF"; } | codex exec "${RO[@]}" -o "$OUT" - > "$LOG" 2>&1)
<task: what to review or answer, and why>
<scope: the diff below, `git diff main...HEAD`, specific files, or a question>
<focus: e.g. auth, data leakage, IAM, CI permissions>
Do not modify any files.
Output: findings ranked most severe first, each with file:line, severity
(blocking / non-blocking / nit), confidence (high / medium / low) and a
one-line fix. Say "no findings" if there are none. No preamble.
EOFWith no $DIFF file (a plan, a question, or a committed branch Codex can read with git), only the instructions go in. Use a new slug for each review, or rm -f "$DIFF" first, so a diff left over from an earlier run isn't sent.
Good generic focus lines (add project-specific ones from the triggers in docs/process.md):
- Auth, IAM, permissions: "Is every role or permission the minimum, scoped to one resource? Is there any path that skips the auth check?"
- Anything published or logged: "Could anything private reach logs, public output or the repo (secrets, identifiers, request bodies, raw logs)?"
.github/workflows/: "Are job permissions minimal and third-party actions SHA-pinned? Could a PR from a fork run with elevated permissions or secrets?"- Plans, ADRs, scope changes: "What's the strongest argument against this decision? What would fail first in production?"
3. Follow-up
Ask a follow-up in the same Codex session (it keeps its context). Take the id from the session id: line of the first run's log; don't use --last, which can pick up one of the user's own Codex sessions:
(cd "$TREE" && codex exec resume "${RO[@]}" <session-id> -o "$OUT" - > "$LOG" 2>&1 <<'EOF'
<follow-up, e.g. "Finding 2: I think X because Y. Do you still hold it?">
EOF
)Keep $TREE until the last follow-up, then check it and remove it (Setup).
Handling the output
- Confirm
grep '^sandbox' "$LOG"saysread-only, and that the worktree check printed nothing before you removed it. Read$OUTin full; if it's empty or missing, check the tail of$LOGfor the error. - Check each finding against the code. Classify: confirmed, disputed (say why) or unverified.
- Report to the user with Codex named as the source. Lead with confirmed blocking findings, then non-blocking ones, then disputed ones in a line each. Don't dump the raw output unless asked.
- Where Claude and Codex disagree on something that matters, say so plainly and give your recommendation; optionally run mode 3 to put the counter-argument to Codex.
- Fold accepted findings in following
docs/process.md("When an agent or gate flags something"): blocking ones are fixed before push; non-blocking ones are fixed inline, or noted under "Known gaps" in the PR body and added todocs/tech-debt.md.
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.

