Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Update an existing pull request with new changes. Use when the user wants to update a PR, push follow-up changes to a PR, refresh a PR description, or sync a PR with latest commits. Triggers on: update pr, update-pr, update the pr, push to pr, refresh pr, sync pr, update pull request.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-12 | ✗→✓ | ▲ Improved | 29% | 0% |
| case-13 | ✗→✓ | ▲ Improved | 345% | 0% |
| case-03 | ✓→✗ | ▼ Worse | 29% | 0% |
| case-18 | ✓→✗ | ▼ Worse | 25% | 0% |
| case-22 | ✓→✗ | ▼ Worse | 52% | 0% |
Push follow-up changes to an existing PR and update its description to reflect the new work.
gh api user --jq '.login' to confirm the CLI is authenticated. If this fails, the user needs to run gh auth login first.gh pr view --json number,title,body,url,baseRefName,state to find the PR for the current branch. If no PR exists, abort and suggest using /create-pr instead. Check the state field — if it is not OPEN, abort and inform the user that the PR is already merged or closed.git status to ensure no uncommitted changes. If there are uncommitted changes, run the /commit skill first to commit them..gitmodules exists first. If it does, run git submodule update --init --recursive. If not, skip this step.Ensure the feature branch is up-to-date with the base branch to avoid merge conflicts:
git fetch origin <base-branch> (use the base branch from the PR metadata)git log HEAD..origin/<base-branch> --oneline to see if the base branch has new commitsa. Run git rebase origin/<base-branch> b. Resolve conflicts — if the rebase hits conflicts:
git add <file>git rebase --continuegit status to confirm no unresolved conflicts remaingit push. If the rebase changed history, use git push --force-with-lease instead. If --force-with-lease fails, it means someone else has pushed to this branch. Fetch the remote branch (git fetch origin <branch>), inspect the divergence (git log HEAD..origin/<branch> --oneline), and ask the user how to proceed — they may need to integrate the other contributor's changes first.Understand the full scope of changes now in the PR:
git log origin/<base-branch>..HEAD --oneline to see all commits on this branchgit diff origin/<base-branch>...HEAD --stat for a high-level summary of changed filesgit diff origin/<base-branch>...HEAD to read the full diff. Note: Three-dot (...) syntax is intentional — it shows only the changes introduced on this branch since it diverged from the base, excluding commits on the base branch that aren't part of this PR.feat, fix, refactor, docs, chore, etc.Important: Look at ALL commits, not just the latest one. The updated PR description should reflect the entire branch, not just the new additions.
feat:, fix:, refactor:, docs:, chore:Review the existing PR body (from Step 1) and update it to reflect the current state of the branch. Preserve any still-accurate content (e.g., context, links, decisions) rather than rewriting from scratch. Use this template — scale detail with PR complexity:
## Summary
<1-5 bullet points explaining what changed and WHY — covering ALL changes in the branch>
## Changes
<Categorized list of what was modified — group by area/concern>
## Diagrams
<OPTIONAL — include Mermaid diagrams when visual aids clarify workflow or architecture changes>
## Test Plan
<How the changes were verified — manual testing steps, automated tests run, curl commands, etc.>Guidelines for the body:
Co-Authored-By linesWrite the body to a temp file and use --body-file to avoid shell argument length limits:
bashcat > /tmp/pr_body.md <<'EOF' ## Summary ... ## Changes ... ## Test Plan ... EOF gh pr edit --title "the pr title" --body-file /tmp/pr_body.md
Do NOT add:
--author flagCo-Authored-By trailerDraft/Ready handling: If the user wants to mark a draft PR as ready for review, run gh pr ready. If the user wants to convert to draft, run gh pr ready --undo.
gh pr edit fails, diagnose the error and suggest fixesPR Size: Keep PRs small and focused. If the diff is very large (>500 lines changed), suggest splitting into smaller PRs.
Commit History: If the commit history is messy, suggest rebasing to clean it up. Clean commits that explain why make review much easier.
Feedback Requests: If the user mentions wanting specific feedback, add a "Feedback Requested" section to the body.
Screenshots: For frontend changes, remind the user to add screenshots or recordings to the PR after updating.
Other measured skills in the registry, with their headline benchmark lift.