ask-codex
Skill1 starsChanged 16 days agoMITView on GitHub
Ask Codex CLI for an independent second opinion while working in Claude Code. Use when the user wants Codex to review a plan, architecture decision, PRD interpretation, implementation approach, or risk assessment. Supports optional bounded loop mode when explicitly requested.
10 other projects use a version of this.
Adopted by
Most recently taken up by
- maxatwork/skillstheir own version, first seen Nov 8, 2026
- finalize/skillstheir own version, first seen Nov 1, 2026
- PolyArch/humanizetheir own version, first seen Oct 8, 2026
- BackToCimaCoppi/Praxistheir own version, first seen Sep 23, 2026
- Yumeno/add_codexclitheir own version, first seen Sep 19, 2026
- Sateezg/codex-bridgetheir own version, first seen Aug 9, 2026
Other versions10 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 10
- PolyArch/humanize★ 1.5ksame name
- Sateezg/codex-bridge★ 248same name
- bookSiYi1412/ask-codex★ 9same name
- s977043/river-review★ 7same name
- BackToCimaCoppi/Praxis★ 6same name
- yeaight7/agent-powerups★ 6same name
- WebisityStudio/claude-codex-mcp-bridge★ 2same name
- finalize/skills★ 0same name
- maxatwork/skills★ 0same name
- Yumeno/add_codexcli★ 0same name
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 repository36 other files it gives its agents.
- AGENTS.mdAGENTS.md
- analyzeSkill
- ask-claudeSkill
- breakdownSkill
- decision-logSkill
- discoverSkill
- from-prdSkill
- handoffSkill
- init-memorySkill
- retroSkill
- reviewSkill
- risk-reviewSkill
- runbookSkill
- security-checkSkill
- shipSkill
- startSkill
- sync-upstreamSkill
- update-memorySkill
- weekly-updateSkill
- analyzeSkill
- breakdownSkill
- decision-logSkill
- discoverSkill
- from-prdSkill
- handoffSkill
- init-memorySkill
- retroSkill
- reviewSkill
- risk-reviewSkill
- runbookSkill
- security-checkSkill
- shipSkill
- startSkill
- sync-upstreamSkill
- update-memorySkill
- weekly-updateSkill
The file
We split this skill into the rules it gives an agent
11 rules. 0 are common, 8 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
8
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 8
Use this when the user wants an independent Codex review of a plan, architecture decision, implementation approach, PRD interpretation, or …
- Distinctive: line 16
Do not pass secrets, credentials, private production data, or sensitive customer data into the prompt.
- Very specific: line 17
Follow docs/cross-agent-review.md when present.
- Distinctive: line 50
Verify Codex CLI is available when practical:
- Very specific: line 56
Run Codex in read-only mode.
- Distinctive: line 75
Stop and wait for the user.
- Distinctive: line 79
Use loop mode only when the user explicitly asks for a loop, debate, back-and-forth, or "have Claude and Codex work it out."
- Distinctive: line 86
No file edits during the loop.
- Distinctive: line 88
Stop early when the remaining disagreement is a product judgment, user preference, or low-impact implementation detail.
- Distinctive: line 89
Never ask Codex to call Claude back.
- Very specific: line 111
If codex is missing, not authenticated, or blocked, say so and perform a local critique instead.
“Common” is measured: kept by at least 6 in 10 of the 7 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
/ask-codex
Use this when the user wants an independent Codex review of a plan, architecture decision, implementation approach, PRD interpretation, or risk assessment while working in Claude Code.
This workflow shells out to the Codex CLI. It does not require MCP.
Preconditions
codexshould be installed and authenticated. If it isn't, don't block — use the Fallback at the end.- The user must approve any shell execution required by their environment.
- Do not pass secrets, credentials, private production data, or sensitive customer data into the prompt.
- Follow
docs/cross-agent-review.mdwhen present.
Default: Single-Pass Review
- Identify the artifact to review:
- A plan from the current conversation
- A file path
- A diff
- A proposed architecture or decision
Build a concise prompt for Codex:
You are an independent engineering reviewer. Do not edit files. Do not run write operations. Review the plan/artifact below for: - incorrect assumptions - missing risks - simpler alternatives - validation gaps - questions the primary agent should ask the user Return: AGREEMENTS: DISAGREEMENTS: RISKS: SUGGESTED CHANGES: QUESTIONS: VERDICT: APPROVE | REVISE | RETHINK <plan/artifact/context>Verify Codex CLI is available when practical:
codex --versionRun Codex in read-only mode. Long prompts passed inline as an argument can hang
codex exec— always write the prompt to a temp file and pipe it, in a single shell invocation (shell state doesn't survive across tool calls):PROMPT_FILE="$(mktemp)" cat > "$PROMPT_FILE" <<'EOF' ...the full prompt... EOF codex exec --cd "$PWD" --sandbox read-only - < "$PROMPT_FILE" rm -f "$PROMPT_FILE"- Summarize Codex's response for the user:
- Verdict (APPROVE / REVISE / RETHINK)
- Agreements
- Gaps or disagreements
- Plan changes worth adopting
- Questions to ask before proceeding
- Stop and wait for the user.
Advanced: Bounded Loop
Use loop mode only when the user explicitly asks for a loop, debate, back-and-forth, or "have Claude and Codex work it out."
Rules:
- Maximum 2 rounds by default.
- Maximum 3 rounds if the user explicitly asks, or without asking when a HIGH security, auth, data-loss or concurrency finding is still open with evidence after round 2; say so in the synthesis. Never more than 3.
- A timeout, an error, or no reply from Codex is not approval, and neither is reaching the cap.
- No file edits during the loop.
- Each round must get shorter and more specific.
- Stop early when the remaining disagreement is a product judgment, user preference, or low-impact implementation detail.
- Never ask Codex to call Claude back. The current Claude session owns the loop.
Loop structure:
- Round 1: Ask Codex for broad critique.
- Claude summarizes what it accepts, rejects, and wants challenged, as a findings ledger: a stable id per finding (F1, F2, …) with its outcome — fixed, disputed with evidence, or declined as a follow-up ("Findings ledger" in
docs/cross-agent-review.md). - Round 2: Ask Codex only about unresolved disagreements or high-risk gaps. Send the ledger plus only the changed parts, and ask Codex to mark each id resolved or still open.
Produce final synthesis:
FINAL SYNTHESIS: - What both agents agree on - What changed in the plan - Remaining disagreements - User decisions needed - Recommended next step
Then stop and wait.
Fallback
If codex is missing, not authenticated, or blocked, say so and perform a local critique instead. Do not pretend Codex reviewed it.
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.

