lain-federation
Skill9 starsChanged 2 months agoMITView on GitHub
Use when answering questions across repositories with Lain — "which repos know about X", "what breaks across repos if I change this", "what is in this workspace group". Covers the federation and workspace packages.
In this repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- lain-architectureSkill
- lain-comprehensionSkill
- lain-coordinationSkill
- lain-verifySkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 29
Call chains (get_call_chain) stay within one repository — by design.
- Very specific: line 38
If a graph refuses to load after a Lain upgrade, that is the schema gate doing its job: run lain reindex (backs up the old graph first).
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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
Lain federation — org-wide questions
Federation tools appear automatically when the server runs multiple
repositories; workspace tools when a workspaces.yaml is
configured. This skill covers how to use them well.
The tools
search_org— symbol/path search across every indexed repo. The answer to "which repos know about X" and the first call before anything cross-repo.get_cross_repo_blast_radius— what breaks across repos if a symbol changes, grouped by repo. Pinrepo_idwhen the name exists in more than one repo (the error tells you the candidates).depthtakes a number or range.list_repos/get_repo_info/get_federation_health— what is indexed, where it came from, and whether anything failed to load (unreachable repos are listed, not fatal).get_workspace_graph/list_workspaces/get_active_workspace— workspace-group views when repos are managed as named sets.
Rules of thumb
- Call chains (
get_call_chain) stay within one repository — by design. For the cross-repo question useget_cross_repo_blast_radius. - A cold federation answers
warming_upfirst; cross-repo edges appear once both sides are projected. Retry, do not conclude "no connections". - Ids are five segments (
repo:Kind:path:name:line_start); the line segment distinguishes same-named methods at different lines in one file. Ids returned by one tool work as handles in the next. - If a graph refuses to load after a Lain upgrade, that is the
schema gate doing its job: run
lain reindex(backs up the old graph first). See FEDERATION.md.
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.

