pr
Skill0 starsChanged 42 days agoMITView on GitHub
Push the current feature branch and open a pull request. Verify first, check the branch name against the protected list, build the PR body from the repository template with the checklist ticked only where true, link the issue. Use when the user says "open a PR", "create a pull request", "push and PR", or "ship this branch". Never merges and never touches a protected branch.
- Commits and pushes
In this repository21 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- first-runSkill
- fix-ciSkill
- new-adrSkill
- new-packageSkill
- new-specSkill
- releaseSkill
- sync-templateSkill
- update-depsSkill
- verify-docsSkill
- first-runSkill
- fix-ciSkill
- new-adrSkill
- new-packageSkill
- new-specSkill
- prSkill
- releaseSkill
- sync-templateSkill
- update-depsSkill
- verify-docsSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 25
Verify. pnpm verify must pass.
- Very specific: line 37
Create. gh pr create --base <default branch> --title "<conventional subject>" --body-file <the filled body>.
- Distinctive: line 43
If the request names the issue to close or the PR title, use them.
≈ “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
Open a pull request
In Claude Code the push flow runs unattended: git push and the read-only
gh commands are allow-listed (Codex and Gemini prompt for each), and the
deny-push-protected guard keeps every push off a protected branch. What
counts as protected, and what else the guard denies, is
under "Push protection" in docs/template/guards.md. Merging is a human
decision; gh pr merge is not allow-listed, so it prompts unless the session
auto-approves, and this skill never runs it.
- Branch check.
git branch --show-currentmust not match a protected pattern. If it does, stop and suggest a branch:feat/,fix/,docs/,chore/, orrefactor/plus a short kebab slug, thengit switch -cthat branch (Claude Code asks first; the allowlist leavesgit switchout) and continue. - Clean tree.
git status --porcelainmust be empty; commit pending work first with a Conventional Commit (type(scope): subject, subject at most 50 chars). Never--no-verify: fix what the git hooks report (a guard denies the flag anyway). - Verify.
pnpm verifymust pass. Fix at the source; never open a PR over a red gate. - Push.
git push -u origin <branch>with the name spelled out, orgit push -u origin HEAD; the guard denies a target held in a shell variable ("$BRANCH"). Add--force-with-leaseonly if the branch was rebased and the user knows. - Body. Read
.github/PULL_REQUEST_TEMPLATE.mdand fill it: a one- or two-sentence Summary of what changed and why, the three-place-sync boxes ticked only for what this PR did (source and tests, spec, decision record, or N/A), the docs-hygiene boxes ticked only after the commands ran, and reviewer notes covering how it was checked (the gate commands that ran), risks, and follow-ups. If an issue number was given, addCloses #<n>under Summary. - Create.
gh pr create --base <default branch> --title "<conventional subject>" --body-file <the filled body>. The title is the branch's headline commit subject, or a Conventional Commit summary of the set. - Report the PR URL and what CI will run. Then stop: watching checks
(
gh pr checks) or fixing a red run is a separate ask.
If the request names the issue to close or the PR title, use them.
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.

