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 19d 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.
- 19d 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 2d ago), 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.
Other skills, from other repositories
lsp-mcp-server
Use with Codex, Claude Code, or another MCP client when lsp-mcp-server is connected and semantic code navigation, analysis, refactoring, or diagnostics are needed. Covers all 29 lsp tools for TypeScript, Python, Rust, Go, C/C++, Ruby, PHP, Elixir, Kotlin, Java, and user-configured languages. Prefer these tools to text…
explore
Build an accurate mental model of an unfamiliar codebase, feature, or area before changing it — where it lives, how it connects, what it does, and why. Use when asked how something works, where something is, when onboarding to a repo, or before editing code you don't know. For a cross-cutting question that needs…
debug
Trace a bug, error, or regression to its root cause. Use when investigating a failure, a stack trace, unexpected behavior, or "why does X happen".
speclite-review-adversarial-general
A general review skill that critically examines code, specifications, stories, diffs, or documents for gaps, contradictions, risks, and unclear claims. It returns a Markdown list of findings.
speclite-review-edge-case-hunter
A review skill that traces code branches and lists only edge cases the code does not handle. It checks inputs such as diffs, files, or functions and returns findings as JSON.
debug-ci
Use when CI/CD pipeline fails. Provides systematic diagnosis for lint, type, test, and build failures across Python, TypeScript, Java, Rust, and n8n SDKs.