pr-workflow
Skill0 starsChanged 6 months agoMITView on GitHub
Ship repository changes through the claim → worktree → branch → PR → merge loop. Use when the user asks to fix, build, or open a PR for a shared repo, or before starting any non-trivial change to someone else's checkout.
10 other projects use a version of this.
Adopted by
Most recently taken up by
- sbluemin/fleet-harnesstheir own version, first seen Oct 4, 2026
- notque/vexjoy-agenttheir own version, first seen Sep 26, 2026
- 686f6c61/alfred-devtheir own version, first seen Aug 15, 2026
- rootkit-lab/skinktheir own version, first seen Aug 12, 2026
- me-cedric/agent-compasstheir own version, first seen Jun 24, 2026
- andreaswasita/copilot-agents-dojotheir own version, first seen Jun 4, 2026
Other versions10 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 10
- Chorus-AIDLC/Chorus★ 1.2ksame name
- notque/vexjoy-agent★ 424same name
- 686f6c61/alfred-dev★ 116same name
- andreaswasita/copilot-agents-dojo★ 54same name
- sbluemin/fleet-harness★ 17same name
- Autopsias/slashagents★ 4same name
- VersoXBT/claude-initial-setup★ 4same name
- me-cedric/agent-compass★ 3same name
- kienbui1995/magic-powers★ 0same name
- rootkit-lab/skink★ 0same 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 repository4 other files it gives its agents.
- memory-gcSkill
- rule-mineSkill
- security-reviewSkill
- smartloopSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 8 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Every non-trivial change to a shared repo ships as a PR tied to a claim.
- Distinctive: line 36
Run the repo's own verification commands.
- Distinctive: line 52
If a branch flip loses commits, recover them with git reflog before restarting.
“Common” is measured: kept by at least 6 in 10 of the 8 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
PR workflow
Every non-trivial change to a shared repo ships as a PR tied to a claim. This is
the serialization point that keeps concurrent agents from clobbering each other.
The canonical protocol is {{REPO}}/global/coordination.md; read it before
starting.
1. Claim the work
gh issue list --state openfirst. If an open issue covers the task and is assigned or labeledagent:*, STOP — someone owns it. A claim older than 24h with no linked branch is fair game.- Otherwise create or self-assign an issue and add your label
(
agent:claude,agent:codex,agent:cursor,agent:kimi). One issue = one task = one agent. - Where the samebrain repo is present, back the claim mechanically:
node {{REPO}}/hooks/lease-check.mjs claim <scope> --owner <agent>@<machine>(exit 2 = already held). Release it when done and commit the lease file.
2. Isolate physically
- Work in a dedicated
git worktree, never a shared checkout:git worktree add ../<repo>-<slug> -b <agent>/<slug>. - Branch prefix by agent:
claude/*,codex/*,cursor/*,kimi/*. Never work on another agent's branch.
3. Change and verify
- Make the smallest change that satisfies the issue. Match existing style; touch nothing unrelated.
- Run the repo's own verification commands. Capture the output — it belongs in the PR.
- Conventional commits only (
feat:,fix:,refactor:,docs:,test:,chore:,perf:,ci:). No AI attribution lines.
4. Open the PR
- Push the branch and open a PR whose body names the issue with
Fixes #N, the approach in one or two lines, and the exact verification evidence.
5. Merge
- The PR queue serializes conflicts; do not merge your own work until the checks or the reviewer clear it.
- Release your claim (issue label and lease) after the merge lands.
If a branch flip loses commits, recover them with git reflog before restarting.
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.

