AgentSkillsCN

review-changes

对近期仓库的变更进行审查,重点关注正确性、安全性、性能、可维护性,以及是否遗漏测试。适用于用户要求进行代码审查、提交审查,或在合并前进行质量评估时使用。

SKILL.md
--- frontmatter
name: review-changes
description: Review recent repository changes for correctness, security, performance, maintainability, and missing tests. Use when the user asks for a code review, review of commits, or quality assessment before merge.

Review Changes

Perform a practical review focused on high-impact issues first.

Inputs to inspect

  • git log --oneline -10 --graph --decorate
  • git status --porcelain
  • git diff --cached --stat
  • git diff --stat
  • git diff HEAD~5..HEAD --name-only

Review priorities

  1. Correctness and regressions
  2. Security and secret exposure
  3. Performance risks
  4. Maintainability and architecture fit
  5. Testing and documentation gaps

Output format

Provide findings first, ordered by severity:

  • Critical
  • Major
  • Minor

For each finding, include:

  • Why it matters
  • Concrete fix guidance
  • File reference

If no issues are found, state that explicitly and note residual risks.