push-pr
Skill56 starsChanged 34 days agoApache-2.0View on GitHub
Canonical repo workflow for publishing one branch or PR: confirm scope, validate, commit, push, create or update the PR with preserved Markdown, and optionally enable automerge. Prefer this over generic publish skills such as github:yeet inside this repo.
- Commits and pushes
1 other project uses a version of this.
Adopted by
Most recently taken up by
- Codagent-AI/agent-skillstheir own version, first seen Apr 25, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- Codagent-AI/agent-skills★ 31same 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 repository35 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/AGENTS.mdAGENTS.md
- android/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- .github/CLAUDE.mdCLAUDE.md
- ios/CLAUDE.mdCLAUDE.md
- auto-mobile-code-reviewSkill
- ci-failure-triageSkill
- github-pr-feedbackSkill
- ios-swift-ciSkill
- node-prepushSkill
- prepush-androidSkill
- shell-prepushSkill
- android-gradlewSkill
- auto-mobile-code-reviewSkill
- bun-tasksSkill
- check-ciSkill
- ci-failure-triageSkill
- dead-codeSkill
- device-session-lifecycleSkill
- fan-out-fan-inSkill
- github-cliSkill
- github-pr-feedbackSkill
- ios-swift-ciSkill
- manual-testSkill
- node-prepushSkill
- observeSkill
- pr-analysisSkill
- prepush-androidSkill
- push-my-prsSkill
- researchSkill
- shell-prepushSkill
- ship-issueSkill
- testSkill
- validateSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
27 rules. About 0 are common, 15 are distinctive, and 12 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈15
Distinctive · estimate
This author's own choices. Worth a look.
12
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Use this when local work is ready to publish.
- Very specific: line 10
Prefer push-pr for one branch or one PR.
- Very specific: line 11
Prefer push-my-prs only when the user wants a batch loop across many PRs.
- Distinctive: line 12
Use generic plugin publish skills only when this repo-local skill is unavailable.
- Distinctive: line 18
If the worktree contains unrelated or user-owned changes, stage only explicit paths that belong to the PR.
- Distinctive: line 19
Use git add -A only when the whole worktree is confirmed in scope.
- Very specific: line 22
If publishing from main, master, or the remote default branch, create a repo-appropriate work/...
- Distinctive: line 23
Run the relevant validation before pushing.
- Distinctive: line 24
Prefer repo scripts and documented validation commands.
- Distinctive: line 25
Do not skip validation unless the user explicitly accepts that risk.
- Distinctive: line 26
Commit intentionally with a repository-appropriate message.
- Distinctive: line 27
Keep the commit message terse and descriptive.
- Distinctive: line 28
Do not amend or rewrite unrelated commits unless the user explicitly asks.
- Distinctive: line 30
Create or update exactly one PR.
- Very specific: line 31
Prefer gh pr view --json number,url to detect an existing PR for the current branch.
- Very specific: line 32
If no PR exists, create one with gh pr create.
- Very specific: line 33
If a PR exists, update it with gh pr edit only when the title/body/base needs to change.
- Very specific: line 34
Use the GitHub app for PR creation only when the surrounding tool environment already provides it and the repository, base, and head can be …
- Very specific: line 36
Write multiline PR bodies to scratch/pr-body.md or another temporary body file.
- Very specific: line 37
Use gh pr create --body-file scratch/pr-body.md or gh pr edit --body-file scratch/pr-body.md.
- Very specific: line 38
Avoid --body "..." for multiline Markdown because shell quoting can mangle newlines.
- Distinctive: line 40
Default to a ready PR when the user asked to publish completed work.
- Distinctive: line 41
Use a draft PR when the user asks for draft status or the work is intentionally incomplete.
- Very specific: line 47
Use github-cli and validate conventions.
- Distinctive: line 48
Never use destructive git commands.
- Distinctive: line 49
Prefer squash automerge unless the repo or existing PR says otherwise.
- Distinctive: line 50
Do not create recurring automations, feedback monitors, reminders, or follow-up cron jobs as part of publishing unless the user explicitly …
≈ “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
Push PR
Use this when local work is ready to publish. This is the canonical publish workflow for this repo and replaces the old gh-pr-workflow helper plus any generic github:yeet defaults.
- Prefer
push-prfor one branch or one PR. - Prefer
push-my-prsonly when the user wants a batch loop across many PRs. - Use generic plugin publish skills only when this repo-local skill is unavailable.
Workflow
- Confirm scope before staging.
- Inspect
git status --short,git diff --stat, and recent commit style. - If the worktree contains unrelated or user-owned changes, stage only explicit paths that belong to the PR.
- Use
git add -Aonly when the whole worktree is confirmed in scope.
- Inspect
- Determine the branch strategy.
- Stay on the current branch when it is already a work branch.
- If publishing from
main,master, or the remote default branch, create a repo-appropriatework/...branch unless the user requested a different name.
- Run the relevant validation before pushing.
- Prefer repo scripts and documented validation commands.
- Do not skip validation unless the user explicitly accepts that risk.
- Commit intentionally with a repository-appropriate message.
- Keep the commit message terse and descriptive.
- Do not amend or rewrite unrelated commits unless the user explicitly asks.
- Push the current branch, setting upstream if needed.
- Create or update exactly one PR.
- Prefer
gh pr view --json number,urlto detect an existing PR for the current branch. - If no PR exists, create one with
gh pr create. - If a PR exists, update it with
gh pr editonly when the title/body/base needs to change. - Use the GitHub app for PR creation only when the surrounding tool environment already provides it and the repository, base, and head can be resolved unambiguously; otherwise use
gh.
- Prefer
- Preserve PR body formatting.
- Write multiline PR bodies to
scratch/pr-body.mdor another temporary body file. - Use
gh pr create --body-file scratch/pr-body.mdorgh pr edit --body-file scratch/pr-body.md. - Avoid
--body "..."for multiline Markdown because shell quoting can mangle newlines.
- Write multiline PR bodies to
- Set PR readiness and automerge deliberately.
- Default to a ready PR when the user asked to publish completed work.
- Use a draft PR when the user asks for draft status or the work is intentionally incomplete.
- Enable squash automerge only when that matches the branch's intended workflow and the PR is ready.
- Summarize branch, commit, PR URL, validation, and any remaining risk.
Repo Rules
- Use
github-cliandvalidateconventions. - Never use destructive git commands.
- Prefer squash automerge unless the repo or existing PR says otherwise.
- Do not create recurring automations, feedback monitors, reminders, or follow-up cron jobs as part of publishing unless the user explicitly asks for ongoing monitoring.
PR Body Expectations
The PR body should use real Markdown prose and cover:
- what changed
- why it changed
- user or developer impact
- root cause when the PR is a fix
- checks used to validate it
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.

