Agent skill · Code Review & Quality

codex

OpenAI Codex CLI wrapper — three modes. Code review: independent diff review via codex review with pass/fail gate. Challenge: adversarial mode that tries to break your code. Consult: ask codex anything with session continuity for follow-ups. The "200 IQ autistic developer" second opinion. Use when asked to "codex review", "codex challenge", "ask codex", "second opinion", or "consult codex".

majiayu000github.com/majiayu000GitHub ↗
codexclaude-codecan modify filesMIT
Install
npx skills add majiayu000/claude-skill-registry --skill codex-erickpinos-sai-explorer --agent codex

Same command for any agent — swap --agent for claude-code, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 22 KB
Bundled scripts: none
Version: 1.0.0
Allowed tools: -Bash-Read-Write-Glob-Grep-AskUserQuestion
Path: skills/ai-llm/codex-erickpinos-sai-explorer/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.

Review
written from the skill's own SKILL.md · Aug 5, 2026

What it does

The skill wraps the OpenAI Codex CLI to provide three operational modes: a code review mode that gates outputs with a pass/fail verdict, a challenge/adversarial mode that attempts to find failures or edge cases, and a consult mode to ask Codex questions with session continuity. It supports invoking either the Codex CLI tools directly (e.g., codex review, codex exec) or prompting Codex for focused analysis.

How it works

  • It starts by ensuring the Codex binary is available and reports if it is not.
  • It parses user input to determine the mode:
    • /codex review or /codex review <instructions> triggers Review mode, which runs:
      • Create a temp file for error capture: TMPERR=$(mktemp /tmp/codex-err-XXXXXX.txt)
      • Execute codex review --base <base> -c 'model_reasoning_effort="high"' --enable web_search_cached 2>"$TMPERR" (with a 5-minute timeout on the Bash call)
      • If user provided extra instructions, pass them as the prompt argument to codex review.
      • Parse the output cost from TMPERR by grepping for "tokens used"; if not found, tokens: unknown.
      • Determine gate verdict: if output contains [P1], gate is FAIL; else gate is PASS.
      • Present the full codex output verbatim within a CODEX SAYS block and append a GATE line with PASS/FAIL and token/cost info.
      • If a prior /review from Claude exists in the session, perform a cross-model comparison showing overlapping findings.
      • Persist the review result to ~/.claude/skills/gstack/bin/gstack-review-log with fields: skill "codex-review", timestamp, status (clean or issues_found), gate (pass or fail), and findings count.
      • Clean up temporary files.
    • /codex challenge or /codex challenge <focus> triggers Challenge mode, which constructs an adversarial prompt to identify failures, then runs codex exec with JSONL output and a 5-minute timeout. It captures reasoning traces and tool calls, extracting potential failure points and presenting them verbatim.
    • /codex with no arguments triggers Auto-detect: checks for a diff against the base branch. If a diff exists, asks the user to choose among reviewing, challenging, or prompting for a different task. If no diff, searches plan files for project-scoped matches and may propose reviewing a plan or asking Codex a question.
    • /codex <anything else> triggers Consult mode, where the remaining text is treated as the prompt to Codex.

When to use it

  • Use when you want an independent, brute-force second opinion on code changes via Codex.
  • Use code review mode to gate quality with a formal pass/fail, especially when you need deterministic acceptance criteria.
  • Use challenge mode to aggressively test for edge cases, security issues, or robustness concerns.
  • Use consult mode for a general Codex-based Q&A with session continuity.

What it can touch

  • Commands: "codex review" and "codex exec" with the needed flags and prompts.
  • Files: creates a temporary error file TMPERR and writes to ~/.claude/skills/gstack/bin/gstack-review-log depending on results.
  • Output: prints the full Codex output verbatim within a structured CODEX SAYS block, then a GATE result.

Caveats

  • Relies on the presence of the Codex CLI binary; if not found, the workflow stops with a user-facing message directing installation.
  • Gate verdicts depend on presence of "[P1]" in Codex output for FAIL; otherwise, PASS.
  • Cross-model comparison depends on prior Claude review output in the session.
  • Logging to gstack-review-log uses a specific JSON structure and may require environment setup to persist files.
From the SKILL.md

<!-- AUTO-GENERATED from SKILL.md.tmpl — do not edit directly --> <!-- Regenerate: bun run gen:skill-docs --> ## Preamble (run first) ```bash _UPD=$(~/.claude/skills/gstack/bin/gstack-update-check 2>/dev/null || .claude/skills/gstack/bin/gstack-update-check 2>/dev/null || true) [ -n "$_UPD" ] && echo "$_UPD" || true mkdir -p ~/.gstack/sessions touch ~/.gstack/sessions/"$PPID" _SESSIONS=$(find ~/.gstack/sessions -mmin -120 -type f 2>/dev/null | wc -l | tr -d ' ') find ~/.gstack/sessions -mmin +120 -type f -delete 2>/dev/null || true _CONTRIB=$(~/.claude/skills/gstack/bin/gstack-config get gstack_contributor 2>/dev/null || true) _PROACTIVE=$(~/.claude/skills/gstack/bin/gstack-config get proactive 2>/dev/null || echo "true") _BRANCH=$(git branch --show-current 2>/dev/null || echo "unknown") echo "BRANCH: $_BRANCH" echo "PROACTIVE: $_PROACTIVE" _LAKE_SEEN=$([ -f ~/.gstack/.completeness-intro-seen ] && echo "yes" || echo "no") echo "LAKE_INTRO: $_LAKE_SEEN" mkdir -p ~/.gstack/analytics echo '{"skill":"codex","ts":"'$(date -u +%Y-%m-%dT%H:%M:%SZ)'","repo":"'$(basename "$(git rev-parse --show-toplevel 2>/dev/null)" 2>/dev/null || echo "unknown")'"}' >> ~/.gstack/analytics/skill-usage.json

What's inside
Steps it walks through
  1. Preamble (run first)
  2. AskUserQuestion Format
  3. Completeness Principle — Boil the Lake
  4. Contributor Mode
  5. Completion Status Protocol
  6. Escalation
  7. Step 0: Detect base branch
  8. Step 0: Check codex binary
  9. Step 1: Detect mode
  10. Step 2A: Review Mode
  11. Step 2B: Challenge (Adversarial) Mode
  12. Step 2C: Consult Mode
  13. Model & Reasoning
  14. Cost Estimation
Ships with 1 file
  • metadata.json
Commands it runs
mkdir -p ~/.gstack/sessions
touch ~/.gstack/sessions/"$PPID"
find ~/.gstack/sessions -mmin +120 -type f -delete 2>/dev/null || true
echo "BRANCH: $_BRANCH"
echo "PROACTIVE: $_PROACTIVE"
echo "LAKE_INTRO: $_LAKE_SEEN"
mkdir -p ~/.gstack/analytics
open https://garryslist.org/posts/boil-the-ocean
touch ~/.gstack/.completeness-intro-seen
codex review --base <base> -c 'model_reasoning_effort="high"' --enable web_search_cached 2>"$TMPERR"
More from claude-skill-registry
All skills →
About this skill
What does the codex skill do?

OpenAI Codex CLI wrapper — three modes. Code review: independent diff review via codex review with pass/fail gate. Challenge: adversarial mode that tries to break your code. Consult: ask codex anything with session continuity for follow-ups. The "200 IQ autistic developer" second opinion. Use when asked to "codex review", "codex challenge", "ask codex", "second opinion", or "consult codex".

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill codex-erickpinos-sai-explorer --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