AgentSkillsCN

review-pr

审查Pull Request,评估代码质量、安全性、正确性,以及是否严格遵循关联议题的要求。

SKILL.md
--- frontmatter
name: review-pr
description: Review a pull request for code quality, security, correctness, and adherence to its linked issue requirements.
disable-model-invocation: true
context: fork
agent: reviewer

Review PR

Review a pull request for quality and correctness.

Input

PR number: $ARGUMENTS

Steps

  1. Get the PR diff: gh pr diff $ARGUMENTS
  2. Get the PR description: gh pr view $ARGUMENTS --json title,body
  3. If the PR references a GitHub issue, read it for acceptance criteria
  4. Review the changed files in their full context
  5. Evaluate: correctness, bugs, security, code quality, maintainability
  6. Output either APPROVED - [reason] or CONCERNS - [specific issues]

Output

A review verdict: APPROVED or CONCERNS with brief reasoning (2-3 sentences max).