File contents Create PR Summary
Generate a comprehensive pull request summary based on branch changes.
Instructions
Gather Context
Get current branch name
Find workflow folder for this branch
Read analysis.md and plan.md if they exist
Get associated issue number from branch name or commits
Analyze Changes
# All commits on this branch
git log main...HEAD --oneline
# Full diff
git diff main...HEAD --stat
# Changed files
git diff main...HEAD --name-only
Categorize Changes
New features added
Bugs fixed
Tests added/modified
Documentation updates
Refactoring
Generate Summary
Write to workflows/<folder>/pr_summary.md:
# PR: <title>
## Summary
<1-3 bullet points describing the key changes>
## Related Issues
- Resolves #<number>
- Relates to #<number>
## Changes
### Features
- <New feature 1>
- <New feature 2>
### Bug Fixes
- <Fix 1>
### Code Changes
| File | Change Type | Description |
|------|-------------|-------------|
| `path/to/file.go` | Modified | <brief description> |
| `path/to/new.go` | Added | <brief description> |
### Tests
- Added `TestXxx` - <what it tests>
- Added `TestYyy` - <what it tests>
### Documentation
- Updated `docs/xxx.md` - <what changed>
## Implementation Notes
<Any important technical details reviewers should know>
## Test Plan
Verification steps for reviewers:
- [ ] Clone branch and build: `go build ./...`
- [ ] Run tests: `go test ./...`
- [ ] <Manual verification step 1>
- [ ] <Manual verification step 2>
## Screenshots
<If applicable - command output examples>
## Breaking Changes
<None, or list breaking changes with migration steps>
## Checklist
- [x] Code follows project guidelines
- [x] Tests added for new functionality
- [x] Documentation updated
- [x] All tests pass
- [x] No breaking changes (or documented above)
Create PR Command
Also output the gh pr create command:
gh pr create --title "<title>" --body "$(cat <<'EOF'
## Summary
<summary bullets>
## Test Plan
<test steps>
---
Generated with Claude Code
EOF
)"
Report Completion
Show path to pr_summary.md
Show the PR creation command
Remind to push branch first if not already pushed
PR Title Guidelines
Use imperative mood: "Add feature" not "Added feature"
Be specific but concise
Include issue number if applicable: "Add squash merge support (#42)"
Body Best Practices
Lead with the most important information
Keep summary bullets scannable
Include enough context for reviewers
Make test plan actionable
Note any deployment considerations
1 --- 2 name: pr-summary-2 3 description: Pr Summary 4 --- 5
6 # Create PR Summary
7
8 Generate a comprehensive pull request summary based on branch changes.
9
10 ## Instructions
11
12 1. **Gather Context**
13 - Get current branch name
14 - Find workflow folder for this branch
15 - Read analysis.md and plan.md if they exist
16 - Get associated issue number from branch name or commits
17
18 2. **Analyze Changes**
19 ```bash
20 # All commits on this branch
21 git log main...HEAD --oneline
22
23 # Full diff
24 git diff main...HEAD --stat
25
26 # Changed files
27 git diff main...HEAD --name-only
28 ```
29
30 3. **Categorize Changes**
31 - New features added
32 - Bugs fixed
33 - Tests added/modified
34 - Documentation updates
35 - Refactoring
36
37 4. **Generate Summary**
38
39 Write to `workflows/<folder>/pr_summary.md`:
40
41 ```markdown
42 # PR: <title>
43
44 ## Summary
45 <1-3 bullet points describing the key changes>
46
47 ## Related Issues
48 - Resolves #<number>
49 - Relates to #<number>
50
51 ## Changes
52
53 ### Features
54 - <New feature 1>
55 - <New feature 2>
56
57 ### Bug Fixes
58 - <Fix 1>
59
60 ### Code Changes
61 | File | Change Type | Description |
62 |------|-------------|-------------|
63 | `path/to/file.go` | Modified | <brief description> |
64 | `path/to/new.go` | Added | <brief description> |
65
66 ### Tests
67 - Added `TestXxx` - <what it tests>
68 - Added `TestYyy` - <what it tests>
69
70 ### Documentation
71 - Updated `docs/xxx.md` - <what changed>
72
73 ## Implementation Notes
74 <Any important technical details reviewers should know>
75
76 ## Test Plan
77 Verification steps for reviewers:
78
79 - [ ] Clone branch and build: `go build ./...`
80 - [ ] Run tests: `go test ./...`
81 - [ ] <Manual verification step 1>
82 - [ ] <Manual verification step 2>
83
84 ## Screenshots
85 <If applicable - command output examples>
86
87 ## Breaking Changes
88 <None, or list breaking changes with migration steps>
89
90 ## Checklist
91 - [x] Code follows project guidelines
92 - [x] Tests added for new functionality
93 - [x] Documentation updated
94 - [x] All tests pass
95 - [x] No breaking changes (or documented above)
96 ```
97
98 5. **Create PR Command**
99
100 Also output the `gh pr create` command:
101
102 ```bash
103 gh pr create --title "<title>" --body "$(cat <<'EOF'
104 ## Summary
105 <summary bullets>
106
107 ## Test Plan
108 <test steps>
109
110 ---
111 Generated with Claude Code
112 EOF
113 )"
114 ```
115
116 6. **Report Completion**
117 - Show path to pr_summary.md
118 - Show the PR creation command
119 - Remind to push branch first if not already pushed
120
121 ## PR Title Guidelines
122
123 - Use imperative mood: "Add feature" not "Added feature"
124 - Be specific but concise
125 - Include issue number if applicable: "Add squash merge support (#42)"
126
127 ## Body Best Practices
128
129 - Lead with the most important information
130 - Keep summary bullets scannable
131 - Include enough context for reviewers
132 - Make test plan actionable
133 - Note any deployment considerations
majiayu000/claude-skill-registry-data/tree/main/integration/pr-summary commit 8adbd83cd2
Frequently asked questions How do I install the Pr Summary skill? Run npx skillmds@latest add majiayu000/pr-summary-2 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.
What does the Pr Summary skill do? Pr Summary It is listed under Integrations & APIs, Research & Search on SkillMD.
Is Pr Summary safe to use? 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.
Which AI agents work with Pr Summary? 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.
Is Pr Summary free to use? Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Who published Pr Summary? majiayu000 (@majiayu000) published this skill. Their other Agent Skills are listed on their SkillMD profile.