Agent skill
pr-summary
Generate a PR summary and write to .ai/ 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-gittower-git-flow-next-2
SKILL.md
Create PR Summary
Generate a pull request summary based on branch changes.
Instructions
-
Gather Context
- Get current branch name
- Find the corresponding
.ai/workflow folder for this branch:- For issue branches (e.g.,
feature/59-no-verify): look for.ai/issue-59-* - For named branches (e.g.,
feature/worktree-support): look for.ai/feature-worktree-support/or.ai/worktree-support/ - Use
ls .ai/and match based on branch name patterns
- For issue branches (e.g.,
- Read these files if they exist (use them to understand the feature goals and implementation approach):
concept.md- Feature concept and design rationaleanalysis.md- Issue analysis and requirementsplan.md- Implementation plan with specific changes
- Get associated issue number from branch name, commits, or analysis.md
-
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 -
Generate Summary
Read
.github/PULL_REQUEST_TEMPLATE.mdfor the format specification and example.Use context from the
.ai/folder files to write a better summary:- concept.md: Understand the design goals and rationale
- analysis.md: Reference the original issue requirements
- plan.md: Verify all planned changes were implemented
Write the summary to
.ai/<folder>/pr_summary.md. -
Create PR Command
Output the
gh pr createcommand:bashgh pr create --title "<title>" --body "$(cat .ai/<folder>/pr_summary.md)" -
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
- Do NOT include the issue number in the title (it will be linked in the PR body)
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?