pr
Skill6 starsChanged 8 days agoMITView on GitHub
Use when the user runs /pr to commit the current work, push the branch, and open or update its pull request.
- Commits and pushes
In this repository22 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- adding-an-add-to-claude-buttonSkill
- bd-to-br-migrationSkill
- codex-plan-reviewSkill
- codex-reviewSkill
- debugging-kubernetes-rolloutsSkill
- debugging-nodejs-appsSkill
- de-sloppingSkill
- detect-overengineeringSkill
- evaluating-third-party-toolsSkill
- finding-latest-versionsSkill
- git-reconSkill
- humanizerSkill
- hyprland-luaSkill
- mining-claude-sessionsSkill
- minto-pyramidSkill
- nonstopSkill
- operating-frappe-on-kubernetesSkill
- presentation-blueprintSkill
- pr-fixSkill
- pr-landSkill
- watching-pr-bot-reviewsSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. About 0 are common, 7 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
If this branch already has a PR (gh pr view --json number,url,baseRefName), its baseRefName is the base.
- Distinctive: line 19
Run git branch --show-current.
- Distinctive: line 20
Run git status, git diff and git diff --cached --stat.
- Distinctive: line 21
If the index already holds changes you did not make, stop and ask the user.
- Distinctive: line 26
Write the message in the repo's style (git log --oneline -10): what changed, and why.
- Very specific: line 27
Never skip hooks with --no-verify.
- Distinctive: line 37
Only your commits and your files may appear.
- Distinctive: line 39
If the repo is public, scan the added lines before you push.
- Very specific: line 47
If the branch has a PR (found above), update its body with gh pr edit --body-file FILE, and say what is new.
- Very specific: line 48
If none exists, search for a duplicate first: gh pr list --state all --search "<keywords> in:title".
- Very specific: line 49
Create it: gh pr create --base "$BASE" --title "..." --body-file FILE.
- Distinctive: line 50
Keep the title and body plain: what changed, why, and how you tested it.
- Very specific: line 56
wait for the reviewers: prbots wait <PR> --trigger, in the background (the watching-pr-bot-reviews skill).
≈ “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: commit, push, open or update the PR
The repo's own rules come first. If the repo has .claude/commands/pr.md, or a CLAUDE.md with PR rules (a base branch, a title format, an issue link, required checks), read them now. Where they differ from the steps below, follow them.
Find the base branch before anything else:
- If this branch already has a PR (
gh pr view --json number,url,baseRefName), itsbaseRefNameis the base. If the user named a different base, stop and ask: the PR targets another branch. - Otherwise the base is the argument, if the user gave one, or else the repo's default branch:
gh repo view --json defaultBranchRef -q .defaultBranchRef.name.
1. Check where you are
- Run
git branch --show-current. If you are on the base branch, stop. Create a branch first, or a worktree if other sessions share this checkout. - Run
git status,git diffandgit diff --cached --stat. Know every change before you stage it. - If the index already holds changes you did not make, stop and ask the user. A commit would take them along, and unstaging them can lose another session's work.
2. Commit
- Stage the files you mean, by name. In a shared checkout,
git add .andgit add -Apick up other sessions' edits. - Write the message in the repo's style (
git log --oneline -10): what changed, and why. End it with the attribution lines your session gives you. - Never skip hooks with
--no-verify.
3. Check what the push will carry
git fetch origin "$BASE"
git log --oneline "origin/$BASE..HEAD" # the commits the push carries
git diff --name-only "origin/$BASE...HEAD" # the files the PR changes (three dots: since the branch left the base)Only your commits and your files may appear. Anything else means a wrong base: fix that before you push.
If the repo is public, scan the added lines before you push. Look for secrets and private details: tokens, internal hostnames, private IPs, home-directory paths, client names. Scan the commit message too.
4. Push
git push -u origin HEAD
5. Open or update the PR
- If the branch has a PR (found above), update its body with
gh pr edit --body-file FILE, and say what is new. - If none exists, search for a duplicate first:
gh pr list --state all --search "<keywords> in:title". - Create it:
gh pr create --base "$BASE" --title "..." --body-file FILE. The body has Summary, Changes and Testing sections, and ends with your session's attribution line. - Keep the title and body plain: what changed, why, and how you tested it.
6. Report
Give the user the PR URL and a line on what it holds, then stop. Do more only if the user asked for it:
- wait for the reviewers:
prbots wait <PR> --trigger, in the background (the watching-pr-bot-reviews skill); - fix their findings: /pr-fix;
- merge: /pr-land.
Does 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.

