Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计通过

codex-reviewCodex 审查

Agent Skill

codex-review 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

212

周安装

9

GitHub Stars

1

下载量

74
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:codex-review(Codex 审查)
来源仓库:https://github.com/jrajasekera/claude-skills
仓库路径:skills/codex-review
安装命令:
npx skills add https://github.com/jrajasekera/claude-skills --skill codex-review
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/jrajasekera/claude-skills --skill codex-review

简介

用于审查 Codex 生成代码的质量与安全合规性。

  • 识别潜在漏洞、风格偏差与架构不合理之处。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。
  • 输出为结构化反馈列表,供开发者迭代修正。
  • 不能完全替代人工审核,关键模块仍需重点检查。
  • codex-review 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Codex Review

Overview

Cross-agent review workflow: After creating a design doc or implementation plan, invoke Codex to review it, then address the feedback before implementation.

Core principle: Two agents catch more issues than one. Codex reviews with fresh eyes while Claude addresses feedback.

When to Use

digraph trigger_decision {
    "Plan/design doc created" [shape=box];
    "Is change trivial?" [shape=diamond];
    "Ask user: use codex-review?" [shape=box];
    "Auto-trigger codex-review" [shape=box];
    "User says yes?" [shape=diamond];
    "Skip review" [shape=box];
    "Run review" [shape=box];

    "Plan/design doc created" -> "Is change trivial?";
    "Is change trivial?" -> "Ask user: use codex-review?" [label="yes"];
    "Is change trivial?" -> "Auto-trigger codex-review" [label="no"];
    "Ask user: use codex-review?" -> "User says yes?" ;
    "User says yes?" -> "Run review" [label="yes"];
    "User says yes?" -> "Skip review" [label="no"];
    "Auto-trigger codex-review" -> "Run review";
}

Trivial changes: Single-file edits, typo fixes, config changes, adding a simple function. Ask before reviewing.

Non-trivial (auto-trigger): Multi-file changes, new features, architectural decisions, refactors, anything with design choices.

Also use when: User explicitly requests codex-review (e.g., "use codex-review", "get Codex feedback").

Invoking Codex

Run from the project root directory:

CRITICAL: You MUST set the Bash tool timeout parameter to 600000 (10 minutes) to prevent hangs. Run in foreground only — never background.

codex exec -C /absolute/path/to/project/root \
    --sandbox read-only \
    --full-auto \
    --skip-git-repo-check \
    "Read relative/path/to/plan.md, do research on the codebase, and then provide feedback on the plan. Point out any issues, flaws, or concerns with the plan. In your final response, provide only the feedback. Don't offer to do anything else or ask follow-up questions." 2>/dev/null

Parameters:

  • Bash tool timeout: Set timeout: 600000 on the Bash tool call to kill the process after 10 minutes if it hangs. This replaces the old timeout/gtimeout shell wrapper which had zsh compatibility issues.
  • -C: Absolute path to project root
  • --sandbox read-only: Codex can read but not modify
  • --full-auto: No interactive prompts
  • --skip-git-repo-check: Works in any directory
  • 2>/dev/null: Suppress stderr noise

Capture stdout directly - do not write feedback to a file.

CRITICAL: Run in foreground only. Do NOT run codex exec as a background process (no &, no nohup, no subshell backgrounding). Always run it synchronously so that the command fully completes and exits before you proceed. Running it in the background can cause the process to linger and produce confusing duplicate output later when it eventually exits.

Path handling:

  • Plan inside project: Use relative path from project root (e.g., docs/plan.md)
  • Plan outside project: Use absolute path (e.g., /tmp/scratch/plan.md)
  • The -C flag always takes the absolute project root path regardless of where the plan file lives

What Codex Reviews Well (and Doesn't)

Codex excels at:

  • Checking if plan matches actual codebase structure (file paths, frameworks, patterns)
  • Identifying missing dependencies or incompatible libraries
  • Spotting architectural mismatches (e.g., Express patterns in a Next.js app)
  • Finding references to non-existent code (routes, models, functions)

Codex may struggle with:

  • Plans referencing external systems Codex can't access (APIs, databases, third-party services)
  • Very high-level or abstract plans with few concrete file/code references
  • Plans for greenfield projects where there's no existing code to compare against

If Codex feedback seems shallow: The plan may lack enough concrete details for meaningful review. Consider adding specific file paths, function names, or code snippets before re-running.

Processing Feedback

After receiving Codex's feedback, categorize each item:

CategoryAction
Critical issuesAddress immediately without asking. These are bugs, security issues, logical flaws, missing error handling, or architectural problems that would cause failures.
Minor concernsPresent to user and ask which to address. These are style suggestions, optional improvements, alternative approaches, or "nice to have" items.

Presenting minor concerns:

Handle each minor concern individually using AskUserQuestion. For each concern, present multiple ways to address it so the user can pick the best approach.

Call AskUserQuestion once per minor concern with options representing different ways to resolve it:

AskUserQuestion:
  question: "Codex suggests: [concern summary]. How should I address this?"
  header: "[short label]"
  options:
    - label: "[Approach A]", description: "[what this approach does]"
    - label: "[Approach B]", description: "[what this approach does]"
    - label: "Skip this", description: "Don't address this concern"
  multiSelect: false

Guidelines:

  • Each concern gets its own AskUserQuestion call — do not batch multiple concerns into one question
  • Always include a "Skip this" option so the user can dismiss concerns they don't care about
  • Present 2-3 concrete resolution approaches per concern, plus the skip option
  • If there are many minor concerns (5+), you may batch multiple AskUserQuestion calls in parallel (up to 4 per message) to avoid excessive back-and-forth

Review Rounds

Auto-continue on critical issues, capped at 3 rounds.

digraph review_rounds {
    "Round N" [shape=box];
    "Process feedback" [shape=box];
    "Had critical issues?" [shape=diamond];
    "N < 3?" [shape=diamond];
    "Update plan, run round N+1" [shape=box];
    "Proceed to implementation" [shape=box];

    "Round N" -> "Process feedback";
    "Process feedback" -> "Had critical issues?";
    "Had critical issues?" -> "Proceed to implementation" [label="no"];
    "Had critical issues?" -> "N < 3?" [label="yes"];
    "N < 3?" -> "Update plan, run round N+1" [label="yes"];
    "N < 3?" -> "Proceed to implementation" [label="no (max reached)"];
    "Update plan, run round N+1" -> "Round N" [style=dashed];
}

Rules:

  • After each round, if any critical issues were found and addressed, automatically run another round to verify the fixes
  • If a round produces only minor concerns (or no feedback), stop — no further rounds needed
  • Maximum 3 rounds total. If round 3 still has critical issues, proceed to implementation anyway and note the unresolved concerns
  • The user can still request a specific number of rounds (e.g., "do 2 rounds"), which overrides the auto-continue logic but is still capped at 3

After each round:

  1. Address critical issues and update the plan/design doc
  2. Present minor concerns to the user (per the feedback processing rules above)
  3. If critical issues were addressed and rounds remain, invoke Codex again on the updated doc
  4. After final round, proceed to implementation

Error Handling

digraph error_handling {
    "Run codex exec" [shape=box];
    "Success?" [shape=diamond];
    "Process feedback" [shape=box];
    "Retry once" [shape=box];
    "Success on retry?" [shape=diamond];
    "Ask user how to proceed" [shape=box];

    "Run codex exec" -> "Success?";
    "Success?" -> "Process feedback" [label="yes"];
    "Success?" -> "Retry once" [label="no (timeout/error)"];
    "Retry once" -> "Success on retry?";
    "Success on retry?" -> "Process feedback" [label="yes"];
    "Success on retry?" -> "Ask user how to proceed" [label="no"];
}

Note: Bash tool timeout errors may surface as a tool-level timeout message rather than exit code 124 (which shell timeout/gtimeout would return). The retry logic still applies either way.

On persistent failure, ask:

Codex review failed after retry. How would you like to proceed?
1. Skip review and continue to implementation
2. Try again
3. I'll review the plan manually

Common Mistakes

MistakeFix
Forgetting to set Bash tool timeoutAlways set timeout: 600000 on the Bash tool call to prevent codex from hanging indefinitely
Running codex from wrong directoryAlways use -C /absolute/path/to/project/root
Running codex in backgroundAlways run synchronously (no &). Background processes cause duplicate output later
Writing feedback to fileCapture stdout directly, don't create feedback files
Running extra rounds when only minor concerns remainOnly auto-continue if critical issues were found
Exceeding 3 roundsCap at 3 rounds max, even if critical issues persist
Addressing all feedback equallyCategorize: critical = auto-fix, minor = ask user
Forgetting to update plan between roundsAlways update the doc before next round
Using relative path for plan outside projectUse absolute path for files not in project root
Running review on vague/abstract plansEnsure plan has concrete file paths and code references

Quick Reference

# Review flow (auto-continues on critical issues, max 3 rounds)
[Create plan] → codex-review round 1 → address feedback →
  critical issues found? → yes → update plan → round 2 → ...
  no critical issues?    → proceed to implementation

# Feedback handling
Critical issues  → Address immediately, triggers another round
Minor concerns   → AskUserQuestion per concern with resolution options

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

32.93%
按下载量换算24

Claude

30.88%
按下载量换算23

Cursor

18.53%
按下载量换算14

Gemini CLI

7.99%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/jrajasekera/claude-skills --skill codex-review 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills