/update-pr-description:update-pr-description [date/commit-hash | --force]from update-pr-description
Updates a GitHub PR description by analyzing branch changes since a given date, commit, or base branch. Supports --force to regenerate from scratch.
Ships in update-pr-description. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Update the current PR description to reflect branch changes, using an optional date or commit as the starting point and the PR base branch by default.
This skill will:
Arguments provided: $ARGUMENTS
Codex: if the invocation text above is not populated, use the text after the skill name. If none is available, infer an optional date, commit hash, or --force flag from the current request.
Arguments:
Project Conventions (optional):
If the CODE_CONVENTIONS environment variable is set and points to a readable file, skim it for context about project patterns that should be reflected in the PR description (e.g., architecture decisions, naming conventions).
Process:
Create a unique temporary directory, then get current PR info and save the description:
tmp_dir="$(mktemp -d)"
gh pr view --json body --jq '.body' > "$tmp_dir/current-pr-description.md"
Parse arguments and find commits:
--force is provided: analyze all commits in the current branch- or :): use git log --since="date" --onelinegit log commit-hash..HEAD --onelinegh pr view --json baseRefName --jq '.baseRefName', fetch/verify the corresponding origin/<base> ref, and analyze origin/<base>...HEADYYYY-MM-DD, YYYY-MM-DDTHH:MM:SS, etc.Generate updated PR description:
Create diff and review:
Save the proposed description to $tmp_dir/proposed-pr-description.md
Always show a textual comparison with git diff --no-index -- "$tmp_dir/current-pr-description.md" "$tmp_dir/proposed-pr-description.md"; exit status 1 means the files differ and is expected
Optionally use the user's configured visual difftool when requested and available
Wait for user approval before applying changes
Consider updating PR title Consider whether the title needs to be updated to reflect the changes. Default to keeping the original title.
Update the PR: Example commands to suggest:
gh pr edit --title "UPDATED_TITLE_HERE" --body-file "$tmp_dir/proposed-pr-description.md"
(only include UPDATED_TITLE_HERE if it is different from the original title)
Apply changes if approved:
Usage Examples:
update-pr-description with 2025-01-15 to update from commits since January 15, 2025.update-pr-description with 1764afe to update from that commit.update-pr-description with --force to regenerate the entire description.update-pr-description with 2025-01-15T10:30:00 to update from a specific time.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub jtsternberg/claude-plugins --plugin update-pr-description