/ai-review:review-commitsfrom ai-review
Opens existing commits, commit ranges, or branch diffs in the ai-review desktop app for human review. Handles specific commits, ranges, branch diffs, and gg stacks.
Ships in ai-review. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Open specific commits or a commit range in ai-review so the human can review existing changes. Useful for understanding history, reviewing someone else's work, or getting context on past changes.
Determine what to review. Based on what was requested, pick the right air invocation:
a. A specific commit:
air --wait --json --commit <commit-hash>
b. A range of commits (e.g., "last 3 commits", "commits since Tuesday"):
Determine the range. For the last N commits, find the Nth parent: git rev-parse HEAD~N. Run:
air --wait --json --commits <start-hash>..<end-hash>
c. A branch diff (e.g., "what changed on feature-x"):
air --wait --json --branch <base-branch>
d. The current gg stack — when on a branch matching the user/name pattern (no -- in name) and .git/gg/config.json exists:
Read the gg base branch from config (parse defaults.base, fall back to main). Run:
air --wait --json --commits <gg-base>..HEAD
This shows the full stack diff, matching what ai-review displays when opening a gg stack.
The air --wait --json command opens the ai-review desktop app and blocks until the human submits. The output is structured JSON.
Handle the response.
If the human submitted comments: Parse the JSON feedback. The output has the shape:
{
"format": "ai-review.feedback/v1",
"context": { "mode": "...", ... },
"comments": [
{ "id": "...", "file": "...", "startLine": 10, "endLine": 12, "side": "old|new", "text": "...", "createdAt": "..." }
]
}
Present the comments to the user. If the comments suggest code changes and the commits are on the current branch, offer to make the changes.
If the human submitted with no comments: (empty comments array) Acknowledge and move on.
air is not found, tell the user to install via brew install --cask mrmans0n/tap/ai-review (macOS) or build from source at https://github.com/mrmans0n/ai-review.git log --oneline -10).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub mrmans0n/ai-review --plugin ai-review4 skills in this plugin
/browse-diffOpen the ai-review desktop app to visually browse a diff. Use when the user wants to see changes in a visual diff viewer without a review feedback loop — just for viewing./human-reviewRequest human code review via the ai-review desktop app. Use when code changes are complete and ready for a final human review before committing or merging. Opens an interactive diff viewer where the human can leave inline comments, then returns their feedback./show-changesPresent completed work to the human for optional review via the ai-review desktop app. Use when you've finished a task and want the human to see what you did — they can optionally leave feedback.