agentleFS
Beakpoint-InsightsBeakpoint-Insights/roost/skills/cross-repo-handoff/SKILL.md

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.

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
  1. Distinctive:

    Never edit, build or run tests in the other repo to "check quickly".

    line 18
  2. Distinctive:

    Write it as plain instructions to another engineer.

    line 22
  3. Distinctive:

    When the other agent's request is done, the note leads with what they need to act:

    line 35
  4. Distinctive:

    If there's a ticket, post the prompt as a comment on it, so it survives the session.

    line 43
  5. Distinctive:

    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 …

    line 44
  6. Distinctive:

    Don't hedge. If something isn't decided, say what's undecided and who decides.

    line 50
  7. Distinctive:

    No em dashes; plain language.

    line 51

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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:

  1. Prerequisite: what must land first, for example "Do this after the API work in the other comment, which adds registrationOpen to GET /api/auth/config." Say whether the two sides deploy together. A repo with depends_on goes after the repos it depends on.
  2. 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.
  3. Goal: one or two sentences on the behaviour that changes, from the user's point of view.
  4. 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".
  5. 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.
  6. 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.
  7. Run: the exact commands to run before pushing (unit tests, lint, the e2e feature file with its flags).
  8. 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.