一键导入
pr-update
{{ ƔƔƔ }} Update a PR description to account for commits made since it was last written
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
{{ ƔƔƔ }} Update a PR description to account for commits made since it was last written
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
{{ 𝚫𝚫𝚫 }} Rebuild roadmap-system.zip, the distributable snapshot of the roadmap tooling (scripts, HTML template, conventions reference, and every roadmap-touching skill, including this one).
{{ 𝛀𝛀𝛀 }} Create a project roadmap in the rich phase-array format — roadmaps.json as source of truth plus a PHASE task list and prose overview
{{ 𝛀𝛀𝛀 }} Recompute and synchronise roadmap task statuses across roadmaps.json and its projections, with optional codebase reconciliation
{{ 𝛀𝛀𝛀 }} Add a task to a rich-format project roadmap with correct ID, dependency wiring, and graph integrity — ID assignment, status computation, dependency edges in both directions, and no unconnected islands.
Git workflow: branch management, commit conventions, PR patterns, conflict resolution.
{{ 𝛀𝛀𝛀 }} Review a pull request and post it as a GitHub review
| name | PR: Update |
| description | {{ ƔƔƔ }} Update a PR description to account for commits made since it was last written |
| when_to_use | When new commits landed on a branch after its PR was opened and the description no longer reflects the full diff. |
| model | sonnet |
| disable-model-invocation | true |
| allowed-tools | ["Bash(git:*)","Bash(gh:*)","Read","Glob","Grep"] |
| argument-hint | <pr-number> |
Update the description of PR #$ARGUMENTS.
Run:
gh pr view $ARGUMENTS --json body,title,headRefName,baseRefName
Look in the PR body for a comment in this exact format:
<!-- pr-update-watermark: <commit-sha> -->
If found, note the SHA — this is where the last update stopped. Call it $WATERMARK_SHA.
If not found, treat the entire commit history on the branch as new.
Run:
git log <baseRefName>..<headRefName> --oneline
If a watermark was found, filter to only commits after $WATERMARK_SHA:
git log ${WATERMARK_SHA}..HEAD --oneline
If there are no new commits since the watermark, tell me and stop — the description is already up to date.
For each new commit, run:
git show <sha> --stat
Understand what changed and why. Group related commits into coherent change categories.
Take the existing PR body and update it:
~/.claude/library/templates/pr-description.md (the same template pr-create fills) — keep updates within that structure rather than adding new top-level sections.## Changes section to incorporate the new commits. If collapsible <details> blocks already exist, add new entries or update existing ones as appropriate.<!-- pr-update-watermark: <latest-sha> -->
Display:
Wait for my approval.
Once approved, run:
gh pr edit $ARGUMENTS --body "<updated body>"
Confirm success.