mcpField
U
update-pr

update-pr

github.com/frostneyDevelopment0101 installsUpdated 5d ago
Repository

About update-pr

Update PR is an agent skill for updating an established pull request through integration, validation, publication, and metadata reconciliation. It covers routine conflict resolution and declared gates while leaving merging to the delivery workflow.

Key features

  1. 01Integrate the remote base when required
  2. 02Resolve routine conflicts
  3. 03Run relevant fixes and PR gates
  4. 04Commit and push under workflow rules
  5. 05Reconcile PR title and body

Use cases

  1. 01Updating a branch behind its base
  2. 02Resolving conflicts in an existing PR
  3. 03Validating changes before publication
  4. 04Refreshing PR metadata after a push

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/frostney/known-good-route --skill update-pr

After installing, type/update-prin Claude Code to confirm it loaded.

Details

From the project README

Update PR

Update the established PR through integration, relevant commits, a normal push and current metadata. The request includes resolving routine conflicts and running the declared PR gate; merging belongs to /deliver under the delivery settings. Reuse the selected target and prior authorization. Ask only when the intended PR, a material conflict-resolution choice or another material choice within this update remains unclear.

When the current PR belongs to a native GitHub stack, read ../git-workflow/references/github-stacks.md. When PR media no longer shows the current behavior, or the change needs new media, refresh the affected parts using ../create-pr/references/walkthroughs.md; reuse media that still shows the current behavior. Media tooling gaps alone do not block the update.

  1. Apply git-workflow. Inspect the current PR and its base branch, the branch, relevant local changes, recent commits and the fetched remote base as git-workflow defines it. Resolve a branch that needs the base under step 3 before deciding whether missing CI needs any action.
  2. Stop if on the base branch or no open PR exists; report the required next workflow. Stop likewise when git-workflow gives the PR no remote base.
  3. Merge the remote base into an ordinary branch only when git-workflow's up-to-date rule calls for it. A branch that is behind keeps its head and its checks, including when this update commits new changes. Preserve both sides' required behavior in additive conflicts; regenerate generated files using the project's tool. Continue through validation when the resolution is established. For a verified native stack, capture remote heads and use the guarded gh stack sync or narrower official stack operation; never use raw rebase or force-push commands.
  4. Apply /code-review fix-all and /test-against-spec fix to the changed behavior, including any baseline integration. Reuse only evidence whose content, command, environment and coverage still match; a baseline merge or edit invalidates the checks it affects. Run missing or invalidated checks. Repair every verified in-scope requirement gap through /implement's development loop, then establish the declared PR gate. A preview needed to test an unpublished fix permits its draft update; resume testing on that exact revision before claiming readiness.
  5. When relevant changes exist, commit them under git-workflow: stage only those files, use a concise Conventional Commit subject, and never amend or skip hooks. Run the publication guard at each commit, push and PR write.
  6. When the branch has commits its remote lacks, push an ordinary branch normally, setting upstream when needed. Push a verified stack only through the guarded official stack workflow.
  7. Reconcile the PR title and body with the complete current diff, scope and linked issues. A push always changes the head, so after a push reconcile the body again even when the summary still holds. Keep the title a Conventional Commit subject for the whole change; it becomes the squash-merge commit subject, so widened scope may also change its type. Follow ../agent-writing/references/pr-descriptions.md, preserving explicit project-template requirements and replacing obsolete summaries, intermediate development history and author verification sections. Keep the review note at the end of the body, updated as it describes. Keep every PR template heading verbatim and in order, and under a heading with nothing to say write a one-line None or the reason. Run template-check on the draft with --kind pr --body FILE before writing it and on the live body with --pr N after, and fix every heading problem it reports.
  8. Report the updated PR, any new commit, metadata changes, what the publication guard rewrote and observed validation. Include stack position and rewritten branches when applicable. Distinguish passed local checks from pending current-head CI. A draft PR stays draft until delivery-wait observes every required check green on the pushed head; only then may it be marked ready for review. Return the exact current head and next transition to the active publication or delivery caller; that caller continues through CI and feedback. Started directly, continue under the delivery settings; with entry-points: deliver, the pushed head goes on to /deliver, which awaits its CI and review and takes the PR to the configured endpoint (ready-to-merge when there is no ORCHESTRATION.md). With stop, end with this report. Report missing walkthrough requirements with remedies.

Comments

Markdown supported