pr-handoff
Skill4 starsChanged 5 months agoMITView on GitHub
Turn a finished, gate-green milestone into a stack of small sequential PRs (one per slice branch, unsigned commits, bottom-up), each described from the milestone's audit evidence, then update the milestone's issue. Use when the user asks for a PR for a branch, or after a milestone-build harness run reports all DoD items met with the gates green.
- Commits and pushes
2 other projects use a version of this.
Adopted by
Most recently taken up by
- CassianFlorin/skill-hub-registrytheir own version, first seen May 27, 2026
- Vesely/skillstheir own version, first seen May 1, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- Vesely/skills★ 28same name
- CassianFlorin/skill-hub-registry★ 2same 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 repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- ms-rustSkill
- deliver-issueSkill
- gatesSkill
- github-workflowSkill
- merge-advanceSkill
- milestone-reviewSkill
- milestoneSkill
- plan-phaseSkill
- releaseSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 68
Run steps 1–5 for each slice, bottom-up, then step 6 once for the stack.
- Very specific: line 70
Stage explicitly: Add files by path — never git add -A.
- Very specific: line 73
Commit — unsigned: Use git commit --no-gpg-sign.
- Very specific: line 115
Do not merge here — merging is the merge-advance skill or the user's PR flow on GitHub, bottom-up.
- Distinctive: line 121
Do not release, tag, or delete branches.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
pr-handoff — commit, push, open a PR
Bridges the gap between "milestone implemented, gates green" (the milestone
and milestone-review skills stop there) and a published pull request.
Authorization semantics: a milestone-build harness run whose final audit
reports every DoD item met with all gates green pre-authorizes this
handoff — publishing is then part of the autonomous loop, no further ask.
This intentionally supersedes the default "commit/push only when the user
asks" for that one path (see AGENTS.md, "Accepted harness trade-offs"); for
any other branch, wait for the user to request it. This preauthorization is
for publishing only — it does not authorize merging the PR or anything beyond
it.
Preconditions
- The full CI-mirror gate set passes on the branch. For a harness
milestone that is the gate set in
.lh-harness/workflows/milestone-build.md(already run by the milestone's audit); for a plain branch, run that same set by hand. Follow thegatesskill together with the authoritative AGENTS.md commands, including Hermes compatibility, SDK workspace, and real-daemon checks. A partial run never authorizes this handoff. - You are on a milestone slice branch, not on
mainitself. The bottom slice is based onmain; every other slice is based on the slice below it (see themilestoneskill andpullRequestsin.github/agent-workflow.json). - The milestone's GitHub issue is known (explicit URL/number from the user or
task; otherwise resolve per the
github-workflowskill — unique unambiguous match only, otherwise ask). - The milestone's verification evidence is available: gate results, DoD
verdicts with
path:lineproof, test counts. From a harness run, take them from the final auditor report and the final response episode.
One PR per slice — the stack
Publish the milestone as a stack of small sequential PRs, one per slice, bottom-up. For each slice, from the bottom:
- Its gate set passes on that slice branch alone; a later slice never excuses a red lower one.
--baseismainfor the bottom slice and the previous slice's branch for every other;--headis the slice's own branch. The diff each PR shows is therefore only its own slice.- The description names the stack position and neighbours (
Stack 2/3: #<prev> → **this** → #<next>, filling in #<next>once it exists) and the DoD items this slice satisfies. - Non-final PRs reference the issue with
Refs #N; only the final PR usesCloses #N, so the issue cannot close before the whole stack lands. - A review fix to a lower slice is committed on that slice's branch; restack
the branches above it with
git rebase --update-refsfrom the top branch, re-run the gates on every rebased slice, and push them all (--force-with-lease).
A milestone that is one small concern is a stack of one: a single PR on
main with Closes #N.
Steps
Run steps 1–5 for each slice, bottom-up, then step 6 once for the stack.
- Stage explicitly. Add files by path — never
git add -A. Exclude transient files the user does not want committed (historicallyidea.md, harness run state). - Commit — unsigned. Use
git commit --no-gpg-sign; commits in this repo are NEVER signed, and--no-gpg-signkeeps that true even on machines whose global git config forces a signer. Message: concise, imperative, English. Never add aCo-Authored-Bytrailer or any "generated with" footer. - Push.
git push -u origin <slice-branch>. - Build the PR description from evidence, not memory. English body,
before/after structure:
- Summary — what changed and why, one paragraph; link the tracked issue
with
Closes #Non the final PR of the stack,Refs #Non the others; state the stack position and the DoD items this slice covers. - Before / After — what was missing, what is observable now.
- Verification — the gate results, per-item DoD verdicts with
path:lineevidence, test counts, and any verification step worth repeating by hand. This section mirrors the final audit report; do not invent or embellish results.
- Summary — what changed and why, one paragraph; link the tracked issue
with
Open and verify.
ghin a non-interactive agent shell never prompts: save the assembled title and body to a scratch file and pass them explicitly —gh pr create --base <main-or-previous-slice-branch> --head <slice-branch> --title "<title>" --body-file <file>(remove the scratch file afterwards). Confirm the URL, then check the initial CI status (gh pr checks <n>). Report the PR number, URL, and CI state.Review trigger. The automated review runs only for a PR that carries the
ai:reviewlabel, so add it right after opening (gh pr edit <n> --add-label ai:review; create the label first withgh label create ai:reviewif the repository does not have it yet) and verify it fromgh pr view <n> --json labels. Re-apply it after every push to the PR when the reviewer removed it, and never assume a review is coming for an unlabeled PR.- Update the milestone tracking. Via the
github-workflowskill, comment the ordered list of stack PR links on the milestone issue with the standard handoff content (branch/worktree, HEAD revision, scope covered, exact checks run with real exit results including any skipped/failed ones, remaining work/blockers, and worker run IDs from the harness run), and keep the project statusIn Progress— a PR opening is neverDone.Donehappens when the work has verifiably landed on the remote default branch (viamerge-advanceor the PR being merged); verify every write from the API response.
Constraints
- Do not merge here — merging is the
merge-advanceskill or the user's PR flow on GitHub, bottom-up. The repository does not delete head branches on merge, so after a lower PR merges retarget the next one explicitly (gh pr edit <n> --base main); if the lower PR was squash- or rebase-merged, rebase the next slice ontoorigin/mainfirst (git rebase --onto origin/main <old-lower-branch> <slice-branch>). - Do not release, tag, or delete branches.
- Issue/project writes follow the
github-workflowskill's safe-persistence rules; a blocked sync is reported as blocked, never claimed successful. - PR text only references secrets-free evidence; never quote environment values, tokens, or logs that could contain 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.

