pr-update
Skill207 starsChanged 4 months agoMITView on GitHub
Open a PR/MR if missing, or refresh an existing one's title and description so they match the current diff. Preserves any media already in the body. Use when the user says /pr-update, open a PR, update the PR, refresh the PR title/description, or wants the PR opener/manager flow.
- Reads credentials
- Commits and pushes
1 other project uses a version of this.
Adopted by
Most recently taken up by
- gaurav/llmingtheir own version, first seen Nov 8, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- gaurav/llming★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository22 other files it gives its agents.
- audit-onlySkill
- babysitSkill
- cleanSkill
- cprSkill
- draft-tweetSkill
- engraved-figuresSkill
- free-disk-spaceSkill
- list-open-workSkill
- notarize-macSkill
- no-tropesSkill
- perfSkill
- pr-readySkill
- pr-triageSkill
- researchSkill
- runtime-debugSkill
- stacked-prSkill
- ticket-shipSkill
- triageSkill
- ui-onlySkill
- ui-systemSkill
- visual-verifySkill
- workSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. About 0 are common, 6 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 24
If updating: fetch the current body first.
- Very specific: line 30
Never a bare #123. This is the one place the rule is written down.
- Very specific: line 46
Run the prose through no-tropes before publishing.
- Distinctive: line 47
Do not invent reviewers, labels, or milestone unless asked.
- Very specific: line 53
Check effective user.name and user.email before committing.
- Distinctive: line 56
Never publish after ignoring Git's inferred-identity warning.
- Very specific: line 71
Keep authorship when reshaping others' work (Co-authored-by / cherry-pick), especially during pr-triage salvage.
- Very specific: line 73
Don't mix pure formatting with logic, commit secrets/.env, or rewrite commits already on the default branch without asking.
- Distinctive: line 78
When a PR/MR already has a body, never delete media.
- Very specific: line 80
Treat as media (keep verbatim, same URLs/markup/order when possible):
- Very specific: line 90
Read the existing body. Extract JSON descriptions to plain Markdown with jq -r '.description' before using line-oriented file tools.
- Distinctive: line 95
Before submit, diff old body vs new: every media URL/markup from the old body must still be present.
- Distinctive: line 98
If a refresh would drop media, stop and keep the old body (or only edit the title) rather than publishing a media-stripped description.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
PR Update (open or refresh)
One skill for create and update. Make the title + body match the branch as it is now. Do not strip media from an existing description.
Steps
git status/git diff/git log/git diff <default>...HEAD(and remote tracking) so you know the full change set — not just the latest commit.- Detect an existing PR/MR for this branch (
gh pr view/glab mr view).- None → create (push upstream with
-uif needed). - Exists → edit title + body in place. Do not open a duplicate.
- None → create (push upstream with
- Draft a title and body from all commits/files in the PR, not one commit.
- If updating: fetch the current body first. Preserve every media item exactly (see below). Then rewrite text so Summary / Test plan (or the repo's usual sections) stay accurate.
- Apply with
gh pr create/gh pr edit(orglabequivalents). - End with the PR/MR as a markdown link — the number and the full forge
URL (
[#123](https://github.com/org/repo/pull/123), GitLab!equivalent). Never a bare#123. This is the one place the rule is written down; the other skills just follow it.
Title + body
- Title: concise, why-focused; match repo PR style when obvious.
- Body: use the repo's template when one exists; otherwise:
## Summary
<1-3 bullets of what changed and why>
## Test plan
- [ ] <concrete checks>- Run the prose through
no-tropesbefore publishing. - Do not invent reviewers, labels, or milestone unless asked.
Commits
Shape the branch's commits as part of opening/refreshing the PR.
- Check effective
user.nameanduser.emailbefore committing. GitHub login does not set commit attribution. If email is unset or Git infers a local-host address, stop before publishing and confirm an account-associated email. Never publish after ignoring Git's inferred-identity warning. - One concern per commit. Default to a topical split (2–5 is typical) even if not asked; don't dump everything into one blob unless the user wants it.
- Match the repo's recent commit style (
git log --oneline -15); subject = why. No "WIP" / "fix stuff". - Rebuild with soft reset + path-staged commits (no
git rebase -i— needs a TTY). Show the finalgit log --oneline <default>..HEADbefore force-push. Two traps in that recipe:- Soft-reset to the branch's real base SHA (
git merge-base HEAD origin/<default>), never toorigin/<default>itself — it moves mid-task and will stage other people's commits as yours. git reset <base> -- <path>leaves that path unstaged, so the nextgit commitsilently captures its pre-edit version. Verify the content landed (git show <sha>:<path> | grep <new symbol>) before force-push.
- Soft-reset to the branch's real base SHA (
- Keep authorship when reshaping others' work (
Co-authored-by/ cherry-pick), especially duringpr-triagesalvage. - Don't mix pure formatting with logic, commit secrets/
.env, or rewrite commits already on the default branch without asking.
Preserve media (hard rule)
When a PR/MR already has a body, never delete media.
Treat as media (keep verbatim, same URLs/markup/order when possible):
- Markdown images / links to images or video (
,[...](...)to media) - HTML
<img>,<video>,<source>,<br>used between media blocks - GitHub/GitLab upload / user-attachments / moved-image URLs
- Image/video-only paragraphs or HTML comments wrapping media
Update flow:
- Read the existing body. Extract JSON descriptions to plain Markdown with
jq -r '.description'before using line-oriented file tools; one long escaped JSON string can be truncated even when the overall file fits. Reject truncated content rather than rebuilding a partial description. - Extract and keep the media blocks.
- Rewrite textual sections so they match the current diff.
- Re-attach the preserved media (same block(s), typically at the end unless they were interleaved on purpose — then keep interleaving).
- Before submit, diff old body vs new: every media URL/markup from the old body must still be present.
If a refresh would drop media, stop and keep the old body (or only edit the title) rather than publishing a media-stripped description.
Scope
- In: open PR/MR, push if needed for create, shape commits, retitle, rewrite description, preserve media, print URL.
- Out: rebase, CI, and review threads (
pr-ready), triage/salvage (pr-triage), merging.
Forge cheatsheet
# GitHub — read
gh pr view --json url,title,body,baseRefName,headRefName
# GitHub — create
gh pr create --title "…" --body "$(cat <<'EOF'
…
EOF
)"
# GitHub — update (body from file avoids shell-eating newlines/media)
gh pr view --json body -q .body > /tmp/pr-body.md
# …edit /tmp/pr-body.md carefully…
gh pr edit --title "…" --body-file /tmp/pr-body.md
# GitLab
glab mr view
glab mr create
glab mr update <N> --title "…" --description-file /tmp/pr-body.mdDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

