跳到主要内容
知仓学习社ZHICANG

pr-description-live

Write a PR description grounded in the REAL diff — read the branch's actual changes via the GitHub connector, not a template the user fills in. Use …

不碰外部(只输出文字)无严重或高危命中mohitagw15856/pm-claude-skills

它会碰到什么

扫了多少1 个文本文件,4 KB
它会碰到什么不碰外部(只输出文字)
命中总数0 处
命中统计严重 0 · 高 0 · 中 0 · 低 0

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

PR Description (Live)

A good PR description is written from the diff, not from memory — memory forgets the file you touched at 2am. In Claude Cowork this skill reads the actual changes on the branch and writes the description grounded in them, so the reviewer gets an accurate map of what moved and why.

What This Skill Produces

  • The PR description — summary, the changes grouped by area, how it was tested, and the risk/rollout — all derived from the real diff
  • Template-matched output — if the repo has a PR template, the body fills its sections; otherwise a clean default
  • The reviewer's map — the one or two files/decisions that deserve the closest look

Required Inputs

Ask for these if not provided:

  • The branch/PR — the branch name or PR number, and the base it targets
  • The why — the issue/ticket or one line of intent (the diff shows what, not always why)
  • Audience — internal team vs open-source contributors — tone and detail follow

Framework: A Description a Reviewer Trusts

  1. Summary — what this PR does and why, in two or three lines.
  2. Changes, grouped — by area/feature, not a raw file list; each with its purpose.
  3. Testing — what was run/added and what a reviewer should verify.
  4. Risk & rollout — what could break, migrations, flags, and how to back out.
  5. Reviewer's attention — the load-bearing change to look at first.

Execution (Cowork)

  1. Read the diff — via the GitHub connector, fetch the branch's commits and the full diff against base. Read the actual changes, not just commit messages.
  2. Derive the story — from the diff, work out what changed by area and infer intent; combine with the user's stated why. Flag anything the diff does that the stated intent doesn't explain.
  3. Match the template — check for .github/pull_request_template.md; if present, fill its sections; else use the default structure above.
  4. Write the description — grounded in the diff, no invented changes; call out migrations, new deps, and breaking changes found in the code.
  5. Emit the artifact — the ready-to-paste body; offer to set it on the PR via the connector, but only on request.

Guardrails: describe only what the diff actually contains — never list a change that isn't there; surface diff-vs-intent mismatches instead of hiding them; don't push/update the PR without explicit approval; if the connector is unauthorised, work from a pasted diff and say the branch couldn't be read.

Output Format

A PR Description (or the repo template, filled):

Summary

what & why — 2–3 lines

Changes

  • [area] — what changed and why

Testing

  • what was run/added · what the reviewer should verify

Risk & rollout

  • breaking changes / migrations / flags / back-out

Look here first

  • [file/decision] — why it's load-bearing

Quality Checks

  • [ ] Every listed change appears in the actual diff
  • [ ] Changes the diff makes that intent didn't explain are flagged
  • [ ] Migrations / new deps / breaking changes from the code are called out
  • [ ] The repo's PR template is used when present
  • [ ] Nothing was pushed to the PR without approval

Anti-Patterns

  • Describing intended changes that aren't in the diff.
  • A raw file list instead of grouped, purposeful changes.
  • Ignoring the repo's PR template.
  • Silently updating the PR without being asked.

Example Trigger Phrases

  • "Write the PR description from my branch in Cowork."
  • "Describe this pull request from the actual diff."
  • "Draft the PR body against main and match our template."
  • "Document these changes for reviewers — read the diff first."

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。

同名技能的其他版本

有 3 个不同仓库或目录里都有叫 pr-description-live 的技能。它们内容并不相同,别混用: