AgentSkillsCN

pr-summary

在审查 PR 时,结合上下文、影响分析与评审建议,对 PR 的改动进行总结与归纳。当您需要评审 PR、熟悉 PR 内容,或准备发布说明时,可使用此技能。

SKILL.md
--- frontmatter
name: pr-summary
description: Summarizes pull request changes with context, impact analysis, and review guidance. Use when reviewing PRs, onboarding to a PR, or preparing release notes.
context: fork
agent: Explore
allowed-tools: Bash(gh *)

Pull request context

  • PR metadata: !gh pr view --json title,body,author,baseRefName,headRefName,additions,deletions,changedFiles
  • PR diff: !gh pr diff
  • PR comments: !gh pr view --comments
  • Changed files: !gh pr diff --name-only

Your task

Analyze this pull request and provide a comprehensive summary:

1. Overview

  • What is this PR trying to accomplish?
  • What problem does it solve or feature does it add?

2. Changes breakdown

  • Group changes by category (e.g., features, fixes, refactoring, tests, docs)
  • Highlight the most significant changes
  • Note any deleted or deprecated code

3. Impact analysis

  • What parts of the codebase are affected?
  • Are there any breaking changes?
  • What dependencies or downstream systems might be impacted?

4. Review guidance

  • What areas deserve the closest review?
  • Are there any potential concerns or risks?
  • What tests or validations should be performed?

5. One-line summary

  • Provide a concise summary suitable for release notes or changelog

Keep the summary scannable with bullet points. Focus on the "why" and "what", not just listing files changed.