Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add spuentesp/lain --skill lain-comprehensiongit clone --depth 1 https://github.com/spuentesp/lainWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/spuentesp/lain/lain-comprehension)<a href="https://agentmods.dev/skills/spuentesp/lain/lain-comprehension"><img src="https://agentmods.dev/badge/skills/spuentesp/lain/lain-comprehension/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/spuentesp/lain/lain-comprehension"><img src="https://agentmods.dev/badge/skills/spuentesp/lain/lain-comprehension.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00063 | $0.00576 |
| Opus 5.5 | $0.00025 | $0.00230 |
| Sonnet 5.5 | $0.00013 | $0.00115 |
| Haiku 4.5 | $0.00006 | $0.00058 |
Grade A, and why
lain-comprehension scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 48 lines — stays where its author put it; the contents beside it link to each section on GitHub.
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.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 48 lines · 63 tokens per session scan A 37b38941f63e
lain-comprehension is a skill published in the GitHub repository spuentesp/lain (9 stars, last pushed yesterday), licensed MIT. It adds 63 tokens to every session and 576 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-28.
lain-comprehension compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| lain-comprehensionspuentesp/lain | Skill | 9 | yesterday | MIT | A | 63 | Claude Code, Codex |
| lsp-mcp-serverProfessioneIT/lsp-mcp-server | Skill | 23 | 6d ago | MIT | A | 108 | Claude Code, Codex |
| exploreTheWinci/mimirs | Skill | 30 | 1mo ago | Apache-2.0 | A | 79 | Claude Code |
| debugTheWinci/mimirs | Skill | 30 | 1mo ago | Apache-2.0 | A | 35 | Claude Code |
| speclite-review-adversarial-generalflanliulf/SpecLite | Skill | 6 | 8d ago | MIT | A | 76 | Claude Code |
| speclite-review-edge-case-hunterflanliulf/SpecLite | Skill | 6 | 8d ago | MIT | A | 71 | Claude Code |
| Live Deploy Debuggingniels-emmer/myace | Skill | 1 | yesterday | MIT | A | 46 | Claude Code, Codex |