AgentSkillsCN

code-review

对代码变更进行质量审核。当用户说“帮我看看我的改动”、“审阅一下差异”、“检查一下我的代码”、“排查一下潜在问题”、“做一次常规检查”,或希望寻找代码漏洞、空白点,或发掘简化机会时,可使用此技能。

SKILL.md
--- frontmatter
name: code-review
description: Reviews code changes for quality issues. Use when user says "review my changes", "review the diff", "review my code", "check for issues", "sanity check", or asks to find holes, gaps, or simplification opportunities.

Code Review

Review uncommitted changes against the checklist.

Steps

  1. Get changes: git diff and git diff --cached
  2. Apply checklist from checklist.md
  3. Report issues with file:line references

Output Format

For each issue:

  • file:line - Issue description
  • Severity: MUST FIX | SHOULD FIX | CONSIDER

If no issues found, confirm the code looks solid.