/ase-repo-review
Perform a holistic, human-reviewer-style critique of the currently staged Git changes (or, with `--unstaged`, of the unstaged and untracked changes, with `--branch`, of a branch against its base, or, with `--commit`, of a single commit) and emit an approve/reject verdict with
Claude Code
$ npx -y skills add rse/ase --skill ase-repo-review --agent claude-code
Codex
$ npx skills add rse/ase --skill ase-repo-review -a codex -y
Cursor
$ npx skills add rse/ase --skill ase-repo-review -a cursor -y
Gemini CLI
$ npx skills add rse/ase --skill ase-repo-review -a gemini-cli -y
GitHub Copilot
$ npx skills add rse/ase --skill ase-repo-review -a github-copilot -y
OpenCode
$ npx skills add rse/ase --skill ase-repo-review -a opencode -y
Windsurf
$ npx skills add rse/ase --skill ase-repo-review -a windsurf -y
SKILL.md
ase-repo-review.SKILL.mdname: ase-repo-review
argument-hint: "[--help|-h] [--auto|-a] [--severity|-S=(AUTO|LOW|MEDIUM|HIGH)] [--thorough|-t] [--staged] [--unstaged] [--worktree|-w <name>] [--branch|-b <branch>] [--commit|-c <commit>]"
description: >
Perform a holistic, human-reviewer-style critique of the currently
staged Git changes (or, with `--unstaged`, of the unstaged and
untracked changes, with `--branch`, of a branch against its base,
or, with `--commit`, of a single commit) and emit an approve/reject verdict
with prioritized, severity-tagged, line-cited findings (with `--auto`
fixed automatically). Use when the
user wants the staged diff, a branch, or a commit "reviewed",
"critiqued", or "code-reviewed".
user-invocable: true
disable-model-invocation: false
effort: high
allowed-tools:
- "Bash(git diff *)"
- "Bash(git ls-files *)"
- "Bash(git rev-parse *)"
- "Bash(git for-each-ref *)"
- "Bash(git rev-list *)"
- "Bash(git merge-base *)"
- "Bash(git branch *)"
- "Bash(git worktree list *)"
- "Bash(git show *)"
- "Bash(git -C *)"
- "Agent"@${CLAUDE_SKILL_DIR}/../../meta/ase-control.md @${CLAUDE_SKILL_DIR}/../../meta/ase-skill.md @${CLAUDE_SKILL_DIR}/../../meta/ase-getopt.md
<purpose name="ase-repo-review"> Review Changes </purpose>
<expand name="getopt" arg1="ase-repo-review" arg2="--auto|-a --severity|-S=(AUTO|LOW|MEDIUM|HIGH) --thorough|-t --staged --unstaged --worktree|-w= --branch|-b= --commit|-c="> $ARGUMENTS </expand>
<objective> Review the currently staged (and/or unstaged) Git changes, the changes of a branch against its base, or a single commit the way an *experienced human reviewer* would - judging them *holistically* against the change's *own intent* and against *correctness*, *design fit*, *clarity*, *robustness*, *propagation*, freedom of *residue*, and *project-convention conformance* - and emit a single *approve / request-changes verdict* backed by *prioritized*, *severity-tagged*, *line-cited* findings. This is a *synthesizing critique*, not a mechanical scan: it complements `ase-code-lint` (mechanical quality), `ase-code-analyze` (logic/semantics), and `ase-repo-diff` (intent narrative and risk). </objective>
Procedure ---------
<flow>
1. <step id="STEP 1: Determine Change Set">
1. <if condition="<getopt-option-commit/> is not empty and (<getopt-option-branch/> is not empty or <getopt-option-staged/> is equal `true` or <getopt-option-unstaged/> is equal `true`)"> Only output the following <template/> and then *STOP* immediately:
<template> ⧉ **ASE**: ✪ skill: **ase-repo-review**, ▶ ERROR: option `--commit` cannot be combined with `--branch`, `--staged`, or `--unstaged` </template> </if>
<if condition="<getopt-option-worktree/> is not empty and (<getopt-option-branch/> is not empty or <getopt-option-commit/> is not empty)"> Only output the following <template/> and then *STOP* immediately:
<template> ⧉ **ASE**: ✪ skill: **ase-repo-review**, ▶ ERROR: option `--worktree` cannot be combined with `--branch` or `--commit` </template> </if>
Set <worktree-dir></worktree-dir> (empty).
<if condition="<getopt-option-worktree/> is not empty"> Determine the directory of this existing ASE worktree: if <getopt-option-worktree/> consists of other characters than `A-Z`, `a-z`, `0-9`, `_`, and `-`, keep <worktree-dir/> empty, else call the `ase_worktree_path(id: "<getopt-option-worktree/>", create: false)` tool of the `ase` MCP server (you *MUST* *NEVER* assemble this path yourself), capture its result into <worktree-dir/>, and run the command `git -C "<worktree-dir/>" rev-parse --show-toplevel` (taken exactly as given). If <worktree-dir/> is empty, the tool call failed, or the command failed (i.e., the worktree does not exist), only output the following <template/> and then *STOP* immediately:
<template> ⧉ **ASE**: ✪ skill: **ase-repo-review**, ▶ ERROR: no worktree **<getopt-option-worktree/>** to review </template> </if>
Set <changes/> to the *uncommitted* changes to review: to `staged and unstaged` if both <getopt-option-staged/> and <getopt-option-unstaged/> are equal `true`, to `staged` if only <getopt-option-staged/> is equal `true`, to `unstaged` if only <getopt-option-unstaged/> is equal `true`, and to empty otherwise. Here, the `unstaged` changes always include the *untracked* files.
2. <if condition="<getopt-option-branch/> is not empty"> Determine the *base* of the branch:
1. Check that <getopt-option-branch/> matches the regexp `^[A-Za-z0-9_@][A-Za-z0-9._/+@-]*$`, which keeps it safe for being passed quoted to the `git` commands, and only then run the command `git rev-parse --verify --quiet "<getopt-option-branch/>^{commit}"`. If the check or the command fails, only output the following <template/> and then *STOP* immediately:
<template> ⧉ **ASE**: ✪ skill: **ase-repo-review**, ▶ ERROR: branch **<getopt-option-branch/>** does not exist </template>
2. Determine the *candidate base branches* by running the command `git for-each-ref --format="%(refname:short)" refs/heads/` (taken exactly as given), excluding <getopt-option-branch/> itself. For each <candidate/>, run the command `git rev-list --count "<candidate/>..<getopt-option-branch/>"` to count the commits of the branch since its fork point from <candidate/>, and *drop* every candidate with a count of `0`, as it already contains the branch. Set <base/> to the remaining candidate with the *smallest* count (the *nearest*
Read more
name: ase-repo-review
argument-hint: "[--help|-h] [--auto|-a] [--severity|-S=(AUTO|LOW|MEDIUM|HIGH)] [--thorough|-t] [--staged] [--unstaged] [--worktree|-w <name>] [--branch|-b <branch>] [--commit|-c <commit>]"
description: >
Perform a holistic, human-reviewer-style critique of the currently
staged Git changes (or, with `--unstaged`, of the unstaged and
untracked changes, with `--branch`, of a branch against its base,
or, with `--commit`, of a single commit) and emit an approve/reject verdict
with prioritized, severity-tagged, line-cited findings (with `--auto`
fixed automatically). Use when the
user wants the staged diff, a branch, or a commit "reviewed",
"critiqued", or "code-reviewed".
user-invocable: true
disable-model-invocation: false
effort: high
allowed-tools:
- "Bash(git diff *)"
- "Bash(git ls-files *)"
- "Bash(git rev-parse *)"
- "Bash(git for-each-ref *)"
- "Bash(git rev-list *)"
- "Bash(git merge-base *)"
- "Bash(git branch *)"
- "Bash(git worktree list *)"
- "Bash(git show *)"
- "Bash(git -C *)"
- "Agent"@${CLAUDE_SKILL_DIR}/../../meta/ase-control.md @${CLAUDE_SKILL_DIR}/../../meta/ase-skill.md @${CLAUDE_SKILL_DIR}/../../meta/ase-getopt.md
<purpose name="ase-repo-review"> Review Changes </purpose>
<expand name="getopt" arg1="ase-repo-review" arg2="--auto|-a --severity|-S=(AUTO|LOW|MEDIUM|HIGH) --thorough|-t --staged --unstaged --worktree|-w= --branch|-b= --commit|-c="> $ARGUMENTS </expand>
<objective> Review the currently staged (and/or unstaged) Git changes, the changes of a branch against its base, or a single commit the way an *experienced human reviewer* would - judging them *holistically* against the change's *own intent* and against *correctness*, *design fit*, *clarity*, *robustness*, *propagation*, freedom of *residue*, and *project-convention conformance* - and emit a single *approve / request-changes verdict* backed by *prioritized*, *severity-tagged*, *line-cited* findings. This is a *synthesizing critique*, not a mechanical scan: it complements `ase-code-lint` (mechanical quality), `ase-code-analyze` (logic/semantics), and `ase-repo-diff` (intent narrative and risk). </objective>
Procedure ---------
<flow>
1. <step id="STEP 1: Determine Change Set">
1. <if condition="<getopt-option-commit/> is not empty and (<getopt-option-branch/> is not empty or <getopt-option-staged/> is equal `true` or <getopt-option-unstaged/> is equal `true`)"> Only output the following <template/> and then *STOP* immediately:
<template> ⧉ **ASE**: ✪ skill: **ase-repo-review**, ▶ ERROR: option `--commit` cannot be combined with `--branch`, `--staged`, or `--unstaged` </template> </if>
<if condition="<getopt-option-worktree/> is not empty and (<getopt-option-branch/> is not empty or <getopt-option-commit/> is not empty)"> Only output the following <template/> and then *STOP* immediately:
<template> ⧉ **ASE**: ✪ skill: **ase-repo-review**, ▶ ERROR: option `--worktree` cannot be combined with `--branch` or `--commit` </template> </if>
Set <worktree-dir></worktree-dir> (empty).
<if condition="<getopt-option-worktree/> is not empty"> Determine the directory of this existing ASE worktree: if <getopt-option-worktree/> consists of other characters than `A-Z`, `a-z`, `0-9`, `_`, and `-`, keep <worktree-dir/> empty, else call the `ase_worktree_path(id: "<getopt-option-worktree/>", create: false)` tool of the `ase` MCP server (you *MUST* *NEVER* assemble this path yourself), capture its result into <worktree-dir/>, and run the command `git -C "<worktree-dir/>" rev-parse --show-toplevel` (taken exactly as given). If <worktree-dir/> is empty, the tool call failed, or the command failed (i.e., the worktree does not exist), only output the following <template/> and then *STOP* immediately:
<template> ⧉ **ASE**: ✪ skill: **ase-repo-review**, ▶ ERROR: no worktree **<getopt-option-worktree/>** to review </template> </if>
Set <changes/> to the *uncommitted* changes to review: to `staged and unstaged` if both <getopt-option-staged/> and <getopt-option-unstaged/> are equal `true`, to `staged` if only <getopt-option-staged/> is equal `true`, to `unstaged` if only <getopt-option-unstaged/> is equal `true`, and to empty otherwise. Here, the `unstaged` changes always include the *untracked* files.
2. <if condition="<getopt-option-branch/> is not empty"> Determine the *base* of the branch:
1. Check that <getopt-option-branch/> matches the regexp `^[A-Za-z0-9_@][A-Za-z0-9._/+@-]*$`, which keeps it safe for being passed quoted to the `git` commands, and only then run the command `git rev-parse --verify --quiet "<getopt-option-branch/>^{commit}"`. If the check or the command fails, only output the following <template/> and then *STOP* immediately:
<template> ⧉ **ASE**: ✪ skill: **ase-repo-review**, ▶ ERROR: branch **<getopt-option-branch/>** does not exist </template>
2. Determine the *candidate base branches* by running the command `git for-each-ref --format="%(refname:short)" refs/heads/` (taken exactly as given), excluding <getopt-option-branch/> itself. For each <candidate/>, run the command `git rev-list --count "<candidate/>..<getopt-option-branch/>"` to count the commits of the branch since its fork point from <candidate/>, and *drop* every candidate with a count of `0`, as it already contains the branch. Set <base/> to the remaining candidate with the *smallest* count (the *nearest*
Other skills on ase.
More skills from other plugins.
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
ask-matt
Ask which skill or flow fits your situation. A router over the skills in this repo.
Questions about ase-repo-review.
- Which coding agents can use ase-repo-review?
- ase-repo-review installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.

