AgentSkillsCN

git-review

在提交前审查未提交的变更,查找潜在问题、遗漏事项以及优化建议。当您在提交前进行审查,或当用户请求检查其工作成果时,此功能将助您事半功倍。

SKILL.md
--- frontmatter
name: git-review
description: Review uncommitted changes for issues, missed items, and improvements. Use when reviewing before commit or when user asks to check their work.
argument-hint: [range]
disable-model-invocation: true

Review the git diff and identify:

  1. Missed items: Incomplete implementations, forgotten edge cases, TODOs
  2. Issues: Bugs, security concerns, inconsistencies with existing patterns
  3. Improvements: Clarity, performance, maintainability
  4. Cleanup: Debug code, commented-out code, unnecessary changes

Changes

!git diff $ARGUMENTS

!git diff --cached

Provide a concise, actionable summary. If everything looks good, say so briefly.