Skip to content
Agentmart
Submit a tool

code-review

Send git diffs to external AI CLIs (Claude, Codex, Gemini) for code review and aggregate findings.

Skill by pome223

IndexedMIT★ 3
Write a review

Chalk Labs

Need help deploying code-review?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/pome223-code-review-8a09d6

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Send git diffs to external AI CLIs (Claude, Codex, Gemini) for code review and aggregate findings.

Use cases: agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/code-review

What's inside

Skill name
code-review
Description
Send git diffs to external AI CLIs (Claude, Codex, Gemini) for code review and aggregate findings.
License
MIT
Instructions
157 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Code Review Skill

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.

## Runtime Requirements

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_spawn` creates dynamic agents with MCP toolsets only, which
> do not include `run_shell` or `write_file`. Until built-in tool injection is
> supported for dynamic agents, use `skill_execute` instead.

## Supported External CLIs

| 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 |

## Utility Script

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.

```bash
# 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
```

## Workflow

### 1. Collect the Diff

Determine the review scope via `run_shell`:

```bash
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.

### 2. Prepare the Review Prompt

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.

### 3. Send to External AI CLIs

Each CLI handles the diff differently:

**Claude / Gemini** — receive the full diff via stdin through the utility:

```bash
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:

```bash
# 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.

### 4. Aggregate Results

Compile results into a unified report:

```markdown
## 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

From pome223/boiled-claw-public, MIT.

More from pome223/boiled-claw-public

Signals

Stars
3
Forks
0
Open issues
0
Last commit (this folder)
Mar 25, 2026 (7 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from pome223

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get code-review running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying code-review?

CallGet help
Cite this page

code-review skill. Agent Mart. https://agentmart.dev/skills/pome223-code-review-8a09d6 (last updated 2026-10-24)