← ClaudeAtlas

pr-refreshlisted

Refresh an existing PR description to match the branch's current net change, preserving structure and customizations
tony/skills · ★ 2 · AI & Automation · score 74
Install: claude install-skill tony/skills
# Refresh PR Description Bring an existing PR description back in sync with what the branch **currently** does — non-destructively. The description's structure, formatting, links, and hand-written customizations are preserved; only content that the branch's evolution has made stale is updated. This command is **content-only**. It never restructures the description, never applies a template, and never discusses structure or templates. If the user asks for a different structure or mentions a template, reply in one line that restructuring is the `pr-rewrite` skill's job, then continue with the content-only refresh (or stop, if restructuring was the sole request). User input: $ARGUMENTS ## Context Current branch — run this command and read the output: ```bash git branch --show-current ``` PR for current branch (if any) — run this command and read the output: ```bash gh pr view --json number,title,url,baseRefName 2>/dev/null || echo "(no PR for current branch — expect a PR number/URL in the argument)" ``` --- ## Procedure ### 1. Resolve the PR and its target - If `$ARGUMENTS` contains a PR number or URL, use it; otherwise use the current branch's PR. No PR found → report that and stop. - Fetch the full PR: ``` gh pr view <number> --json number,title,body,url,baseRefName,headRefName,state ``` - The diff base is the PR's **`baseRefName`** — this is what makes the command stack-aware. A PR targeting a sibling branch in a stack is diffed against that branch, ne