lain-comprehension
Skill9 starsChanged 2 months agoMITView on GitHub
Use when reading, locating, or assessing code through Lain's MCP tools — "where is X", "explain this", "what breaks if I change this", "what should I read first", "is this answer trustworthy". Covers the default core surface and the honest-answer contract.
In this repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- lain-architectureSkill
- lain-coordinationSkill
- lain-federationSkill
- lain-verifySkill
The file
Files
Lain comprehension — orient, understand, assess
The default Lain surface is small on purpose: these tools answer almost every reading question. Reach for them in this order.
The flow
- First contact —
understand_repositoryonce. It returns identity, top anchors, entry points, and capability states in one payload. Do not scatter exploratory calls before it. - Locate —
find_symbolwhen you know the name (it returns every match with ids and paths);search_codewhen you know the idea ("where is auth handled"). - Understand —
get_contexton one symbol: definition, callers, callees, source excerpt. This is the "quote it back" payload. - Before editing —
assess_change(dependents + untested dependents + a low/medium/high risk verdict). Useget_blast_radiusonly when you want the raw dependent list instead of the verdict, andget_call_chain from=A to=Bwhen you need one exact path. - Read strategically —
find_anchors("what is load-bearing"),list_entry_points("where does execution start"),get_coupling_radar("what changes together") before refactors,find_dead_codebefore cleanup.find_relatedbundles graph + co-change + semantic neighbours for "what is connected to X".
The honesty contract
explain_dispatch exists for the trap case: an impact query that
returns surprisingly little. When get_blast_radius looks wrong,
call explain_dispatch — its verdict distinguishes "nothing calls
this" from "static analysis cannot see the dispatcher"
(insufficient_evidence). Treat insufficient_evidence as do not
assume safe, and say so in your answer. Likewise "still indexing"
(warming_up, retry_after_ms) means retry later, not empty.
When you need more
Testing, git state, raw graph queries, architecture deep-dives, and
multiplayer plumbing live in packages beyond the default: call
list_packages, then load_package("<package>"), then refetch tools
(or reconnect the client) — see lain-verify, lain-architecture,
lain-coordination, lain-federation.
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.

