AgentSkillsCN

local-reviewer

在提交代码前,利用Git diff功能获取暂存文件的差异信息,供AI代码评审使用。

SKILL.md
--- frontmatter
name: local-reviewer
description: Retrieves git diff of staged files for pre-commit AI code review.
status: implemented

Local Reviewer Skill

Retrieves the git diff of staged files to allow the AI to perform a code review before committing.

Usage

bash
# 1. Stage your changes
git add .

# 2. Run the reviewer
node local-reviewer/scripts/review.cjs

Knowledge Protocol

  • This skill adheres to the knowledge/orchestration/knowledge-protocol.md. It automatically integrates Public, Confidential (Company/Client), and Personal knowledge tiers, prioritizing the most specific secrets while ensuring no leaks to public outputs.