跳到正文
FunCoding

pr-summarizer

Use when opening a PR — produces a clean PR description (what / why / how to verify / risks) from a branch diff against base.

Star
564
许可证
MIT
最近提交
2026年6月30日

skills/catalog/pr-summarizer/SKILL.md

在 GitHub 上查看

PR Summarizer

When to use

  • Just before opening a PR
  • After force-pushing a substantive update to an existing PR (refresh description)

When NOT to use

  • Drafts the user is still iterating on (the summary will go stale immediately)
  • Massive diffs (> 1000 lines) — ask the user to scope first

Inputs

NameTypeRequiredNotes
basestringnodefault origin/main
branchstringnodefault current HEAD

Outputs

A markdown PR body with sections: Summary, Why, How tested, Risks, Linked.

Workflow

  1. git diff <base>...HEAD --stat and git log <base>..HEAD --oneline to see scope
  2. git diff <base>...HEAD for content
  3. Group changes by area (one bullet per logical concern, not per file)
  4. Pull "why" from commit messages + linked tickets if mentioned
  5. Identify test artifacts touched; surface as How tested (or flag if none)
  6. Risks: any High-risk paths touched? auth, billing, migrations? mention.
  7. Linked: parse Fixes # / Refs # from commits

References

Success criteria

  • Description ≤ 25 lines
  • Every "why" claim is supported by a commit message or visible in the diff
  • Risks section honest about unknowns ("untested in production data shape")

Failure modes

  • No commit messages worth quoting → "Why" sourced from diff only; flag this
  • Diff touches secrets / .env* → STOP and surface; PR shouldn't include them

相似的 Skill

rea-ci-tests-audit

MOmorluto/rea486k近 7 天新增 8,943 个 star

rea-changelog-update

MOmorluto/rea486k近 7 天新增 8,943 个 star

wizard

MAmattpocock/skills337k近 7 天新增 4,978 个 star

pr

MAmattpocock/skills337k近 7 天新增 4,978 个 star

triage

MAmattpocock/skills337k近 7 天新增 4,978 个 star

精选

git-guardrails-claude-code

阻止危险的 git 命令,避免误推、误删分支。

MAmattpocock/skills337k近 7 天新增 4,978 个 star