Agent skill · AI & Agents

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.

majiayu000github.com/majiayu000GitHub ↗
codexclaude-codeMIT
Install
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.

Facts
Files in the skill folder: 2
SKILL.md size: 3 KB
Bundled scripts: none
Path: skills/ai-llm/codex-yuvasee-samocode/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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

What's inside
Steps it walks through
  1. Availability Check
  2. Execution Pattern
  3. Flags
  4. Timeout
  5. Usage Examples
  6. Simple Question
  7. Code Review
  8. With Working Directory
  9. GitHub PR Review
  10. Notes
Ships with 1 file
  • metadata.json
Commands it runs
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
More from claude-skill-registry
All skills →
About this skill
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.

Keep going