Skip to content
Back to skills

Codex Cli Review

ASecurity

Code review via Codex CLI with full disk access. Use when: deep review needing full codebase read, uncommitted change review. Not for: quick diff review (use codex-code-review), doc review (use doc-review). Output: severity-grouped findings + merge gate.

  • 192 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 4, 2026
ai-agentsbashcode-reviewgitsecurityperformance

Works with

  • cli
  • mcp

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 4, 2026

npx -y skills add sd0xdev/sd0x-harness --skill codex-cli-review --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Codex Cli Review?

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

Security grade badge for Codex Cli Review
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sd0xdev-codex-cli-review-sd0x-harness/badge)](https://www.skillsdirectory.com/skills/sd0xdev-codex-cli-review-sd0x-harness)

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-cli-review
description: "Code review via Codex CLI with full disk access. Use when: deep review needing full codebase read, uncommitted change review. Not for: quick diff review (use codex-code-review), doc review (use doc-review). Output: severity-grouped findings + merge gate."
allowed-tools: Bash(bash:*)
context: fork
---

# Codex CLI Review Skill

## Trigger

- Keywords: codex cli review, cli review, script review

## When to Use

- Need Codex to independently explore the entire project (full disk read)
- Don't need MCP's context persistence feature
- Want to use Codex CLI's native review format

## When NOT to Use

- Need iterative review (use `/codex-review-fast --continue`)
- Need to follow up with Codex (use MCP version)
- Only want to see diff without waiting for Codex exploration (use `/codex-review-fast`)

## Difference from MCP Version

| Feature             | CLI Version (this skill) | MCP Version           |
| ------------------- | ------------------------ | --------------------- |
| Independent explore | Full disk read           | Needs explicit instruction |
| Context persistence | None                     | threadId              |
| Iterative review    | Each run independent     | --continue            |
| Format              | Codex native format      | Custom prompt format  |
| Execution method    | Script invocation        | MCP tool invocation   |

## Workflow

```
┌─────────────────────────────────────────────────────────────────┐
│ Step 1: Check Changes                                           │
├─────────────────────────────────────────────────────────────────┤
│ git status --porcelain                                          │
│ No changes -> Early exit                                        │
└─────────────────────────────────────────────────────────────────┘
                              ↓
┌─────────────────────────────────────────────────────────────────┐
│ Step 2: Execute Codex CLI                                       │
├─────────────────────────────────────────────────────────────────┤
│ codex review --uncommitted                                      │
│   -c 'sandbox_permissions=["disk-full-read-access"]'            │
│                                                                 │
│ Codex will independently:                                       │
│ - Read changed files                                            │
│ - Explore related dependencies                                  │
│ - Check existing tests                                          │
│ - Understand project structure                                  │
└─────────────────────────────────────────────────────────────────┘
                              ↓
┌─────────────────────────────────────────────────────────────────┐
│ Step 3: Output Review Results                                   │
├─────────────────────────────────────────────────────────────────┤
│ Codex native format:                                            │
│ - Summary                                                       │
│ - Issues (Critical/Major/Minor/Suggestion)                      │
│ - Recommendations                                               │
└─────────────────────────────────────────────────────────────────┘
```

## Script

```bash
bash skills/codex-cli-review/scripts/review.sh [options]
```

### Options

| Parameter           | Description                |
| ------------------- | -------------------------- |
| `--base <branch>`   | Compare with specified branch |
| `--title "<text>"`  | Set review title           |
| `--prompt "<text>"` | Custom review instructions |

### I/O Contract

**Input:**

- Git working directory with changes

**Output:**

- Codex review report (stdout)
- Exit code: 0 = success, non-0 = failure

## Output

```markdown
## Codex CLI Review Report
### Findings
#### P0/P1/P2
- [file:line] Issue → Fix recommendation
### Merge Gate
✅ Ready / ⛔ Blocked
```

## Verification

- [ ] Script executes without errors
- [ ] Codex explored the project (file references visible in output)
- [ ] Output includes issue classification

## Examples

```bash
# Review uncommitted changes
/codex-cli-review

# Compare with main branch
/codex-cli-review --base main

# With title
/codex-cli-review --title "Feature: User Auth"

# Custom review instructions
/codex-cli-review --prompt "Focus on security and performance"
```

## Related

| Command/Skill          | Difference                           |
| ---------------------- | ------------------------------------ |
| `/codex-review-fast`   | MCP version, supports iterative review |
| `/codex-review`        | MCP version, includes lint + build   |
| `/codex-review-branch` | MCP version, reviews entire branch   |

Files in this skill

  • SKILL.md5.9 KB
  • scripts/review.sh2.6 KB

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.

Comments

Loading comments…

Newsletter

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