codex
Skill46 starsChanged 9 months agoMITView on GitHub
Get code reviews, plan evaluations, and second opinions using OpenAI Codex CLI (GPT-5.5). Use for reviewing code changes, evaluating implementation plans, getting alternative perspectives, or validating approaches with another AI model.
79 other projects use a version of this.
Adopted by
Most recently taken up by
- NousResearch/hermes-agenttheir own version, first seen Nov 13, 2026
- garrytan/gstacktheir own version, first seen Oct 7, 2026
- dzhng/skillstheir own version, first seen Oct 4, 2026
- HanksChen0110/skillstheir own version, first seen Oct 3, 2026
- delorenj/skillstheir own version, first seen Oct 2, 2026
- dzhng/jevgreptheir own version, first seen Oct 2, 2026
Used with
Projects with it also use minecraft-modpack-server, pokemon-player 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.
braxtonROSE4Skillminecraft-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
braxtonROSE4Skillpokemon-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
kevinnftSkilltouchdesigner-mcp
Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.
Also in 7 projects that use this
john-data-chenSkillteams-meeting-pipeline
Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.
Also in 8 projects that use this
ayudaySkillsetup-deploy
Configure deployment settings for /land-and-deploy. Detects your deploy platform (Fly.io, Render, Vercel, Netlify, Heroku, GitHub Actions, custom), production URL, health check endpoints, and deploy status commands. Writes the configuration to CLAUDE.md so all future deploys are automatic. Use when: "setup deploy", "configure deployment", "set up land-and-deploy", "how do I deploy with gstack", "add deploy config".
Also in 9 projects that use this
bergsideSkillsketch
A friendly, hand-drawn sketch interface inspired by pencil illustrations on warm cream paper. Soft teal brand accents, hand-written display headings, rounded pill controls.
Also in 9 projects that use this
- +6 more from braxtonROSE4
Other versions79 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 79
- NousResearch/hermes-agent★ 267ksame name
- garrytan/gstack★ 143ksame name
- bergside/awesome-design-skills★ 3.1ksame name
- softaworks/agent-toolkit★ 2.5ksame name
- dzhng/jevgrep★ 2.3ksame name
- dzhng/skills★ 978same name
- bear2u/my-skills★ 931same name
- taracodlabs/aiden★ 846same name
- notque/vexjoy-agent★ 424same name
- glebis/claude-skills★ 387same name
69 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 repository23 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- brainstormingSkill
- catch-upSkill
- clean-survey-dataSkill
- datacheckSkill
- dataverse-syncSkill
- discuss-claimsSkill
- docSkill
- geminiSkill
- humanizerSkill
- marginaleffectsSkill
- marp-slideSkill
- napkinSkill
- pdfSkill
- playwrightSkill
- qualtrics-surveySkill
- screenshotSkill
- security-best-practicesSkill
- skill-creatorSkill
- stop-slopSkill
- survey-analysisSkill
- vizSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. 0 are common, 13 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 66 edited versions we read keep these.
13
Distinctive
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 8
Use OpenAI's Codex CLI to get code reviews, plan evaluations, and second opinions.
- Distinctive: line 35
Follow these when constructing Codex prompts.
- Distinctive: line 46
After presenting Codex findings, STOP: Do not make any code changes.
- Distinctive: line 54
Use AskUserQuestion to clarify:
- Distinctive: line 69
Use the prompt templates below to construct a structured prompt.
- Distinctive: line 83
After review completes, save output to markdown file:
- Distinctive: line 124
Use these XML-tagged templates as the prompt string passed to Codex.
- Distinctive: line 128
Use for evaluating implementation plans, architecture decisions, or multi-step proposals.
- Distinctive: line 160
Use for reviewing diffs, uncommitted changes, or specific files.
- Distinctive: line 191
Use for "should we use X or Y" or "evaluate this approach" questions.
- Distinctive: line 220
Use when something is broken and you want Codex to find the root cause.
- Very specific: line 252
Every command below appends < /dev/null.
- Very specific: line 371
When running outside a git repository, use --skip-git-repo-check:
- Distinctive: line 379
Use XML prompt templates: Always use the structured templates above instead of bare string instructions
- Distinctive: line 381
One task per run: Don't mix review + fix + docs in a single invocation
“Common” is measured: kept by at least 6 in 10 of the 66 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 Review & Second Opinion Skill
Use OpenAI's Codex CLI to get code reviews, plan evaluations, and second opinions. This provides an independent AI perspective using GPT-5.5 or o3 models.
When to Use This Skill
Trigger when user:
- Uses
/codexcommand explicitly - Asks for a "code review"
- Wants to "evaluate a plan" or "check my implementation plan"
- Wants a "second opinion" on code or approach
- Says "review this", "check this code", "validate this"
- Asks "what do you think about this implementation"
- Wants to "double check" code changes
- Requests "another perspective" on code
Prerequisites
Codex CLI must be installed and authenticated:
# Check installation
which codex
# Login if needed
codex loginPrompt Rules
Follow these when constructing Codex prompts. Better prompts beat higher reasoning effort.
- Use XML-tagged prompt blocks — give Codex a
<task>, an output contract, and grounding rules instead of bare string instructions. - Don't be vague — "take a look at this" produces vague output. State what you want evaluated and what shape the answer should take.
- Don't mix unrelated jobs — review in one run, fix in another, docs in a third. One clear task per Codex invocation.
- Don't ask for "more reasoning" — tighten the output contract or add a
<verification_loop>instead of saying "think harder." - Separate facts from inferences — always include
<grounding_rules>so Codex labels speculation explicitly. - Specify output shape — tell Codex exactly what sections to return. Structured output is easier to act on.
Guardrail
After presenting Codex findings, STOP. Do not make any code changes. Do not fix any issues. Ask the user which issues, if any, they want fixed before touching a single file. Auto-applying fixes from a review is strictly forbidden, even if the fix is obvious.
Workflow
Step 1: Determine What to Review
ALWAYS ask the user what they want reviewed:
Use AskUserQuestion to clarify:
- Scope: What should be reviewed?
- Uncommitted changes (staged/unstaged)
- Specific file(s)
- Changes against a branch
- A specific commit
- An implementation plan
- General approach/implementation question
- Model: Which model to use?
gpt-5.5- Fast, good quality (default)o3- Deep analysis, complex reasoning (slower)
Step 2: Build the Prompt
Use the prompt templates below to construct a structured prompt. Pick the closest template, fill in the specifics, and trim anything unnecessary.
Step 3: Execute
IMPORTANT: Always use --sandbox workspace-write (NOT --full-auto, which is deprecated and triggers a warning).
CRITICAL: Pass the prompt as a direct string argument, NOT via heredoc or command substitution. Using $(cat <<'EOF' ... EOF) or piping causes Codex to hang waiting for stdin. Always pass the prompt inline as a quoted string argument to the command.
CRITICAL: Always close stdin with < /dev/null. When Codex is launched by an agent harness (Claude Code Bash tool, especially in background mode), the parent's stdin remains attached. Codex then sits indefinitely waiting for stdin input — 0% CPU, 0 bytes of output, never finishes. Append < /dev/null to every codex exec and codex review invocation. Without this, expect 30+ minute hangs.
See Execution Modes and Prompt Templates below.
Step 4: Save Output
After review completes, save output to markdown file:
- Location: Same directory as reviewed code or current working directory
- Filename pattern:
codex_review_YYYYMMDD_HHMMSS.md codex execsaves directly with-o filename.md;codex reviewhas no-o, so redirect its stdout to a file (… < /dev/null > filename.md)
Execution Modes
Mode 1: Review Uncommitted Changes
codex review --uncommitted -c model="MODEL" < /dev/nullMode 2: Review Against Branch
codex review --base BRANCH -c model="MODEL" < /dev/nullMode 3: Review Specific Commit
codex review --commit SHA -c model="MODEL" < /dev/null
codex reviewflags differ fromcodex exec. It sets the model via-c model="…"(no-m), is read-only (no--sandbox), and has no-o(redirect stdout to save). The scope flags (--uncommitted/--base/--commit) are mutually exclusive with a custom prompt — to add review focus, drop the scope flag and pass instructions as a prompt:codex review -c model="MODEL" "Review the uncommitted changes, focusing on X" < /dev/null.
Mode 4: Second Opinion on Specific Files
codex exec --sandbox workspace-write -m MODEL "STRUCTURED_PROMPT" < /dev/nullMode 5: Evaluate Implementation Plan
codex exec --sandbox workspace-write -m MODEL "STRUCTURED_PROMPT" < /dev/nullMode 6: General Second Opinion
codex exec --sandbox workspace-write -m MODEL "STRUCTURED_PROMPT" < /dev/nullPrompt Templates
Use these XML-tagged templates as the prompt string passed to Codex. Copy the closest template, fill in specifics, and trim what you don't need.
Plan Evaluation
Use for evaluating implementation plans, architecture decisions, or multi-step proposals.
<task>
Evaluate this implementation plan against the codebase for feasibility, completeness, and risks.
Plan:
PLAN_CONTENT_HERE
</task>
<structured_output_contract>
Return:
1. feasibility issues (ordered by severity)
2. missing steps or edge cases
3. risks and tradeoffs
4. suggested improvements
5. open questions
</structured_output_contract>
<grounding_rules>
Ground every claim in the repository context or tool outputs.
If a point is an inference, label it clearly.
Do not invent problems that are not supported by the codebase.
</grounding_rules>
<verification_loop>
Before finalizing, verify that each concern is material and actionable, not speculative.
</verification_loop>Code Review
Use for reviewing diffs, uncommitted changes, or specific files.
<task>
Review this change for material correctness and regression risks.
Focus areas: FOCUS_AREAS_HERE
</task>
<structured_output_contract>
Return:
1. findings ordered by severity
2. supporting evidence for each finding
3. brief next steps
</structured_output_contract>
<grounding_rules>
Ground every claim in the repository context or tool outputs.
If a point is an inference, label it clearly.
</grounding_rules>
<dig_deeper_nudge>
Check for second-order failures, empty-state handling, retries, stale state, and rollback paths before finalizing.
</dig_deeper_nudge>
<verification_loop>
Before finalizing, verify that each finding is material and actionable.
</verification_loop>Architecture / Research Opinion
Use for "should we use X or Y" or "evaluate this approach" questions.
<task>
Research the available options and recommend the best path.
Context: CONTEXT_HERE
</task>
<structured_output_contract>
Return:
1. observed facts
2. reasoned recommendation
3. tradeoffs
4. open questions
</structured_output_contract>
<research_mode>
Separate observed facts, reasoned inferences, and open questions.
Prefer breadth first, then go deeper only where the evidence changes the recommendation.
</research_mode>
<citation_rules>
Back important claims with explicit references to the sources you inspected.
Prefer primary sources.
</citation_rules>Diagnosis
Use when something is broken and you want Codex to find the root cause.
<task>
Diagnose why the failing test or command is breaking in this repository.
Failure: FAILURE_DESCRIPTION_HERE
</task>
<compact_output_contract>
Return:
1. most likely root cause
2. evidence
3. smallest safe next step
</compact_output_contract>
<default_follow_through_policy>
Keep going until you have enough evidence to identify the root cause confidently.
Only stop to ask questions when a missing detail changes correctness materially.
</default_follow_through_policy>
<verification_loop>
Before finalizing, verify that the proposed root cause matches the observed evidence.
</verification_loop>
<missing_context_gating>
Do not guess missing repository facts.
If required context is absent, state exactly what remains unknown.
</missing_context_gating>Command Reference
Every command below appends < /dev/null. Do not omit it — see "Prompt Rules" above for why.
Code Review Commands
# Review uncommitted changes
codex review --uncommitted -c model="gpt-5.5" < /dev/null
# Review with a custom focus (prompt mode — no scope flag)
codex review -c model="gpt-5.5" "Review the uncommitted changes. <xml-tagged prompt>" < /dev/null
# Review against main branch
codex review --base main -c model="gpt-5.5" < /dev/null
# Review specific commit
codex review --commit abc123 -c model="gpt-5.5" < /dev/null
# Review with title context
codex review --uncommitted --title "Add user authentication" -c model="gpt-5.5" < /dev/nullPlan Evaluation & Second Opinion Commands
# Evaluate an implementation plan
codex exec --sandbox workspace-write -m gpt-5.5 "<plan evaluation prompt>" < /dev/null
# Get architecture opinion
codex exec --sandbox workspace-write -m o3 "<research opinion prompt>" < /dev/null
# Review specific files
codex exec --sandbox workspace-write -m gpt-5.5 -C /path/to/project "<code review prompt>" < /dev/nullOutput Capture
# Save output to file (preferred)
codex exec --sandbox workspace-write -m gpt-5.5 -o review_output.md "<prompt>" < /dev/null
# Or capture full output (codex review has no -o; redirect or tee)
codex review --uncommitted -c model="gpt-5.5" < /dev/null > review.md 2>&1Usage Examples
Example 1: Evaluate Implementation Plan
User: Evaluate my plan for adding auth
Claude asks: Which model? What specific concerns?
User: gpt-5.5, focus on security
Claude builds XML prompt with plan content, executes:
codex exec --sandbox workspace-write -m gpt-5.5 -o codex_review_20260111_140000.md "<plan eval prompt>" < /dev/null
Reports findings. STOPS. Asks user what to act on.Example 2: Review Before Commit
User: Review my changes before I commit
Claude asks: What model? Any focus areas?
User: gpt-5.5
Claude executes:
codex review --uncommitted -c model="gpt-5.5" < /dev/null > codex_review_20260111_140000.md
Reports findings. STOPS. Asks user what to fix.Example 3: Compare with Main
User: Review my feature branch against main
Claude executes:
codex review --base main -c model="gpt-5.5" < /dev/null > codex_review_feature.md
Reports findings. STOPS. Asks user what to act on.Available Models
| Model | Best For | Speed |
gpt-5.5 | General reviews, quick feedback | Fast |
o3 | Deep analysis, complex reasoning | Slower |
AskUserQuestion Template
When triggered, ask:
Question 1: "What would you like Codex to evaluate?"
Options:
- Uncommitted changes (git working tree)
- Changes against a branch
- Specific file(s)
- An implementation plan
- General question/second opinion
Question 2: "Which model should I use?"
Options:
- gpt-5.5 (faster, default)
- o3 (more thorough)Error Handling
| Error | Solution |
| Not logged in | Run codex login |
| Not in git repo | Use -C /path or --skip-git-repo-check |
| Model not available | Fall back to gpt-5.5 |
| Timeout | Try with smaller scope or faster model |
| Hangs / "Reading additional input from stdin" | Prompt was passed via heredoc or $(cat ...). Pass it as a direct inline string argument instead. |
| Hangs silently with 0% CPU, 0-byte output, no error | Stdin not closed. Append < /dev/null to the invocation. This is the most common hang when codex is launched by an agent harness in background mode. |
--full-auto is deprecated warning | Use --sandbox workspace-write instead (already updated in this skill). |
Non-Git Directories
When running outside a git repository, use --skip-git-repo-check:
codex exec --sandbox workspace-write --skip-git-repo-check -m gpt-5.5 "<prompt>" < /dev/nullTips
- Use XML prompt templates: Always use the structured templates above instead of bare string instructions
- Be specific: Fill in the template placeholders with concrete context
- One task per run: Don't mix review + fix + docs in a single invocation
- Review incrementally: Review smaller changes more frequently
- Always use
--sandbox workspace-write: Prevents interactive confirmation prompts (--full-autois deprecated) - Working directory: Codex needs to be run from the project directory
- Never use heredocs for prompts: Pass prompts as direct string arguments. Heredocs (
$(cat <<'EOF' ... EOF)) and command substitution cause Codex to hang waiting for stdin - Always close stdin with
< /dev/null: Without it, codex hangs indefinitely (0% CPU, 0-byte output) when launched by an agent harness, especially in background mode. This is the single most common cause of "codex is stuck"
Limitations
- Requires internet connection and OpenAI API access
- Rate limits may apply
- Large codebases may need scoped reviews
- Cannot review files outside git repository by default
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.

