git-pr
Skill0 starsChanged 21 days agoMITView on GitHub
Prepare a GitHub pull request for the current branch in the maintainer's name - a conventional-commit title, a body from the repository's PR template, the labels (required), and a merge method (rebase and merge or squash) with the reason. Prints the commands to run; never pushes or creates the PR itself. Use when a piece of work is finished and committed, or when the user asks for a PR.
- Commits and pushes
16 other projects use a version of this.
Adopted by
Most recently taken up by
- Blaeste/claude-skillstheir own version, first seen Nov 29, 2026
- Markssuave/Markssuave-Agent-skillstheir own version, first seen Nov 8, 2026
- stuff4ai/skillstheir own version, first seen Nov 8, 2026
- dmythro/agent-skillstheir own version, first seen Nov 8, 2026
- Zenobia000/agent-skills-startertheir own version, first seen Nov 1, 2026
- eliasjnior/claude-skillstheir own version, first seen Oct 20, 2026
Other versions16 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 16
- AI-Cultivation/cultivation-world-simulator★ 2.1ksame name
- 4thfever/cultivation-world-simulator★ 2.1ksame name
- diodeme/Gold-Band★ 168same name
- klauswg/sasuke★ 17same name
- khangpqvn/SDDADD★ 13same name
- dmythro/agent-skills★ 7same name
- Zenobia000/agent-skills-starter★ 4same name
- mattstruble/skills★ 3same name
- NaveenGumaste/keyskills★ 2same name
- inancgumus/skills★ 1same name
6 more not listed
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 repository10 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- code-qualitySkill
- git-commitSkill
- git-whats-newSkill
- repo-agentsSkill
- repo-settingsSkill
- repo-tidySkill
- session-handoffSkill
- session-reviewSkill
The file
We split this skill into the rules it gives an agent
11 rules. 0 are common, 4 are distinctive, and 7 are very specific to this project.
0
Common
Most of the 11 edited versions we read keep these.
4
Distinctive
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
- Very specific: line 13
If the current branch is the base branch, stop and print the command that creates a branch, named <type>/<short-name> (feat/api-types, …
- Very specific: line 15
If git status --short shows changes that belong to the PR, stop and ask the maintainer to commit them with /ingvarch:git-commit.
- Very specific: line 27
Use the repository's template: .github/pull_request_template.md, or .github/PULL_REQUEST_TEMPLATE.md, docs/ or the root.
- Very specific: line 37
Write the body to a file: <scratchpad>/pr-body-<branch>.md, or /tmp/pr-body-<branch>.md when there is no scratchpad.
- Very specific: line 50
Issues: every label of the issues the PR closes: gh issue view <N> --json labels --jq '.labels[].name'.
- Very specific: line 52
If the repository has no label for the type of change, stop and print the command that creates it, before the PR commands: gh label create …
- Distinctive: line 60
Rebase and merge: when every commit is a step forward that stands on its own, with the tests green at each one.
- Distinctive: line 62
Squash and merge: when some commits fix earlier commits of the same branch (review fixes, fixups, "wip").
- Distinctive: line 65
Create a merge commit: do not recommend it; it breaks the linear history.
- Distinctive: line 67
If a squash is needed only because of a fixup or two that could be folded into their commits, say so: the maintainer may prefer to fold …
- Very specific: line 90
Run git push, gh pr create or gh pr merge yourself, or ask for permission to run them.
“Common” is measured: kept by at least 6 in 10 of the 11 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
git-pr
Prepare a pull request for the current branch. The maintainer runs the commands; you only print them.
1. Check the branch
- Base branch:
gh repo view --json defaultBranchRef --jq .defaultBranchRef.name. - If the current branch is the base branch, stop and print the command that creates a branch, named
<type>/<short-name>(feat/api-types,fix/vultr-zones):git switch -c feat/api-types. - If
git status --shortshows changes that belong to the PR, stop and ask the maintainer to commit them with/ingvarch:git-commit. git log --oneline <base>..HEADlists the commits the PR carries. Read them; the title, the body and the merge method depend on them.
2. Title
One conventional commit line: type(scope): description, imperative, lower case, no period. For a PR of one commit,
use that commit's title.
3. Body
Use the repository's template: .github/pull_request_template.md, or .github/PULL_REQUEST_TEMPLATE.md, docs/ or
the root. Keep its headings and checklist, and drop the HTML comment. Without a template, use ## What changes and
## Checklist.
- What changes: what the change does for someone using the project, and why. Then the notable details as a short list, bugs found and fixed along the way, and things found and left for later. Plain words, each thing said once.
- Issues:
Closes #Nfor every issue the PR finishes,Part of #Nfor a parent it does not finish. - Checklist: tick an item only when it is true and you checked it in this session, for example
make checkran green on the branch head. Leave the rest unticked and say why in your reply.
Write the body to a file: <scratchpad>/pr-body-<branch>.md, or /tmp/pr-body-<branch>.md when there is no
scratchpad.
4. Labels
Required: every PR gets labels. Take them only from the labels the repository has:
gh label list --limit 100 --json name,description.
- Type: one label for the kind of change, from the commit type:
feat-enhancement,fix-bug,docs-documentation,refactor-refactor,chore-chore, a dependency update -dependencies. Use the repository's own name when it differs. - Area: a label for each part of the project the PR changes, from the commit scopes and the changed files, when
the repository has one (
ui,jobs,storage). - Issues: every label of the issues the PR closes:
gh issue view <N> --json labels --jq '.labels[].name'.
If the repository has no label for the type of change, stop and print the command that creates it, before the PR
commands: gh label create <name> --description "<what it marks>". Never put a label in --label that the
repository does not have; gh pr create fails on it.
5. Merge method
Pick one and give the reason in one or two sentences.
- Rebase and merge when every commit is a step forward that stands on its own, with the tests green at each one.
mainkeeps the commits and their messages. - Squash and merge when some commits fix earlier commits of the same branch (review fixes, fixups, "wip").
mainshould not read "built it, broke it, fixed it" for one piece of work. The squash commit takes its message from the merge command below, so rewording the branch commits first is wasted work. - Create a merge commit: do not recommend it; it breaks the linear history.
If a squash is needed only because of a fixup or two that could be folded into their commits, say so: the maintainer may prefer to fold them and rebase.
6. Print the commands
Print, in fish syntax, and nothing else to run:
git push -u origin <branch>
gh pr create --base <base> --title "<title>" --body-file <file> --label "<label>,<label>"Then the labels with the reason for each in a few words, the merge method with its reason, and the command for after the review:
gh pr merge <number> --rebase --delete-branch
# or, for a squash with a one-line message:
gh pr merge <number> --squash --subject "<title>" --body "" --delete-branchNEVER
- Run
git push,gh pr createorgh pr mergeyourself, or ask for permission to run them. Print them. - Print
gh pr createwithout--label.
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.

