cross-repo-handoff
Skill32 starsChanged 20 days agoMITView on GitHub
Write a prompt that another repo's agent can run cold, for work this repo needs but must not do itself (for example the API change a UI fix depends on, or the UI change an API fix needs). Posts it as a comment on the ticket or returns it for pasting. Use when the user asks for "a prompt for the API agent", "a prompt for the UI agent", "what should I share back", or when a fix needs changes in the other repo.
In this repository22 other files it gives its agents.
- automate-testsSkill
- automate-xray-testsSkill
- bug-bashSkill
- build-epicSkill
- close-out-epicSkill
- create-xray-testSkill
- live-verified-bddSkill
- pair-runbookSkill
- release-notesSkill
- release-qaSkill
- retroSkill
- review-epicSkill
- roost-configSkill
- run-bugSkill
- run-sliceSkill
- setupSkill
- shape-epicSkill
- slice-handoffSkill
- stacked-prsSkill
- triage-ticketSkill
- verify-slice-testsSkill
- write-runbookSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 7 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
Never edit, build or run tests in the other repo to "check quickly".
- Distinctive: line 22
Write it as plain instructions to another engineer.
- Distinctive: line 35
When the other agent's request is done, the note leads with what they need to act:
- Distinctive: line 43
If there's a ticket, post the prompt as a comment on it, so it survives the session.
- Distinctive: line 44
If a diff already exists (written and tested, then reverted to avoid a collision), put the full diff in the comment and say it was tested …
- Distinctive: line 50
Don't hedge. If something isn't decided, say what's undecided and who decides.
- Distinctive: line 51
No em dashes; plain language.
≈ “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
Cross-Repo Handoff
Each repo in the team's roost config (repos) has its own agent, often running at the same time. An agent never edits another repo. When a fix needs work over there, write a prompt the other agent can follow with no other context.
First, load the team config with roost-config. Each repo's owns, contract, tests and e2e say what belongs where and how it's tested.
When to write one
- Your fix needs a change in the other repo. Finish what belongs to this repo, then write the handoff for the rest.
- The other agent asked you for something and you've done it. Write what they need to pick it up (the "share back" note).
- The user asks for a prompt to give the other agent.
Never edit, build or run tests in the other repo to "check quickly". Reading its code to understand a contract is fine.
The prompt's shape
Write it as plain instructions to another engineer. Use this order and leave out sections that don't apply:
- Prerequisite: what must land first, for example "Do this after the API work in the other comment, which adds
registrationOpentoGET /api/auth/config." Say whether the two sides deploy together. A repo withdepends_ongoes after the repos it depends on. - Repo and branch: the repo, the branch name (starting with the ticket key), and which stack it goes on: "on top of the AuthKit stack (PR #156 and its descendants)". Say to open the PR on the stack with the "Stacked on #NNN" banner.
- Goal: one or two sentences on the behaviour that changes, from the user's point of view.
- Changes: by file, with paths and approximate line numbers, and the exact names of types, fields, routes and messages. Quote current code when that's clearer than describing it. Give literal values (URIs, error types, copy text), not "add an appropriate message".
- Contract: for an API change, the exact request and response shapes, status codes and Problem Details types. For a UI change, which generated client methods to call and what each response means on screen.
- Tests, written first: the failing tests to write and what each asserts, including the e2e scenario and the test it belongs to, tagged as the tests adapter says, where one exists.
- Run: the exact commands to run before pushing (unit tests, lint, the e2e feature file with its flags).
- Report back: what the other agent should hand back: commit SHA, branch, whether the local stack (
stack.services) is running the new build, and anything in the contract that changed from this prompt.
Share-back notes
When the other agent's request is done, the note leads with what they need to act:
- the commit SHA and branch, and whether the running server has it
- what changed in the contract, and what didn't ("Unchanged since you consumed it: …")
- anything that will show up unexpectedly, such as other endpoints arriving from a rebase
Where it goes
- If there's a ticket, post the prompt as a comment on it, so it survives the session. When a fix touches more than one repo, post one comment per repo.
- If a diff already exists (written and tested, then reverted to avoid a collision), put the full diff in the comment and say it was tested and how.
- Also give the user the text, ready to paste.
Rules
- Each prompt stands alone. Don't refer to "the conversation" or "as discussed".
- Don't hedge. If something isn't decided, say what's undecided and who decides.
- No em dashes; plain language.
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.

