Skip to content
Back to skills

Codex Yuvasee Samocode

ASecurity

Run OpenAI Codex CLI as a subagent for second opinions, code reviews, and questions. Use when you want a different AI model's perspective.

  • 30 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 12, 2026
ai-agentsbashgitapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned November 12, 2026

npx -y skills add majiayu000/claude-skill-registry-data --skill codex-yuvasee-samocode --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Codex Yuvasee Samocode?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Codex Yuvasee Samocode
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-codex-yuvasee-samocode-claude-skill-registry-data/badge)](https://www.skillsdirectory.com/skills/majiayu000-codex-yuvasee-samocode-claude-skill-registry-data)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: codex
description: Run OpenAI Codex CLI as a subagent for second opinions, code reviews, and questions. Use when you want a different AI model's perspective.
---

# 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 --dangerously-bypass-approvals-and-sandbox -o "$OUTPUT_FILE" \
  "What are the tradeoffs between Redis and Memcached for session storage?" 2>/dev/null
cat "$OUTPUT_FILE"
rm "$OUTPUT_FILE"
```

### Code Review

```bash
DIFF=$(git diff main...HEAD)
OUTPUT_FILE=$(mktemp)
codex exec --skip-git-repo-check --dangerously-bypass-approvals-and-sandbox -o "$OUTPUT_FILE" \
  "Review this diff for issues:

$DIFF

List concerns with severity (blocking/important/nice-to-have)." 2>/dev/null
cat "$OUTPUT_FILE"
rm "$OUTPUT_FILE"
```

### With Working Directory

```bash
OUTPUT_FILE=$(mktemp)
codex exec --dangerously-bypass-approvals-and-sandbox -C /path/to/repo -o "$OUTPUT_FILE" \
  "Analyze the architecture of this codebase" 2>/dev/null
cat "$OUTPUT_FILE"
rm "$OUTPUT_FILE"
```

### GitHub PR Review

Codex has access to `gh` CLI. Pass the PR URL and let it fetch the diff:

```bash
OUTPUT_FILE=$(mktemp)
timeout 900 codex exec --skip-git-repo-check --dangerously-bypass-approvals-and-sandbox -o "$OUTPUT_FILE" \
  "Review this PR: https://github.com/owner/repo/pull/123

   Use gh CLI to get the diff and review for issues." 2>/dev/null
cat "$OUTPUT_FILE"
rm "$OUTPUT_FILE"
```

## Notes

- Codex uses GPT-5.2, providing genuinely different perspective from Claude
- Each call is stateless - no conversation continuity
- API costs apply per call
- Output may contain duplicates - parse accordingly

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.