About pr-summary
A skill for drafting a GitHub pull request from the finalized changes on the current branch. It generates a PR body for review, then creates the PR with `gh` after user approval.
Key features
- 01Compare branch with default branch
- 02Focus on finalized implementation
- 03Generate `.claude/scratchpad/PR.md`
- 04Pause for user review and approval
- 05Create PR with `gh pr create`
Use cases
- 01Draft a pull request from current branch changes
- 02Exclude obsolete work-in-progress details
- 03Review and edit the PR description before submission
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ casper-studios/ casper-marketplace --skill pr-summaryAfter installing, type/pr-summaryin Claude Code to confirm it loaded.
Bundled filesassets/pull-request-template.md
Details
From the project READMESummarize the latest changes in this branch to create a pull request on GitHub.
- Compare the current branch against default branch to see what changes need to be described in the pull request. Make sure to only focus on the finalized implementation details. Since pull requests tend to have work-in-progress commits at the beginning, you should be extra mindful on whether these are still relevant in the finalized snapshot.
- Use the pull request template to generate a
.claude/scratchpad/PR.md. - Pause here and prompt the user to check the
.claude/scratchpad/PR.mdbefore proceeding. - Once edited and approved by the user, fill in the missing details in the following script and then run it:
gh pr create --base dev --head "$(git rev-parse --abbrev-ref HEAD)" --title '[TICKET-123] category: short title' --body-file .claude/scratchpad/PR.md - Delete
.claude/scratchpad/PR.mdonce successfully submitted.
Comments
Markdown supported