Final self-check before responding: ensure output starts with ## Summary and includes only Summary, Changes, Tests, and Notes.
Final self-check for Changes: never mix Style A and Style B in the same output.
1---2name: pr-change-summary3description: pr-change-summary4---5# pr-change-summary67## Purpose8Generate a clear PR change summary from the current working branch against `main` or `master`.910## When to Use11- User asks to summarize PR changes.12- User wants release/review notes for the current branch.1314## Inputs15- Current git branch.16- Optional context: ticket link, acceptance criteria, test notes.1718## Workflow191. Detect base branch:20 - Prefer `main` if it exists.21 - Fallback to `master` if `main` does not exist.222. Determine comparison range:23 - Use merge-base to avoid including unrelated base-branch commits.24 - Range should be `$(git merge-base HEAD <base>)..HEAD`.253. Gather change data:26 - Changed files: `git diff --name-status <range>`.27 - Commit list: `git log --oneline <range>`.28 - Diff details: `git diff --stat <range>` and targeted hunks when needed.294. Group changes by concern:30 - Feature/behavior changes.31 - Bug fixes.32 - Refactors/internal cleanups.33 - Tests/docs/config changes.34 - Detect project shape:35 - Multi-component repo (for example backend + frontend + admin + migrations).36 - Single-component repo (for example frontend only).375. Produce a concise PR summary using the output format below.3839## Output40- Return a single copy-paste-ready markdown block only.41- Do not include any text before or after the markdown block.42- Use exactly these 4 sections in this order:4344```md45## Summary46<1 short paragraph on what changed and why>4748## Changes49<Choose one style based on repo shape>5051<Style A: multi-component repo>52### Backend (`<path>`)53- <change>54- <change>5556### Frontend (`<path>`)57- <change>58- <change>5960### Admin (`<path>`)61- <change>62- <change>6364### Migration (`<path or id>`)65- <change>6667<Style B: single-component repo>68### Feature: <feature name> (`<path>`)69- <change>70- <change>7172### Page: <page/screen name> (`<path>`)73- <change>74- <change>7576### Service: <service/module name> (`<path>`)77- <change>78- <change>7980## Tests81- <test updates made>82- Verified with: `<command>` (<result>)8384## Notes85- <important rollout/migration/risk note>86```8788- Keep it factual and grounded in the diff only.89- Keep section headers exactly as shown for consistent GitHub PR formatting.90- In `Changes`, use only one style:91 - Style A for multi-component repos.92 - Style B for single-component repos.93- Include only subsections that exist in the actual changes.94- If a required section has no content, keep it and write `- None.`.9596## Guardrails97- Never invent behavior not present in commits/diff.98- Explicitly call out missing tests or unclear intent.99- If both `main` and `master` are missing, stop and ask user which base branch to compare against.100- Do not wrap the final markdown in triple backticks unless user explicitly asks for a fenced block.101- Forbidden headings/sections: `Scope`, `Commits`, `Changed files`, `Files changed`, `Range`, `Base`, `Behavior Matrix`, `Validation`, `Risks / Follow-ups`, `What changed`.102- Final self-check before responding: ensure output starts with `## Summary` and includes only `Summary`, `Changes`, `Tests`, and `Notes`.103- Final self-check for `Changes`: never mix Style A and Style B in the same output.
Run npx skillmds@latest add jackkee97/pr-change-summary in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
pr-change-summary It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. Capability flags: docs only. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
jackkee97 (@jackkee97) published this skill. Their other Agent Skills are listed on their SkillMD profile.