Generates a local Markdown review prompt for Git changes in the same working tree. Supports committed ranges, staged, unstaged, untracked, or all uncommitted changes. Persists prompts with branch-aware naming and expiration.
Ships in adonis-skills. 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.
Read when SKILL.md points to them; scripts run unread.
Generate one authoritative Markdown review prompt inside the current repository. Treat the shared working tree as the only source of reviewed code; never duplicate changes into delivery artifacts.
Run:
git rev-parse --show-toplevel
git rev-parse --abbrev-ref HEAD
git rev-parse HEAD
git status --short
Map the request to exactly one scope:
| User intent | Canonical scope | Includes | Excludes |
|---|---|---|---|
| current/local/all uncommitted changes | all-uncommitted | staged + unstaged tracked + untracked | nothing |
| staged only | staged-only | index changes | unstaged + untracked |
| unstaged only | unstaged-only | tracked working tree relative to index | staged + untracked |
| untracked only | untracked-only | git ls-files --others --exclude-standard | tracked changes |
| branch or commits | ref-range | resolved requested refs | other working-tree state |
Use the user's explicit scope without another confirmation. Ask only when different interpretations materially change the reviewed files. Do not fold untracked files into unstaged-only.
This skill requires the receiver to read the same repository and working tree. If that premise is false, stop because the requested delivery mode is unsupported.
Use read-only evidence:
| Scope | Commands |
|---|---|
all-uncommitted | git diff --cached --stat, git diff --cached, git diff --stat, git diff, git ls-files --others --exclude-standard |
staged-only | git diff --cached --stat, git diff --cached --name-status, git diff --cached |
unstaged-only | git diff --stat, git diff --name-status, git diff |
untracked-only | git ls-files --others --exclude-standard, then read each in-scope file |
| branch range | git log --oneline "$base".."$head", git diff --find-renames "$base"..."$head" --stat, full diff |
| commits | git show --find-renames --stat "$sha" and full show for every resolved SHA |
Untracked nested Git repositories and other non-file, non-symlink entries are unsupported: the writer and freshness check stop with a relative-path error. Define a separate explicit review scope for a nested repository; do not silently omit it or recursively read its contents. This does not affect scopes such as staged-only that exclude untracked entries.
If the selected scope is empty, stop without writing a prompt. Build an evidence-backed inventory with repository-relative paths, Git status, and concrete changes. Include rename, delete, binary, mode, and public-contract changes; do not invent intent.
Before writing repository paths, summaries, logs, remotes, or background into the prompt, inspect the material for credentials, private keys, tokens, cookies, .env values, credential-bearing URLs, internal addresses, personal data, and other content the receiver should not receive.
Shared-worktree access does not weaken this gate.
Write the central claim as a target the reviewer must try to disprove. Label only user-supplied intent as 用户声明的待验证目标; do not add inferred guarantees to that claim. Put additional evidence-based hypotheses and safety checks under review focus, clearly as reviewer checks. If diff evidence conflicts with the claim, report the conflict before composing the prompt.
Read applicable AGENTS.md, repository docs, package scripts, and CI configuration to find exact test, lint, typecheck, or build commands. Record commands and observable expected results; do not run them or claim they pass. Omit the checks section when reliable commands cannot be established, and state why.
Create this body with actual evidence. Include {{REVIEW_PROMPT_ID}}, {{SCOPE_DIGEST}}, and {{VERIFY_COMMAND}} exactly once each; the writer replaces them atomically.
Summarize changes in prose with repository-relative paths; do not paste source code or diff blocks into the prompt. The reviewer must read the current working tree through the scope checks above. Keep every user-included path in scope throughout the prompt. Discuss change-grouping concerns separately; do not ask the reviewer to exclude or reclassify explicitly included files as out of scope.
# 审核任务:<repository and change summary>
## 工作区与范围
仓库:`<absolute repository root>`
分支:`<actual branch>`
起始 HEAD:`<actual SHA>`
审核范围:`<canonical scope>`
明确排除:<actual exclusions>
生成时状态:
```text
<exact git status --short output>
```
生成时 scope digest:`{{SCOPE_DIGEST}}`
开始审核前先运行 writer 提供的只读 freshness check:
```bash
{{VERIFY_COMMAND}}
```
只有它返回 `status: fresh` 才继续。`legacy_prompt_has_no_scope_digest`、HEAD/branch 变化或 `scope_digest_mismatch` 都表示提示词已失效。随后运行:
```bash
git rev-parse --show-toplevel
git rev-parse HEAD
git status --short
```
仓库或 HEAD 不一致时,停止并报告提示词已失效。完整 `git status` 只是上下文,不是独立 freshness 门禁:若变化只发生在提示词明确排除的路径,且 writer 的 `--verify-prompt` 对所选 canonical scope 返回 `status: fresh`,提示词仍可继续。若状态变化改变了 scope membership、影响 in-scope 内容,或 verifier 返回非 fresh,则停止。无论状态路径是否相同,仍须读取当前完整 in-scope diff / untracked 内容并逐项核对;`scope_digest` 才是所选范围内容的新鲜度权威。
## 待验证目标
**用户声明的待验证目标:<falsifiable invariant>。请主动寻找反例。**
## 改动清单
1. `<repository-relative path>` — <Git status and evidence-backed change>
## 审核重点
- <counterexample and regression focus>
- <boundary, security, compatibility, or public-contract risks>
## 输出要求
审核结果第一行必须原样返回:
Review-Prompt-ID: `{{REVIEW_PROMPT_ID}}`
1. 给出总体结论:通过 / 有保留通过 / 阻塞。
2. 按严重程度列出发现,并附仓库相对路径、行号或 diff hunk 证据。
3. 对改动清单逐项标注核对结果。
4. 列出每条检查命令的实际结果;未运行时说明原因。
Only when step 4 establishes reliable repository commands, insert this section before output requirements:
## 检查命令
```bash
<exact repository-defined commands>
```
预期:<observable result; never claim it already passed>。
Otherwise omit the checks heading entirely and state the reason under review focus. Do not leave any other placeholder in the final body.
Locate this skill's directory, save the composed body to a repository-external temporary UTF-8 file with an available file-writing tool, then run:
python3 <skill-directory>/scripts/write_review_prompt.py \
--repo "$repo_root" \
--scope all-uncommitted \
--body-file "$temporary_body"
ref-range 还必须传已解析的 --base "$base_sha" --target "$target_sha";其他 scope 不传这两个参数。writer 按 scope 计算 canonical SHA-256:tracked/staged diff 使用 Git binary diff,相关 untracked 文件用 NUL-safe 路径、类型、mode 与原始内容 framing。禁止另写近似算法。
Use the canonical scope from step 1. The script:
$GIT_COMMON_DIR/info/exclude contains /.review-handoff/ without duplicates;.review-handoff/prompts/active/<branch_slug>/;branch_slug by lowercasing, replacing / and \ with -, replacing remaining non-[a-z0-9._-] runs with -, and trimming punctuation;YYYY-MM-DD_HH-mm-<scope_slug>.md names with collision suffixes;created_at and expires_at values with a 24-hour lifetime;format_version: 2 plus scope_digest / resolved range metadata, and provides a read-only --verify-prompt command using the same algorithm;Read the JSON result, delete the temporary body, then read the final prompt file completely. Verify its path, ID, scope, HEAD, expiration, required headings, and absence of unresolved tokens before reporting success.
Do not duplicate the full prompt in chat. Return only:
prompt_id, canonical scope, scope_digest, and expiration;When feedback returns, invoke agentic-review-handoff; it can resolve the echoed Review-Prompt-ID and validate findings against current code.
.review-handoff/.--verify-prompt to return fresh, then reconcile the current full scope diff with the inventory.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/adonis-skills:review-prompt-composerfrom adonis-skills
npx claudepluginhub adonis0123/adonis-skills --plugin adonis-skills34 skills in this plugin
/agent-dispatchPick the lightest agent setup for coding, review, drafting or design research: do it yourself, fan out 2-3 workers across local CLIs and accounts (Claude Code, Codex, Grok, Cursor), run a scoped architecture loop, or brief independent researchers; choose a cross-model reviewer and track dispatched work on a Run Board. Use when work may need delegation, or the user asks to dispatch, parallelize, run several agents or accounts, get another AI's review or independent design opinions, or check dispatched work. 中文触发:派活、并行、多开几个 agent、分给多个账号 / codex / grok、找另一个 AI 审、多方意见、派出的任务进行到哪了。Not for trivial edits, a single diff review (agentic-review-handoff) or the session list (sideby sessions); inside another named workflow, only size its workers./agentic-review-handoffValidate review findings, run auto Git review-fix-re-review loop, DecisionConsult, or DDD/cohesion review. Requires Git & review/consult intent./agent-practice-auditScore local coding-agent usage (Claude/Codex/Grok/WorkBuddy/agy) against official docs into HTML report. Triggers: agent 用法体检、实践评分. Never edits config./agent-skill-evaluationUse when comparing or trial-testing agent skills before installing — including GitHub/skills.sh URLs, 测试一下/值不值得装, package screening, and A/B artifact runs./agent-symlink-initInitialize or migrate agent-skill symlinks in any repository for Claude Code, Codex, Cursor, and Antigravity (agy) / Gemini setups. Use when a project needs `.claude/skills` linked to `.agents/skills`, `AGENTS.md` linked to `CLAUDE.md`, checks for `GEMINI.md` or `.agents/skills.json`, migration away from `.ruler`-based AI rules, or removal of legacy `sync-llm-skills` copy/sync setups. Trigger on requests about Claude, Codex, Cursor, or Antigravity (`agy`) / Gemini skill symlinks, AGENTS/CLAUDE/GEMINI rule links, `.claude/skills` setup, replacing copied skill folders with symlinks, or cleaning old ruler/sync automation./architecture-hardening-loopRun bounded architecture scan-triage-fix-review-rescan loop on explicit code scope until no evidence-backed DDD/cohesion fixes remain.Other plugins' skills for the same job