Token导航 LogoToken导航

Agent Skill · 研究检索

codex-code-review(Codex 代码审查)

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

codex-code-review 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描有未通过项,按安装量在研究检索类的 73,674 个 Skill 里排第 72,863。

总安装 186周安装 8GitHub Stars 2下载 65核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/beshkenadze/claude-skills-marketplace --skill codex-code-review

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

利用 OpenAI Codex CLI 进行 AI 驱动的代码审查,识别潜在 bug 与安全风险。适合在本地开发阶段提前发现逻辑错误或反模式,提升代码健壮性。支持分支对比、暂存区审查等多种模式,输出包含修复建议的详细报告。需预先安装 Codex CLI 并配置 API 密钥,部分高级功能可能产生费用。

codex-code-review 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/codex-code-review

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/beshkenadze/claude-skills-marketplace --skill…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

codex-code-review 怎么安装?

在终端执行 npx skills add https://github.com/beshkenadze/claude-skills-marketplace --skill codex-code…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

codex-code-review 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

codex-code-review 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

codex-code-review 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

codex-code-review 用的人多吗?

公开数据是累计安装 186 次,近一周安装 8 次,下载 65 次,GitHub 2 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

codex-code-review 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
codex-code-review

Codex 代码审查 · 本页

1862接触敏感数据未明确未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Codex Code Review

Leverage OpenAI's Codex CLI for comprehensive, AI-powered code review that catches bugs, security issues, and code quality problems.

Prerequisites

  • Codex CLI installed (npm install -g @openai/codex)
  • OpenAI API key configured (OPENAI_API_KEY environment variable)
  • Git repository with changes to review

Quick Commands

Interactive CLI Review

# Start Codex CLI
codex

# Then type /review to access review presets

Review Modes

ModeUse When
Branch comparisonBefore opening a PR, to catch issues early
Uncommitted changesBefore committing, to review staged/unstaged files
Commit reviewTo analyze a specific commit's changes
Custom instructionsTo focus on specific concerns (security, accessibility, etc.)

Workflow: Local Code Review

Step 1: Review Before Commit

# Start interactive session
codex

# Review uncommitted changes
/review
# Select: "Review uncommitted changes"

Step 2: Review Before PR

codex

# Review against base branch
/review
# Select: "Review against a base branch"
# Choose your target branch (e.g., main)

Step 3: Focused Review

codex

/review
# Select: "Custom review instructions"
# Enter: "Focus on security vulnerabilities and SQL injection"

Workflow: GitHub Integration

Setup (One-time)

  1. Configure Codex cloud at https://codex.openai.com
  2. Navigate to Settings → Repositories
  3. Enable "Code review" for your repository
  4. (Optional) Enable "Automatic reviews" for all new PRs

Manual PR Review

Comment on any pull request:

@codex review

Codex will react with 👀 and post a standard GitHub code review.

Focused PR Review

@codex review for security regressions
@codex review focusing on performance implications
@codex review checking error handling

AGENTS.md Configuration

Create AGENTS.md in your repository root:

# Review Guidelines

## Security
- Check for SQL injection vulnerabilities
- Verify input sanitization
- Review authentication/authorization logic

## Code Quality
- Ensure functions have single responsibility
- Check for proper error handling
- Verify test coverage for new code

## Performance
- Review database queries for N+1 issues
- Check for unnecessary re-renders in React components

Workflow: CI/CD Integration

GitHub Action

name: Codex Code Review
on:
  pull_request:
    types: [opened, synchronize]

jobs:
  review:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 0

      - uses: openai/codex-action@v1
        with:
          prompt-file: .github/codex-review-prompt.md
          sandbox: read-only
          safety-strategy: drop-sudo
          output-file: review-findings.json
        env:
          OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}

      - name: Post Review Comments
        uses: actions/github-script@v7
        with:
          script: |
            const findings = require('./review-findings.json');
            // Post inline comments based on findings

Review Prompt Template

Create .github/codex-review-prompt.md:

Review this pull request for:
1. Security vulnerabilities (OWASP Top 10)
2. Logic errors and edge cases
3. Performance issues
4. Code maintainability
5. Test coverage gaps

Focus on issues that impact correctness, performance, security,
maintainability, or developer experience.

Provide exact file paths and line numbers for all findings.
Rate confidence for each finding (high/medium/low).

Examples

Example: Quick Pre-commit Review

Input:

Review my changes before I commit

Output:

# Start Codex and run review
codex
/review
# Select: "Review uncommitted changes"

# Codex analyzes staged/unstaged files and reports:
# - P0: SQL injection risk in user_service.py:45
# - P1: Missing null check in api/handlers.py:123
# - P2: Consider extracting duplicate logic in utils.py

Example: Security-focused PR Review

Input:

Do a security review of PR #42

Output:

# Comment on GitHub PR:
@codex review for security vulnerabilities

# Codex responds with GitHub code review:
# 🔴 P0: Unsanitized user input passed to shell command (cmd.py:78)
# 🟠 P1: JWT token stored in localStorage (auth.js:34)
# 🟡 P2: Missing rate limiting on login endpoint (routes.py:56)

Example: CI/CD Integration Setup

Input:

Set up automatic code review in GitHub Actions

Output:

  1. Create .github/workflows/codex-review.yml with openai/codex-action@v1
  2. Add OPENAI_API_KEY to repository secrets
  3. Create .github/codex-review-prompt.md with review criteria
  4. PRs now get automatic Codex reviews on open/sync

Example: Custom Review Focus

Input:

Review this code focusing on React performance

Output:

codex
/review
# Select: "Custom review instructions"
# Enter: "Focus on React performance: unnecessary re-renders, missing memo/useMemo/useCallback, large bundle imports"

# Codex reports:
# - P1: Component re-renders on every parent update, wrap with React.memo
# - P1: Expensive computation in render, move to useMemo
# - P2: Importing entire lodash, use lodash-es with tree shaking

Tips

Tip 1: Combine Review Modes

Run multiple review types for comprehensive coverage:

# First: check uncommitted changes
/review → "Review uncommitted changes"

# Then: compare against main for full PR scope
/review → "Review against a base branch" → main

Tip 2: Create Project-specific AGENTS.md

Tailor reviews to your stack:

# Review Guidelines

## Our Stack: Next.js + Prisma + tRPC
- Check for missing Prisma transaction wrapping
- Verify tRPC input validation with Zod
- Review Next.js data fetching patterns (SSR vs CSR)
- Flag any `any` types in TypeScript

Tip 3: Use Structured Output for Metrics

Track code quality over time:

codex exec --output-schema review-schema.json "Review src/" > findings.json
# Parse findings.json to track P0/P1 counts per sprint

Tip 4: Review Before and After Refactoring

# Before refactor: baseline
git stash
codex → /review → "Review against main"
# Note: 3 P1 issues

# After refactor: verify improvement
git stash pop
codex → /review → "Review against main"
# Confirm: 0 P1 issues, no new problems introduced

Tip 5: Exclude Generated Files

Add to AGENTS.md to reduce noise:

## Exclusions
- Ignore files matching: *.generated.ts, *.min.js, dist/*, coverage/*
- Skip lock files: package-lock.json, yarn.lock, pnpm-lock.yaml

Best Practices

1. Use Appropriate Review Mode

SituationRecommended Mode
Pre-commit checkUncommitted changes
Pre-PR validationBranch comparison
Post-merge auditCommit review
Security auditCustom with security focus

2. Configure Severity Levels

Default GitHub integration shows only P0 (critical) and P1 (high) issues. Adjust in AGENTS.md:

# Review Guidelines

## Severity Configuration
- Show P0, P1, and P2 issues
- Ignore style-only findings

3. Combine with Claude Code

For optimal workflow:

  1. Claude Code: Fast implementation and iteration
  2. Codex: Thorough code review before merge
# Implement with Claude
claude "Add user authentication feature"

# Review with Codex before PR
codex
/review

4. Model Selection

For critical reviews, use the strongest model:

# In codex config (~/.codex/config.json)
{
  "review_model": "gpt-5.2-codex"
}

Structured Output Schema

For CI/CD integration with inline comments:

{
  "type": "object",
  "properties": {
    "findings": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "title": { "type": "string" },
          "body": { "type": "string" },
          "confidence": { "type": "number" },
          "priority": { "enum": ["P0", "P1", "P2", "P3"] },
          "file": { "type": "string" },
          "start_line": { "type": "integer" },
          "end_line": { "type": "integer" }
        }
      }
    },
    "verdict": {
      "type": "object",
      "properties": {
        "status": { "enum": ["approved", "changes_requested"] },
        "explanation": { "type": "string" },
        "confidence": { "type": "number" }
      }
    }
  }
}

Troubleshooting

"Review model not available"

Ensure your API key has access to the review model:

export OPENAI_API_KEY="sk-..."
codex models list

GitHub Integration Not Working

  1. Verify Codex cloud is configured
  2. Check repository has code review enabled
  3. Ensure @codex has repository access

Review Too Noisy

  1. Increase severity threshold in AGENTS.md
  2. Add exclusion patterns for generated files
  3. Use focused review instructions

References

平台分布

Codex

36.73%
按下载量换算24

Claude

30.39%
按下载量换算20

Cursor

17.31%
按下载量换算11

Gemini CLI

8.55%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

未通过

Snyk

可疑

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills