Updated 1w ago
by scottnarmstrong
LeanAutoformalizationSkills
Portable Lean 4 autoformalization skills for Codex and Claude Code
51 GitHub stars (51)
+51 in 12 days
| Period | New stars |
|---|---|
| Oct 7 | +10 |
| Oct 8 | +6 |
| Oct 9 | +2 |
| Oct 10 | +1 |
| Oct 11 | +2 |
| Oct 12 | +3 |
| Oct 13 | +6 |
| Oct 14 | 0 |
| Oct 15 | +1 |
| Oct 16 | 0 |
- 12 skills (12 skills found in its SKILL.md files)
- 6 forks (6 forks)
- 1w ago last update (Last updated 1w ago)
Install
Skills CLI
npx skills add scottnarmstrong/LeanAutoformalizationSkills
Asks which skills and agents to install. Just one: npx skills add scottnarmstrong/LeanAutoformalizationSkills --skill build-proof-dependency-graph — add -g for every project.
Claude Code
git clone https://github.com/scottnarmstrong/LeanAutoformalizationSkillscp -r "LeanAutoformalizationSkills/skills/build-proof-dependency-graph" ~/.claude/skills/
Copies the build-proof-dependency-graph skill into ~/.claude/skills/ for every project (use .claude/skills/ for one project). Repeat for the other skills listed below.
Plugin
/plugin marketplace add scottnarmstrong/LeanAutoformalizationSkills
Run inside Claude Code if the repository ships a plugin marketplace, then pick plugins from /plugin.
Skills can run code on your machine — read the SKILL.md first.
What it does
In the author's own words, from each skill's SKILL.md.
-
build-proof-dependency-graph
Build an independently reviewed, source-level dependency database anchored to exact author-frozen Lean declarations. Use after source-first approval of one-declaration anchor files, when an orchestrator must trace roots through LaTeX, Markdown, or other line-addressable proof sources, expose substantive proof steps and external inputs, and produce a structurally checked graph for later Lean orche…
skills/build-proof-dependency-graph/SKILL.md on GitHub (opens in a new tab) -
lean-elaboration-test
Run a repeatable elaboration test of ONE Lean 4 repo and write a dated report — snapshot size (date, commit, lines excluding comment-only files), clean project-only rebuild with wall/CPU/parallelism/RSS, heavy-tail and per-namespace breakdown, warm own-file profiles of the worst files with likely causes, and improvement suggestions. Use when asked to run an elaboration test, profile a repo build,…
skills/lean-elaboration-test/SKILL.md on GitHub (opens in a new tab) -
lean-elaboration
Diagnose and improve Lean 4 elaboration performance in a repo — locate genuine hot spots, route by profile phase, apply the proven levers (consumer import narrowing, nlinarith elimination, targeted simp-only, head-class caches, leaf splits, folding hypothesis types to the abbrev their consumer expects, naming the function in congr), and A/B every change. Use when a repo builds slowly, a file blow…
skills/lean-elaboration/SKILL.md on GitHub (opens in a new tab) -
lean-learnings
Reusable Lean 4 and Mathlib lessons for analysis formalizations. Use when choosing an ambient carrier or repository layout, debugging elaboration and typeclass costs, preserving constant dependencies, or looking for recurring proof and API patterns.
skills/lean-learnings/SKILL.md on GitHub (opens in a new tab) -
lean-naming-style
Use when naming Lean declarations, organizing files, adding docstrings, or cleaning code so it matches Mathlib conventions and review expectations.
skills/lean-naming-style/SKILL.md on GitHub (opens in a new tab) -
lean-orchestrator
Coordinate a large multi-agent Lean 4 formalization around exact author-approved declarations, source-level dependency graphs, independent statement audits, bounded proof tasks, and safe landings. Use when planning or running parallel Lean work, reviewing proof status, landing integrated results, or repairing a campaign affected by statement drift or hypothesis smuggling.
skills/lean-orchestrator/SKILL.md on GitHub (opens in a new tab) -
lean-project-architecture
Use when planning a Lean formalization, selecting and freezing author-approved declarations, choosing module boundaries, designing reusable APIs, or staging a large proof project into stable phases.
skills/lean-project-architecture/SKILL.md on GitHub (opens in a new tab) -
lean-proof-patterns
Use when writing, refactoring, or debugging Lean proofs and you need a stable translation from mathematical reasoning into explicit tactics, controlled rewriting, or maintainable proof structure.
skills/lean-proof-patterns/SKILL.md on GitHub (opens in a new tab) -
lean-public-release
Prepare and verify a private Lean repository for public release. Use for source scrubbing, selective syncs, clean history, proof-status and license review, fresh-checkout builds, optional registry or comparator intake, independent review, and an explicit publication gate.
skills/lean-public-release/SKILL.md on GitHub (opens in a new tab) -
lean-search-discovery
Use when searching Mathlib for existing declarations, likely theorem names, relevant files, or proof ingredients before attempting a new Lean proof.
skills/lean-search-discovery/SKILL.md on GitHub (opens in a new tab) -
lean-statement-audit
Audit an exact manifest-bound Lean theorem or definition against its pinned mathematical source, with fail-closed binder, carrier, definition-body, characterization, consumption, and axiom checks. Use before approving a frozen declaration, after any frozen version change, before marking a source node proved, and before a theorem or section closure claim.
skills/lean-statement-audit/SKILL.md on GitHub (opens in a new tab) -
lean-workflow
Route Lean 4 work through a repository's Mathlib/Lake conventions. Use when editing Lean files, checking source fidelity or axioms, searching dependencies, validating focused targets, or protecting dependency build artifacts.
skills/lean-workflow/SKILL.md on GitHub (opens in a new tab)
No skill matches that filter.
Review before you install
A skill is a set of instructions and scripts your agent will follow, and it can run code on your machine. Read the SKILL.md and any scripts first — this listing is not a security review.