About update-pr-summary
A skill for revising GitHub pull request titles and descriptions to match the final changes and supporting evidence. It guides repository contributors through review, careful preservation of existing content, and verification after editing.
Key features
- 01Inspect PR metadata and diff
- 02Apply targeted corrections
- 03Preserve visuals, links, and context
- 04Recheck remote edits before writing
- 05Verify the saved PR content
Use cases
- 01Refresh a PR description after implementation changes
- 02Correct stale claims without losing useful context
- 03Check evidence and media in a PR before reporting
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ fcakyon/ claude-codex-settings --skill update-pr-summaryAfter installing, type/update-pr-summaryin Claude Code to confirm it loaded.
Details
From the project READMEUpdate PR Summary
Update a PR title and body to describe the final change and evidence. Treat extra invocation text as the PR reference and any requested corrections.
- Read repository guidance and fetch the current body before editing:
gh pr view <pr> --json title,body,baseRefName,headRefName,url. - Review the complete PR diff against its actual base, not this checkout's unrelated HEAD.
Use
git diff <remote>/<base>...<head>when those refs are current, otherwisegh pr diff <pr>. Ignore changes outside the PR and collect completed checks relevant to its current head. - Read create-pr for title, body, evidence, and visual-hosting guidance. Apply the user's correction to the relevant portion. Preserve uploaded visuals, bot-added context, links, and valid results. An explicit full rewrite still keeps those unless the user asks to remove them. Rewrite stale claims and titles around the final scope.
- Save the exact body to a temporary file outside the repo. Re-read the remote body just
before writing. If it changed, incorporate those edits rather than overwriting them.
Apply with
gh pr edit <pr> --title "..." --body-file <path>. - Read back
title,body,urland compare with the intended edit. Verify that preserved content, fences, tables, and links survived. Open the PR to check media rendering when relevant. Report the PR URL and any remaining evidence or upload gap.
Comments
Markdown supported