ワンクリックで
code-review
Send git diffs to external AI CLIs (Claude, Codex, Gemini) for code review and aggregate findings.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Send git diffs to external AI CLIs (Claude, Codex, Gemini) for code review and aggregate findings.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
boiled-claw の e2e スモークテストを実行する。gateway の pytest / Docker / HTTP ヘルスチェックをまとめて確認し、すべて Pass した場合のみ「push OK」と報告する。
Run end-to-end smoke tests against the boiled-claw gateway from the Docker dev container.
見えているブラウザ UI を browser-first で扱い、単発は computer_*、長めの作業は computer_operator へつなぐ。
Use browser-first computer tools for visible UI tasks in the current browser, with escalation to computer_operator for longer multi-step work.
boiled-claw の新しいスキルを対話的に作成する。skills/ と .claude/skills/ の両方に SKILL.md を生成する。
git diff を外部 AI CLI(Claude Code / Codex / Gemini)に送ってレビューし、結果を集約・比較する。
| name | code-review |
| description | Send git diffs to external AI CLIs (Claude, Codex, Gemini) for code review and aggregate findings. |
| version | 1.1.0 |
| author | boiled-claw |
| tags | ["review","ai-cli","multi-llm"] |
You are a code review orchestrator. You collect git diffs and send them to one or more external AI CLIs for review, then aggregate and report findings.
This skill is designed for root agent execution — it requires built-in tools
(run_shell, write_file, memory_store) that are available to the root agent.
Use skill_execute("code-review") to load the instructions, then follow them
with the root agent's tools.
Note:
skill_spawncreates dynamic agents with MCP toolsets only, which do not includerun_shellorwrite_file. Until built-in tool injection is supported for dynamic agents, useskill_executeinstead.
| CLI | Non-interactive Command | Prompt Transport |
|---|---|---|
| Claude Code | claude -p | stdin |
| OpenAI Codex | codex review --base <branch> | Codex reads its own diff |
| Gemini CLI | gemini | stdin |
Use skills/_utils/run_ai_cli.py for consistent CLI invocation. Prompts are
passed via stdin (not argv) to avoid OS argument-size limits on large diffs.
# Detect available CLIs
python3 skills/_utils/run_ai_cli.py --detect
# Claude / Gemini — prompt via stdin from file
python3 skills/_utils/run_ai_cli.py --cli claude --prompt-file /tmp/bc_review_prompt.txt
python3 skills/_utils/run_ai_cli.py --cli gemini --prompt-file /tmp/bc_review_prompt.txt
# Codex — uses its own diff reader; prompt is custom instructions only
python3 skills/_utils/run_ai_cli.py --cli codex --mode review --review-base main
Determine the review scope via run_shell:
git diff # unstaged
git diff --cached # staged
git diff main...HEAD # branch comparison
git diff <from>..<to> # commit range
Save the diff output. If empty, report "no changes to review" and stop.
Write a prompt file using write_file to /tmp/bc_review_prompt.txt:
Review the following git diff. Focus on: {focus_areas}.
Report issues as a list with severity (critical/warning/info), file, line, and description.
---
{diff_content}
---
This prompt file is used by Claude and Gemini only. Codex reads its own diff
via --base / --uncommitted, so it does not need the diff embedded in the prompt.
Each CLI handles the diff differently:
Claude / Gemini — receive the full diff via stdin through the utility:
python3 skills/_utils/run_ai_cli.py --cli claude --prompt-file /tmp/bc_review_prompt.txt --timeout 120
python3 skills/_utils/run_ai_cli.py --cli gemini --prompt-file /tmp/bc_review_prompt.txt --timeout 120
Codex — reads the diff from the repo directly:
# Codex review against a base branch (reads diff internally)
python3 skills/_utils/run_ai_cli.py --cli codex --mode review --review-base main --timeout 120
# Or review uncommitted changes
python3 skills/_utils/run_ai_cli.py --cli codex --mode review --review-uncommitted --timeout 120
If a CLI is not installed or fails, log the error and continue with the rest.
Compile results into a unified report:
## Code Review Report
### Summary
- Reviewers: Claude, Codex, Gemini
- Scope: {branch/commit range}
- Total findings: N
### Findings by Reviewer
#### Claude
- [critical] file.py:42 — SQL injection risk in query builder
- [warning] utils.py:15 — Unused import
#### Codex
- [warning] file.py:42 — Consider parameterized queries
#### Gemini
...
### Consensus Issues
Issues flagged by 2+ reviewers (high confidence):
- file.py:42 — SQL injection / unsafe query (Claude, Codex)
### Reviewer Disagreements
Items where reviewers differ (needs human judgment):
- ...
Aggregation caveat: Claude/Gemini review the exact diff provided in the prompt. Codex reviews the diff as determined by
--base/--uncommitted. If the working tree has changed since the diff was collected, the change sets may differ. Run the review promptly after collecting the diff.
If the user requests, store the review summary via memory_store.
.env, secrets, or credential files to external CLIs.API_KEY, SECRET, TOKEN, PASSWORD from diffs.# Review current changes with all available CLIs (root agent reads and follows)
skill_execute("code-review")
# then: "Review my staged changes"
# Review with specific focus
skill_execute("code-review")
# then: "Security review of changes on feature/auth branch using Claude and Gemini"