codex-code-reviewlisted
Install: claude install-skill hmj1026/dhpk
# Codex Code Review
<!-- Security note: Bash(bash:*) is broader than ideal; cannot scope to specific
script paths until Claude Code #9354 resolves ${CLAUDE_PLUGIN_ROOT} in
command frontmatter. Only invoke bash for project scripts (scripts/*). -->
## Trigger
- Keywords: review, PR, code review, second opinion, audit, check
## When NOT to Use
- Document review (use `doc-review`)
- Security-specific review (use `security-review`)
- Test coverage review (use `test-review`)
- Just want to understand code (use `code-explore`)
## Variants
| Variant | Command | Scope | Pre-checks |
|---------|---------|-------|------------|
| Fast | `/codex-review-fast` | Diff only | None |
| Full | `/codex-review` | Diff + local checks | lint:fix + build |
| Branch | `/codex-review-branch` | Full branch | None |
## Shared Workflow
```
Step 0 (PENDING) → Collect changes → [Pre-checks if Full] → Dual Review (Codex + Task) → Await Results → Aggregate → Emit Gate → Loop if Blocked
```
### Step 0: Dual Review Init (Fail-closed)
Execute: `bash scripts/emit-review-gate.sh PENDING`
This sets `review_mode=dual` and `aggregate_gate.executed=false` in state file, ensuring fail-closed semantics — if the process crashes before Step 4.5, stop-guard blocks.
### Step 1: Collect Change Metadata
Collect **metadata only** — Codex reads the actual diffs and file contents itself via sandbox access.
| Variant | Collection Method |
|---------|-------------------|
| Fast | `CHANGED_FILES`