Claude Code plugins for Lean 4 / Mathlib development
npx claudepluginhub mattrobball/mathlib-claude-pluginReview Lean 4 / Mathlib code against community conventions: style, naming, documentation, proof quality, and library design
A Claude Code plugin that reviews Lean 4 / Mathlib code against community conventions.
/mathlib:review launches four parallel review agents that audit your changed .lean files:
| Agent | Focus |
|---|---|
| Style & Naming | Line length, by placement, indentation, snake_case/UpperCamelCase, symbol dictionary, Type* |
| Documentation | Copyright headers, module docstrings, docBlame, section organization, import discipline |
| Proof Quality | Tactic selection (grind, gcongr, positivity), redundant sequences, @[simp]/@[ext] attributes, sorry detection |
| Generality | Type class assumptions (Ring vs Semiring), FunLike/SetLike patterns, simp normal form, API completeness |
After all agents report, it fixes issues directly, runs lake exe runLinter and lake exe lint-style, and summarizes what changed.
# Add the marketplace
/plugin marketplace add YOUR_GITHUB_USER/mathlib-claude-plugin
# Install the plugin
/plugin install mathlib@mathlib-tools
Or test locally without installing:
claude --plugin-dir ~/misc/mathlib-claude-plugin
In any Lean 4 / Mathlib project with uncommitted changes:
/mathlib:review
The review checklist is compiled from:
Apache-2.0
Production-ready workflow orchestration with 84 marketplace plugins, 192 local specialized agents, and 156 local skills - optimized for granular installation and minimal token usage
Directory of popular Claude Code extensions including development tools, productivity plugins, and MCP integrations
Curated collection of 154 specialized Claude Code subagents organized into 10 focused categories