codex
Run OpenAI Codex CLI as a subagent for second opinions, code reviews, and questions. Use when you want a different AI model's perspective.
npx skills add majiayu000/claude-skill-registry --skill codex-yuvasee-samocode --agent codex
Same command for any agent — swap --agent for claude-code, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Codex Subagent Run OpenAI Codex CLI (GPT-5.2) for second opinions and external reviews. ## Availability Check Before using Codex, verify it's installed: ```bash which codex >/dev/null 2>&1 || echo "CODEX_NOT_INSTALLED" ``` If not installed, inform the user: "Codex CLI is not installed. Skipping Codex review." ## Execution Pattern ```bash OUTPUT_FILE=$(mktemp) codex exec \ --skip-git-repo-check \ --dangerously-bypass-approvals-and-sandbox \ -o "$OUTPUT_FILE" \ "$PROMPT" 2>/dev/null cat "$OUTPUT_FILE" rm "$OUTPUT_FILE" ``` ### Flags | Flag | Purpose | |------|---------| | `exec` | Non-interactive mode | | `--skip-git-repo-check` | Run outside git repositories | | `--dangerously-bypass-approvals-and-sandbox` | No prompts, no sandbox restrictions | | `-o <file>` | Capture clean output to file | | `2>/dev/null` | Suppress session info and stderr noise | ### Timeout Codex can take several minutes for complex prompts. Use 15 minute timeout: ```bash timeout 900 codex exec --skip-git-repo-check --dangerously-bypass-approvals-and-sandbox -o "$OUTPUT_FILE" "$PROMPT" 2>/dev/null ``` ## Usage Examples ### Simple Question ```bash OUTPUT_FILE=$(mktemp) codex exec --skip-git-repo-check --dangero
- Availability Check
- Execution Pattern
- Flags
- Timeout
- Usage Examples
- Simple Question
- Code Review
- With Working Directory
- GitHub PR Review
- Notes
which codex >/dev/null 2>&1 || echo "CODEX_NOT_INSTALLED" codex exec \ cat "$OUTPUT_FILE" rm "$OUTPUT_FILE" timeout 900 codex exec --skip-git-repo-check --dangerously-bypass-approvals-and-sandbox -o "$OUTPUT_FILE" "$PROMPT" 2>/dev/null codex exec --skip-git-repo-check --dangerously-bypass-approvals-and-sandbox -o "$OUTPUT_FILE" \ List concerns with severity (blocking/important/nice-to-have)." 2>/dev/null codex exec --dangerously-bypass-approvals-and-sandbox -C /path/to/repo -o "$OUTPUT_FILE" \ timeout 900 codex exec --skip-git-repo-check --dangerously-bypass-approvals-and-sandbox -o "$OUTPUT_FILE" \ Use gh CLI to get the diff and review for issues." 2>/dev/null
What does the codex skill do?
Run OpenAI Codex CLI as a subagent for second opinions, code reviews, and questions. Use when you want a different AI model's perspective.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill codex-yuvasee-samocode --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
