AgentSkillsCN

pr-summary

根据分支与主干的差异,自动生成 PR 标题与描述。适用于被要求提供 PR 概要或 PR 描述时使用。

SKILL.md
--- frontmatter
name: pr-summary
description: "Generate a PR title and description from the branch diff vs main. Use when asked for a PR summary or PR description."

PR Summary

Workflow

  • Fetch origin if needed and compute merge base: base=$(git merge-base HEAD origin/main).
  • Review git diff --stat $base and key file diffs.
  • Draft a PR title and short body that explain what changed and why.
  • Include tests run or targeted test recommendations and any risks.