Cameronfreer Lean4 Skills
cameronfreer-lean4-skills is a Claude Code plugin for the Build phase that adds Lean 4 formalization, LSP-first proving, and agent workflows for auto-prove, refactor, and review.
Install this pack when you want Claude Code to formalize math claims in Lean 4, run LSP-first proof workflows, and auto-prove or refactor theorems with checkpointed scripts.
Add it to Claude Code
Install the plugin in Claude Code. One command, paste-ready.
/plugin install cameronfreer-lean4-skills@cameronfreer/lean4-skillsBuilt to be called by your agent
Skillselion is itself an MCP server. Your agent can pull this entry and a paste-ready install config straight from the API - no copy-paste.
Retrieve this entry with skillselion.get_details("plugin:cameronfreer/lean4-skills") and the paste-ready config with skillselion.get_install_config("plugin:cameronfreer/lean4-skills").
What it does
cameronfreer-lean4-skills is a Claude Code plugin bundle that equips AI coding agents with Lean 4 theorem-proving skills and structured workflows. It targets builders and researchers who treat formal verification as part of the product—protocol specs, critical algorithms, or math-heavy libraries—rather than as a side hobby. The pack emphasizes LSP-first interaction so the agent respects the Lean language server before falling back to heavier autoformalize or autoprove steps, with explicit checkpoints and user confirmation on drafts. Commands cover formalizing informal statements, attempting proofs, refactoring lemmas, generating doctor-style diagnostics, and packaging snippets for GitHub issues or collaboration. With two plugins and a unified keyword surface across prove, review, scripts, and learn flows, it is an advanced agent-tooling layer for Lean 4, not a replacement for reading Mathlib docs or designing proof architecture yourself.
Highlights
- Two-plugin Lean 4 pack: unified formalize, prove, refactor, and review commands for agents
- LSP-first workflow with fallback paths before heavy automation
- Autoformalize and autoprove flows with checkpoint and draft confirmation gates
- Lean4 doctor and insight reports to diagnose broken proofs before you submit
- GitHub-oriented snippets for issues, share, and contribute requests around proof work
Why builders use it
Agents hallucinate informal math steps and builders lack a repeatable Lean 4 loop inside the coding agent.
After install, Claude Code can run gated Lean 4 workflows—formalize, prove with LSP feedback, checkpoint, and report—before you merge sensitive formal code.
At a glance
- Type - Plugin in Development Tools.
- Adoption - 0 installs, 201 stars, 0 votes.
FAQ
Who is cameronfreer-lean4-skills for?
Developers and researchers who already use or plan to use Lean 4 and want Claude Code to follow structured prove, formalize, and review rituals.
When should I use cameronfreer-lean4-skills?
Use it during Build when drafting or repairing Lean 4 proofs, autoformalizing statements, or preparing GitHub-ready proof artifacts.
How do I add cameronfreer-lean4-skills to my agent?
Install the cameronfreer/lean4-skills plugin marketplace entry in Claude Code, ensure Lean 4 and LSP are on your machine, then invoke the pack’s prove or doctor commands in session.
Comments
Share how you use cameronfreer-lean4-skills, gotchas, or tips for other indie builders.
No comments yet - be the first to share how you use it.