mcpField
P
pr-summary

pr-summary

github.com/casper-studiosDevelopment15291 installsUpdated 8w ago
Repository

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

  1. 01Compare branch with default branch
  2. 02Focus on finalized implementation
  3. 03Generate `.claude/scratchpad/PR.md`
  4. 04Pause for user review and approval
  5. 05Create PR with `gh pr create`

Use cases

  1. 01Draft a pull request from current branch changes
  2. 02Exclude obsolete work-in-progress details
  3. 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-summary

After installing, type/pr-summaryin Claude Code to confirm it loaded.

Bundled filesassets/pull-request-template.md

Details

From the project README

Summarize the latest changes in this branch to create a pull request on GitHub.

  1. 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.
  2. Use the pull request template to generate a .claude/scratchpad/PR.md.
  3. Pause here and prompt the user to check the .claude/scratchpad/PR.md before proceeding.
  4. 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
    
  5. Delete .claude/scratchpad/PR.md once successfully submitted.

Comments

Markdown supported