搜索

PythonReactSEOPDF
GitHub Skill

codex-review

Code review checkpoint for conductor gates. Calls codex/review MCP tool to analyze code changes. Returns structured result with pass/fail status, issues found, and whether visual QA is needed.

GGPrompts☆ 1 仓库 Stars0 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

Codex Review Checkpoint

Code review checkpoint that runs Codex CLI review on the current worktree.

What This Skill Does

  1. Determines what to review (uncommitted changes vs branch diff)
  2. Calls codex/review MCP tool
  3. Parses results into structured format
  4. Writes result to checkpoint file

Workflow

Step 1: Determine Review Scope

Check what needs reviewing:

# Check for uncommitted changes
git status --porcelain

# If clean, get branch for comparison
git rev-parse --abbrev-ref HEAD
Step 2: Run Codex Review

Use the MCP tool based on scope:

# For uncommitted changes
mcp-cli call codex/review '{"uncommitted": true, "title": "Checkpoint Review"}'

# For branch diff against main
mcp-cli call codex/review '{"base": "main", "title": "Checkpoint Review"}'
Step 3: Parse and Write Result

After reviewing, create a structured result:

{
  "checkpoint": "codex-review",
  "timestamp": "2026-01-19T12:00:00Z",
  "passed": true,
  "issues": [],
  "needs_visual": false,
  "summary": "No critical issues found"
}

Result Fields:

  • passed: true if no blocking issues found
  • issues: array of {severity: "error"|"warning"|"info", message: string, file?: string, line?: number}
  • needs_visual: true if UI changes detected that require visual QA
  • summary: brief human-readable summary
Step 4: Write Checkpoint File

Write result to .checkpoints/codex-review.json:

mkdir -p .checkpoints
cat > .checkpoints/codex-review.json << 'EOF'
{
  "checkpoint": "codex-review",
  "timestamp": "...",
  "passed": true,
  "issues": [],
  "needs_visual": false,
  "summary": "..."
}
EOF

Decision Criteria

Pass if:

  • No errors in review output
  • No security vulnerabilities detected
  • No obvious bugs or logic errors

Fail if:

  • Security issues found
  • Critical bugs detected
  • Code doesn't compile/type-check

Needs Visual QA if:

  • Changes touch UI components
  • CSS/styling changes detected
  • New pages or routes added

Example Usage

When invoked as /codex-review:

Running Codex review checkpoint...

Reviewing uncommitted changes...
Found 3 modified files, 1 new file.

Calling codex/review...
Review complete. 2 suggestions, 0 errors.

Result:
{
  "passed": true,
  "issues": [
    {"severity": "info", "message": "Consider adding error handling", "file": "api.ts", "line": 45}
  ],
  "needs_visual": true,
  "summary": "Minor suggestions only. UI changes detected - visual QA recommended."
}

Checkpoint result written to .checkpoints/codex-review.json

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-01-20
索引更新时间
2026-01-26
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!