ask-codex
Skill6 starsChanged 4 months agoApache-2.0View on GitHub
Use when a Claude Code agent needs to delegate a question, subtask, or review to a local Codex instance.
- Installs packages
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
- madeordinary/serel-memorytheir 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
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
- WebisityStudio/claude-codex-mcp-bridge★ 2same name
- madeordinary/serel-memory★ 1same 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 repository116 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- skills/graphify/references/CLAUDE.mdCLAUDE.md
- agent-config-security-auditSkill
- agent-harness-designSkill
- agent-readable-docsSkill
- agent-runtime-patternsSkill
- agent-session-forensicsSkill
- ai-regression-testingSkill
- ai-slop-cleanerSkill
- api-doc-reviewSkill
- architecture-decision-recordsSkill
- architecture-simplificationSkill
- ask-claudeSkill
- ask-geminiSkill
- autonomous-delivery-pipelineSkill
- baseline-comparison-reviewSkill
- bigquery-cost-auditSkill
- brainstormingSkill
- browser-automation-safetySkill
- bug-huntSkill
- build-fix-minimal-diffSkill
- canonical-advisor-routingSkill
- change-impact-checkSkill
- changelog-generatorSkill
- ci-failure-readoutSkill
- codebase-migration-batchesSkill
- context-compressionSkill
- context-docsSkill
- context-minimizationSkill
- context-retrieval-loopSkill
- data-qualitySkill
- dataset-split-reviewSkill
- dbt-incremental-strategy-auditSkill
- dbt-preflightSkill
- dbt-strategySkill
- dead-code-removalSkill
- defuddleSkill
- dependency-cleanupSkill
- deploy-pipeline-runbookSkill
- dispatching-parallel-agentsSkill
- doc-consistency-checkSkill
- environment-doctorSkill
- experiment-tracking-reviewSkill
- failure-triageSkill
- filesystem-mcp-guardrailsSkill
- finishing-a-development-branchSkill
- flaky-test-investigationSkill
- gh-address-commentsSkill
- github-ci-failure-triageSkill
- graphifySkill
- handoff-disciplineSkill
- hard-won-skill-extractorSkill
- hook-safety-reviewSkill
- incident-readoutSkill
- incremental-migrationSkill
- json-canvasSkill
- local-rag-mcpSkill
- log-driven-diagnosisSkill
- managed-codebase-contextSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 4 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Use the local Codex CLI as an external worker or advisor from inside a Claude Code session.
- Very specific: line 17
Do not use when codex CLI is missing or unauthenticated.
- Distinctive: line 18
Do not use for tasks that require interactive back-and-forth — Codex output is captured once.
- Very specific: line 29
If codex is missing, stop and ask the user to install it.
- Very specific: line 49
If this fails, stop. Do not proceed without codex in PATH.
- Distinctive: line 53
Keep it narrow. Codex works best with:
- Very specific: line 113
Missing CLI: stop, ask user to install codex, do not improvise.
- Distinctive: line 123
Prefer the flat APX command after reading this skill:
“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
Purpose
Use the local Codex CLI as an external worker or advisor from inside a Claude Code session. Hand off a focused task, collect the output, and save a reviewable Markdown artifact before acting on the result.
When to Use
- Need a Codex second opinion on a design decision or code change.
- Want to delegate a self-contained subtask to Codex and inspect the result.
- Exploring a problem from a different model's perspective.
- Do not use when
codexCLI is missing or unauthenticated. - Do not use for tasks that require interactive back-and-forth — Codex output is captured once.
Requirements
codexCLI available in PATH and authenticated.- Verify with:
codex --versionIf codex is missing, stop and ask the user to install it. Installation reference:
npm install -g @openai/codexInputs
- A specific, scoped prompt or task description.
- Optional: file paths or code snippets to include inline in the prompt.
- Optional: artifact output directory (defaults to
.apx/artifacts/).
Workflow
1. Check the CLI is available
codex --versionIf this fails, stop. Do not proceed without codex in PATH.
2. Compose a focused prompt
Keep it narrow. Codex works best with:
- A single question or task.
- Concrete context (file names, function names, error messages).
- A defined output shape ("respond with a patch", "list edge cases", "answer yes/no and explain").
Example prompt:
Review this TypeScript function for correctness. Return a bullet list of issues found.
<paste function here>3. Run Codex and capture output
codex "Review this TypeScript function for correctness. Return a bullet list of issues found.\n\n$(cat src/cli/commands/validate.ts)"Redirect output to an artifact file:
codex "Your prompt here" > .apx/artifacts/codex-review-$(date -u +%Y%m%dT%H%M%SZ).mdOn Windows (PowerShell):
codex "Your prompt here" | Out-File .apx/artifacts/codex-review-$(Get-Date -Format 'yyyyMMddTHHmmssZ').md4. Read and evaluate the artifact
Open the artifact before acting on any recommendation. Codex output is a suggestion, not a directive. Apply judgment before implementing.
5. Report
In the response to the user, include:
- The prompt sent to Codex.
- The artifact path.
- A summary of relevant findings.
- Any recommendation you are or are not acting on, with rationale.
Output
Artifact path convention:
.apx/artifacts/codex-<slug>-<timestamp>.mdArtifact should contain:
- The original task or question.
- The exact prompt sent to Codex.
- Raw Codex output.
- Your concise summary.
- Action items or explicit "no action" decision.
Failure Modes
- Missing CLI: stop, ask user to install
codex, do not improvise. - Empty output: report it; do not fabricate a result.
- Off-topic output: note it in the artifact, do not use it.
- Auth failure: report the stderr; check
codex --versionand reauthenticate. - Prompt too broad: narrow the scope before retrying.
apx Integration
apx check ask-codex verifies whether codex is present in PATH.
Prefer the flat APX command after reading this skill:
apx ask-codex "Review this function for edge cases"
apx ask-codex "Return OK only" --jsonNested APX form remains supported:
apx ask codex "Review this function for edge cases"APX passes the prompt as a positional argument (codex "prompt", not codex -p "prompt"). This matches the Codex CLI's invocation convention. Verify the output mode with codex --help if the captured stdout is empty — some Codex versions open a TUI by default and may require a flag such as --full-auto or -q for non-interactive output. If that applies, invoke codex directly per the workflow above and redirect output manually.
Verification
apx check ask-codex
apx ask-codex "Return OK only" --jsonConfirm JSON includes provider, artifactPath, promptLength, and raw output in stdout. Open the artifact before applying advice.
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.

