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 sandraschi/leanforge-mcp --skill lean_expertgit clone --depth 1 https://github.com/sandraschi/leanforge-mcpWrote 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/sandraschi/leanforge-mcp/lean_expert)<a href="https://agentmods.dev/skills/sandraschi/leanforge-mcp/lean_expert"><img src="https://agentmods.dev/badge/skills/sandraschi/leanforge-mcp/lean_expert/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/sandraschi/leanforge-mcp/lean_expert"><img src="https://agentmods.dev/badge/skills/sandraschi/leanforge-mcp/lean_expert.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.00047 | $0.01281 |
| Opus 5.5 | $0.00019 | $0.00512 |
| Sonnet 5.5 | $0.00009 | $0.00256 |
| Haiku 4.5 | $0.00005 | $0.00128 |
Grade A, and why
lean-expert 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 1mo 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 — 114 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Lean 4 Expert -- Skill Context
You are an expert on the Lean 4 theorem prover and its ecosystem. This skill gives you the current state of the Lean world so you can answer version questions, suggest tactics, explain concepts, and guide proof attempts without guessing or hallucinating.
Current versions (2026-07)
| Component | Version | Notes |
|---|---|---|
| Lean 4 language | 4.18.0 | Stable release, June 2026 |
| Lean 4 nightly | 4.19.0-rc1 | Nightly as of 2026-07-01 |
| elan (version manager) | 4.1.2 | winget install leanprover.elan |
| Mathlib4 | v4.18.0 | Monorepo: 800k+ theorems, 300+ contributors |
| Lake (build system) | 5.0.0 | Bundled with Lean 4.18 |
Key syntax patterns
Basic tactic block
theorem add_comm (a b : Nat) : a + b = b + a := by
induction a with
| zero => simp
| succ a ih =>
simp [Nat.succ_eq_add_one, add_assoc, ih]
Calc block (readable multi-step)
theorem example (a b : Nat) : (a + b) * 2 = a * 2 + b * 2 := by
calc
(a + b) * 2 = (a + b) + (a + b) := by ring
_ = a + b + a + b := by ring
_ = (a + a) + (b + b) := by ring
_ = a * 2 + b * 2 := by ring
Common tactics by use case
| Goal | Tactic |
|---|---|
Break ∧ into two goals |
constructor |
Break ∨ into cases |
left / right / cases h |
| Use an equality hypothesis | rw [h] or rw [← h] |
| Prove equality of Nat | omega (automatic) or simp + ring |
| Prove equality of structures | ext (extensionality) |
| Induction on Nat | induction n with ... or cases n |
Cases on Option / List |
cases x |
| Apply a lemma | apply / exact / have h := ... |
| Inline simplification | simp [h1, h2] |
Arithmetic with Nat |
omega (complete decision procedure) |
| Ring arithmetic | ring (works for Nat, Int, ℚ, ℝ) |
| Field arithmetic | field_simp (for ℚ, ℝ, ℂ) |
| Linarith | linarith (linear arithmetic over ℤ, ℚ, ℝ) |
| Nlinarith | nlinarith (nonlinear arithmetic) |
| Positivity | positivity (prove positivity of expressions) |
| Tauto | tauto (propositional logic) |
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.
- 1mo ago Changed · +5 lines · +47 tokens per session 31357eb147e1
- 1mo ago First seen · 109 lines · 0 tokens per session scan A 5b31d263d1cb
lean-expert is a skill published in the GitHub repository sandraschi/leanforge-mcp (3 stars, last pushed yesterday), licensed MIT. It adds 47 tokens to every session and 1,281 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-10-14.
lean-expert compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| lean-expertsandraschi/leanforge-mcp | Skill | 3 | yesterday | MIT | A | 47 | Claude Code |
| formalyamafaktory/formal | Skill | 27 | 2d ago | MIT | A | 65 | Claude Code, Codex |
| screenibrahimmian36/leanscreen | Skill | 7 | 3mo ago | none | A | 0 | Claude Code |
| reading_recommendationssandraschi/calibremcp | Skill | 54 | today | MIT | A | 0 | Claude Code |
| lay-summaryberntpopp/genefoundry-router | Skill | 7 | yesterday | MIT | A | 74 | Claude Code, Codex |
| lean-probeepfl-lara/LeanProbe | Skill | 8 | 1mo ago | MIT | B | 139 | Claude Code, Codex |
| rq-problematizationetoyama/insight-blueprint | Skill | 0 | 1mo ago | MIT | A | 148 | Claude Code |