Agent skill
pr-summary
Generate a PR summary and write to workflows/ pr_summary.md
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/pr-summary
SKILL.md
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
bash# 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:markdown# 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 createcommand:bashgh 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
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?