スキル一覧に戻る
robbyt

diff-review

by robbyt

Skills and Plugins for Claude Code

37🍴 2📅 2026年1月24日
GitHubで見るManusで実行

SKILL.md


name: diff-review description: Get Codex's code review of git changes after Claude makes edits. Trigger when user wants a second opinion on code changes ("have Codex review my changes", "get code review from Codex", "review this diff with Codex"), or as a final check before committing.

Diff Review via Codex

Have Codex review git changes for a second perspective on code quality.

CRITICAL: Default Model

ALWAYS use model: "gpt-5.2" unless the user explicitly requests a different model. Do NOT choose o3 or other models on your own.

CRITICAL: Instruct Codex

Every prompt sent to Codex MUST include these instructions:

"You are running non-interactively as part of a script. Do not ask questions or wait for input. Do not make any changes. Provide your complete feedback immediately."

Codex is a consultant. Claude Code handles all file modifications.

Quick Start (MCP)

If the codex MCP tool is available, first save the diff then review:

git diff --cached > codex-review.diff
mcp__plugin_codex_cli__codex({
  "prompt": "You are running non-interactively as part of a script. Do not ask questions or wait for input. Do not make any changes. Provide your complete feedback immediately.\n\nReview the code changes at codex-review.diff for bugs, security issues, and style problems.",
  "sandbox": "read-only",
  "model": "gpt-5.2"
})
rm codex-review.diff

Fallback (Bash)

If MCP is unavailable, use shell commands:

git diff --cached > codex-review.diff
codex exec "You are running non-interactively as part of a script. Do not ask questions or wait for input. Do not make any changes. Provide your complete feedback immediately.

Review the code changes at codex-review.diff for issues." --sandbox read-only -m gpt-5.2-codex 2>&1
rm codex-review.diff

Or use the built-in review command:

codex review --uncommitted 2>&1

Note: The review command is scoped to diffs and doesn't support --sandbox.

Patterns

Staged changes:

mcp__plugin_codex_cli__codex({
  "prompt": "You are running non-interactively as part of a script. Do not ask questions or wait for input. Do not make any changes. Provide your complete feedback immediately.\n\nReview codex-review.diff for:\n1. Bugs or logic errors\n2. Security vulnerabilities\n3. Style inconsistencies\n4. Missing error handling",
  "sandbox": "read-only",
  "model": "gpt-5.2"
})

Security focus:

mcp__plugin_codex_cli__codex({
  "prompt": "You are running non-interactively as part of a script. Do not ask questions or wait for input. Do not make any changes. Provide your complete feedback immediately.\n\nSecurity review of codex-review.diff. Check for:\n- XSS vulnerabilities\n- SQL/command injection\n- Sensitive data exposure\n- Authentication/authorization issues",
  "sandbox": "read-only",
  "model": "gpt-5.2"
})

Performance focus:

mcp__plugin_codex_cli__codex({
  "prompt": "You are running non-interactively as part of a script. Do not ask questions or wait for input. Do not make any changes. Provide your complete feedback immediately.\n\nPerformance review of codex-review.diff. Check for:\n- Inefficient algorithms\n- N+1 queries\n- Memory leaks\n- Blocking operations",
  "sandbox": "read-only",
  "model": "gpt-5.2"
})

Performance

  • MCP diff review: ~5-30 seconds
  • MCP with source context: ~1-2 minutes
  • Bash fallback: ~2-3 minutes

Notes

  • Always use sandbox: "read-only" to prevent file modifications
  • NEVER use sandbox: "danger-full-access" - this is forbidden
  • Tool name may vary by installation. Check available tools for exact name.
  • Save diff to project root before review (Codex can read project files)
  • Clean up diff file after review
  • MCP is preferred; Bash fallback requires dangerouslyDisableSandbox: true
  • See references/setup.md for troubleshooting

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です