github-pr-workflow
Skill22 starsChanged 8 days agoMITView on GitHub
End-to-end PR lifecycle — branch, commit, push, open PR, watch CI, merge. Each step structured; user can interrupt anywhere. Uses `gh` CLI; pairs with the process tool for non-blocking CI watch.
- Installs packages
- Commits and pushes
25 other projects use a version of this.
Adopted by
Most recently taken up by
- delorenj/skillstheir own version, first seen Nov 7, 2026
- drvoss/everything-copilot-clitheir own version, first seen Oct 26, 2026
- microsoft/amplifier-app-papercliptheir own version, first seen Oct 25, 2026
- gquthier/CLAWGtheir own version, first seen Oct 17, 2026
- Fahrnetic/engineering-agent-skill-workflowtheir own version, first seen Oct 15, 2026
- Stuko0/alice-agenttheir own version, first seen Oct 13, 2026
Used with
Projects with it also use find-nearby, webhook-subscriptions and 6 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
math-incSkillfind-nearby
Find nearby places (restaurants, cafes, bars, pharmacies, etc.) using OpenStreetMap. Works with coordinates, addresses, cities, zip codes, or Telegram location pins. No API keys needed.
Also in 3 projects that use this
Tommy-ywSkillwebhook-subscriptions
Create and manage webhook subscriptions for event-driven agent activation, or for direct push notifications (zero LLM cost). Use when the user wants external services to trigger agent runs OR push notifications to chats.
Also in 3 projects that use this
math-incSkillminecraft-modpack-server
Set up a modded Minecraft server from a CurseForge/Modrinth server pack zip. Covers NeoForge/Forge install, Java version, JVM tuning, firewall, LAN config, backups, and launch scripts.
Also in 3 projects that use this
- +5 more from math-inc
Other versions25 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 25
- math-inc/OpenGauss★ 1.3ksame name
- Tommy-yw/RunbookHermes★ 546same name
- aivrar/portable-hermes-agent★ 239same name
- RedWoodOG/Hermes-Desktop★ 177same name
- HybridAIOne/hybridclaw★ 159same name
- AtlasOmnia/donna-starter★ 136same name
- AtlasOmnia/hermes-custom-pack★ 75same name
- drvoss/everything-copilot-cli★ 48same name
- YPares/agent-skills★ 30same name
- delorenj/skills★ 17same name
15 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 repository45 other files it gives its agents.
- AGENTS.mdAGENTS.md
- dependency-analyzerSkill
- docsSkill
- handoffSkill
- openai-reviewerSkill
- plugin-homeSkill
- schema-validatorSkill
- security-auditSkill
- session-auditSkill
- test-validatorSkill
- claude-codeSkill
- codexSkill
- opencodeSkill
- chartsSkill
- export-csvSkill
- export-excelSkill
- make-chartSkill
- make-html-reportSkill
- make-pdfSkill
- a2a-communicateSkill
- a2a-handle-inboundSkill
- codebase-inspectionSkill
- ethos-skill-authoringSkill
- native-mcpSkill
- github-authSkill
- github-code-reviewSkill
- github-issuesSkill
- github-repo-managementSkill
- birth-ritualSkill
- get-to-know-youSkill
- xurlSkill
- arxivSkill
- grounded-citationsSkill
- research-paper-writingSkill
- reddit-researchSkill
- code-reviewSkill
- coding-agentSkill
- planSkill
- requesting-code-reviewSkill
- spikeSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- tddSkill
- writing-plansSkill
- no-ai-slopSkill
The file
We split this skill into the rules it gives an agent
11 rules. 0 are common, 2 are distinctive, and 9 are very specific to this project.
0
Common
Most of the 25 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 36
When changes are not yet test-clean, do not invoke this skill — finish the change first.
- Distinctive: line 40
Run these checks before the first git command.
- Very specific: line 46
If gh is not installed: stop and print the install command (npm i -g @anthropic-ai/claude-code is the wrong one.
- Very specific: line 62
start with the imperative verb of the change: add-rate-limit, fix-stale-cache
- Very specific: line 63
if there's a tracking issue, prefix with the number: 1234-add-rate-limit
- Very specific: line 83
Never use --force or --force-with-lease here.
- Very specific: line 110
With
processtool: start gh pr checks --watch as a background process. - Very specific: line 111
Without
processtool: run gh pr checks --watch synchronously, but warn the user this will block the chat until CI finishes. - Very specific: line 118
Read the failed checks: gh pr checks <number> --json name,state,conclusion
- Very specific: line 126
Never use
--no-verifyto skip hooks: If a pre-commit hook fails, fix the underlying issue. - Very specific: line 132
Verify: gh auth status should print "Logged in to github.com as ...".
“Common” is measured: kept by at least 6 in 10 of the 25 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
GitHub PR Workflow
Linear, structured walk through branch → commit → push → PR → CI → merge. Every step prints what it did so the user can interrupt.
When to use this skill
- User said "open a PR", "submit this for review", "let's PR this".
- A feature is complete, tests pass, and the next natural action is publishing.
When changes are not yet test-clean, do not invoke this skill — finish the change first.
Step 0 — preflight
Run these checks before the first git command. Each one prints its result and only proceeds when the user has not interrupted.
gh auth status— must succeed. If not, stop and tell the user: "rungh auth loginand retry".git remote -v— at least one remote configured.git status --porcelain— capture the dirty state for step 1.
If gh is not installed: stop and print the install command (npm i -g @anthropic-ai/claude-code is the wrong one; use the platform-specific install per cli.github.com).
Step 1 — clean working tree
Either commit/stash existing changes, or fold them into the PR you are about to open. Ask the user when ambiguous; do not silently stash.
Step 2 — create the branch
Branch off main (or the repo's default branch — read it from gh repo view --json defaultBranchRef).
git switch -c <branch-name>Branch name conventions:
- kebab-case
- start with the imperative verb of the change:
add-rate-limit,fix-stale-cache - if there's a tracking issue, prefix with the number:
1234-add-rate-limit
Step 3 — commit
One commit per coherent change. Commit message format:
<scope>: <imperative summary>
<optional body explaining why, not what>For large changes, prefer multiple focused commits over one monster commit. The PR is the unit of review; the commits inside it tell the story of how the change was constructed.
Step 4 — push
git push -u origin <branch-name>Never use --force or --force-with-lease here. This is a fresh branch with no upstream history to overwrite.
Step 5 — open the PR
gh pr create --title "<title>" --body "<body>"Body shape:
## Summary
<1-3 sentences>
## Test plan
- <bulleted checklist of what to verify>
## Related
<links to issues / docs / prior PRs>Title is a single line, sentence-case, under 70 characters.
Step 6 — watch CI
Two paths depending on tool availability:
- With
processtool: startgh pr checks --watchas a background process. The chat is not blocked; the user can keep working. Poll status withprocess_logswhen the user asks. - Without
processtool: rungh pr checks --watchsynchronously, but warn the user this will block the chat until CI finishes.
Step 7 — handle the result
On green: print the PR URL. Ask the user whether to merge. Do not auto-merge.
On red:
- Read the failed checks:
gh pr checks <number> --json name,state,conclusion - For the first failure, fetch logs and propose a fix.
- Apply the fix on the branch, push, return to Step 6.
Hard rules
- Never auto-merge. Merge is a deliberate action by the user, even when CI is green.
- Do not push to
maindirectly. This skill is PR-only. - Never use
--no-verifyto skip hooks. If a pre-commit hook fails, fix the underlying issue.
Setup the user needs to do once
- Install
gh:brew install gh(macOS), per cli.github.com for other OSes. - Authenticate:
gh auth login. Follow the browser flow. - Verify:
gh auth statusshould print "Logged in to github.com as ...".
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.

