AgentSkillsCN

review-pr

对标记为“代理审核”的开放PR进行审查,并提交结构化的反馈意见。适用于在确认PR尚未被审核后,对其标注“代理审核”标签的情况。

SKILL.md
--- frontmatter
name: review-pr
description: Review an open pull request tagged for agent review and post structured feedback comments. Use for pull requests labelled with the agent-review label after confirming they are not already reviewed.
tools:
  - review_pull_request
user-invokable: true
version: 1.0.0

Review Pull Request

Purpose

Perform a structured first-pass code review on an open pull request, posting feedback comments to assist human reviewers and catch common issues early.

Instructions

  1. Confirm the PR number is not already in the processed-message log
  2. Post an acknowledgement comment: "Agent review started — feedback incoming shortly"
  3. Call review_pull_request with the repository and PR number
  4. The tool will post structured review comments covering:
    • Code correctness and logic errors
    • Potential bugs or edge cases not handled
    • Security considerations (e.g., input validation, injection risks)
    • Code quality and readability suggestions
    • Test coverage gaps (if tests are expected)
  5. Post an overall assessment:
    • If no significant issues found: approve or post clean-bill comment
    • If issues found: request changes with a summary of findings

Review Coverage

  • Must check: Logic errors, null safety, error handling, security concerns
  • Should check: Code style (per project conventions), test coverage, performance
  • Skip: Subjective style preferences not covered by the project's coding standards

Expected Output

The overall review verdict: "approved", "changes-requested", or "commented", with a count of issues found at each severity level.