Update

From bendrucker/claude · View interactive version

Update is an AI agent skill from the GitHub repository bendrucker/claude. Update a pull request or merge request body to reflect the current state of changes. Use when a PR/MR has evolved through additional commits and the body needs to reflect what will be merged.

How to use this skill

Skill file

Update Pull Request

Rewrite the PR/MR body so it describes what merging the current diff does. Describe the end result, and mention a change made during review only when that result is user-facing.

$0 (optional) is a PR/MR URL, number, or branch name. With none, gh/glab resolve the PR/MR from the current branch.

Context

!bun "${CLAUDE_PLUGIN_ROOT}/scripts/git-context.ts"

!bun "${CLAUDE_PLUGIN_ROOT}/scripts/sem-context.ts" --stack-file "${user_config.stack_file}"

!bun "${CLAUDE_PLUGIN_ROOT}/scripts/contributing.ts"

Fetch

Commits after updatedAt are the work the current body does not yet cover.

Write

Rewrite the body per CODE0, the rules the create skill follows, and load the writing skill. When a PR template is in context, keep its structure. Use the Entities block to judge what the change did, and lead the body with intent rather than that list.

Write the body to tmp/pr-body-<branch>.md and apply it:

Upload any screenshot or recording the new body references by local path: --attach ./shot.png per file on gh pr edit (load github:attach), or --attach ./shot.png per file on glab mr update. Assets already in the body keep their uploaded URLs.

For GitLab username lookup, load gitlab:merge-request.

Done when a fresh gh pr view/glab mr view shows the new body and it describes the work in the commits after updatedAt.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.