lain-verify

lain-verify is a skill for Claude Code, Codex from spuentesp/lain. It costs 54 tokens per session (453 once invoked), scanned A, original, MIT.

A guide for verifying code changes with Lain's build, test, lint, coverage, and Git-state tools.

In plain words
What is it for?
Use it to build, run or filter tests, lint code, inspect untested functions, review coverage estimates, and check diffs or branches.
Why use it?
It replaces guesses about whether a change works with checks that compile the project, run tests, and inspect the resulting state.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to build, run or filter tests, lint code, inspect untested functions, review coverage estimates, and check diffs or branches.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/spuentesp/lain/lain-verify
Install

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.

Any agent
npx skills add spuentesp/lain --skill lain-verify
Clone the repo
git clone --depth 1 https://github.com/spuentesp/lain

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for lain-verify

README.md
[![agentmods](https://agentmods.dev/badge/skills/spuentesp/lain/lain-verify/github.svg)](https://agentmods.dev/skills/spuentesp/lain/lain-verify)
Your own site
<a href="https://agentmods.dev/skills/spuentesp/lain/lain-verify"><img src="https://agentmods.dev/badge/skills/spuentesp/lain/lain-verify/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.

agentmods 80×15 button for lain-verify

Your own site · 80×15
<a href="https://agentmods.dev/skills/spuentesp/lain/lain-verify"><img src="https://agentmods.dev/badge/skills/spuentesp/lain/lain-verify.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 453 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00054 $0.00453
Opus 5.5 $0.00022 $0.00181
Sonnet 5.5 $0.00011 $0.00091
Haiku 4.5 $0.00005 $0.00045

Measured 19d ago against content hash 0270a3821ba6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

lain-verify 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.

skills/lain-verify/SKILL.md · 43 lines

What it actually says

Lain verify — ship-it checks

The verify package is not in the default surface because it executes real processes (slow, side effects on disk/caches). Load it when you actually intend to run something.

Load it

Call load_package("verify") — or set LAIN_TOOL_PROFILE=verify at config time for agents that routinely verify. load_package makes the tools appear in tools/list; tools are callable by name even when hidden, but many MCP clients only permit tools their cached list contains. If the tools do not appear after loading, reconnect the client and refetch.

The tools

  • run_build / run_tests / run_clippy — the real thing: compile, run the suite (optionally filtered), lint (optionally auto-fix). Check get_health first so you are not testing a cold graph.
  • find_untested_functions — where the call graph sees no test coverage. The right answer to "what should I test next".
  • get_coverage_summary — structural estimate from connectivity. Fast, not a coverage report — say so when quoting it.
  • get_test_template — a scaffold for one function or type.
  • get_file_diff / get_commit_history / get_branch_status — git state before and after a change. For anything git-shaped beyond these, the shell is fine and often better.

Rules of thumb

  • Never run_build/run_tests just to answer a question — read first (comprehension skill), verify after changing.
  • Long outputs: filter run_tests rather than pulling the whole suite.
  • After a fix, the honest sequence is assess_change → edit → run_tests → get_file_diff.
Changes

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.

  1. 19d ago First seen · 43 lines · 54 tokens per session scan A 0270a3821ba6

Subscribe to this mod's changes

lain-verify is a skill published in the GitHub repository spuentesp/lain (9 stars, last pushed 2d ago), licensed MIT. It adds 54 tokens to every session and 453 once invoked, about $0.0002 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.