AGENT SKILL

review

Run a read-only subagent review of the current branch diff against main or master.

License 许可
MIT
最近更新
2026-11-10
Stars
★ 0
Forks
0

01 前言 Front Matter

name
review
description
Run a read-only subagent review of the current branch diff against main or master.
disable-model-invocation
true

03 SKILL.md 正文

Review the current branch

Delegate the review to one read-only child. Follow the subagent skill for the parent/child boundary, model selection, tool restrictions, invocation, cleanup, and failure reporting. Treat caller arguments as additional review instructions or model preferences; the user's explicit choices win.

Review scope

Ask the child to:

  1. Find the base branch in this order: main, origin/main, master, then origin/master.
  2. If none exists, report that clearly and stop.
  3. Review only the current branch changes from the merge-base diff, equivalent to git diff <base>...HEAD. Inspect surrounding code only when needed to judge those changes.
  4. Use read-only inspection commands. Do not modify files or run builds or tests.
  5. Check for bugs and logic errors, security issues, error-handling gaps, and regressions or compatibility problems introduced by the diff.
  6. Prioritize actionable findings over style comments. Include file paths and line numbers where possible. Say explicitly when there are no findings.

Report

Return the child's findings under these headings:

Files reviewed

Critical (must fix)

Warnings (should fix)

Suggestions (consider)

Summary

Omit empty severity sections. Keep the summary to two or three sentences.

04 同仓库更多 Skills