Lean4 Skills plugin for Grok Build
Lean 4 theorem proving skill and workflow pack for AI coding agents
How to install Lean4 Skills in Grok Build
1. Add this repo as a plugin marketplace in Grok Build (once per computer):
grok plugin marketplace add cameronfreer/lean4-skills2. Install the plugin:
grok plugin install lean4@cameronfreer/lean4-skills --trustReview before you trust it. --trust lets this plugin's hooks, MCP servers and scripts run code on your computer. It's a community repo that neither xAI nor GrokStacks has reviewed, so read its code first.
This repo's marketplace has 2 plugins; we checked lean4, lean4-contribute. Install another the same way: grok plugin install <name>@cameronfreer/lean4-skills --trust (names under 'What it contains'). Then start a new Grok session, or press r in /plugins, to load it.
Inside Grok Build: type /plugins, open the Marketplace tab, press a and add cameronfreer/lean4-skills, then select lean4 and press i.
Command format: Grok Build's plugin guide
What we checked: on Oct 18, 2026 it installed with grok 1.0.62 and Grok found 16 skills, 15 slash commands, 1 subagent. That's an install check only: we haven't run it in a live Grok session.
What it contains
Skills (16)
lean4— Use when editing .lean files, debugging Lean 4 builds (type mismatch, sorry, failed to synthesize instance, axiom warnings, lake build errors), searching mathlib for lemmas, formalizing mathematics in Lean, finding a counterexample to, refuautoformalize— Autonomous end-to-end formalization from informal sourcesautoprove— Autonomous multi-cycle theorem proving with explicit stop budgetscheckpoint— Save progress with a safe commit checkpointdiagnose— Diagnostics, cleanup, and migration helpdisprove— Guided counterexample search with certified refutationdraft— Draft Lean declaration skeletons from informal claimsformalize— Interactive formalization — drafting plus guided provinggolf— Improve Lean proofs for directness, clarity, performance, and brevitylearn— Interactive teaching and mathlib explorationprove— Guided cycle-by-cycle theorem proving with explicit checkpointsrefactor— Leverage mathlib, extract helpers, simplify proof strategiesreview— Read-only code review of Lean proofsbug-report— Draft a bug report issue for lean4-skillsfeature-request— Draft a feature request issue for lean4-skillsshare-insight— Draft a shareable insight from your session as a GitHub issue
Subagents (4)
lean4:axiom-eliminator— Remove nonconstructive axioms by refactoring proofs to structure (kernels, measurability, etc.). Use after checking axiom hygiene to systematically eliminate custom axioms.lean4:proof-golfer— Golf Lean 4 proofs after they compile; improve proofs for directness, clarity, performance, and brevity without changing semantics. Use after successful compilation to achieve 30-40% size reduction.lean4:proof-repair— Compiler-guided iterative proof repair with two-stage repair escalation (fast → strong). Use for error-driven proof fixing with small sampling budgets (K=1).lean4:sorry-filler-deep— Strategic resolution of stubborn sorries; may refactor across files within the header fence. Use when fast pass fails or for complex proofs.
Hooks (1)
hooks— PreToolUse, SessionStart, UserPromptSubmit
Plugins in this marketplace (2)
lean4— Unified Lean 4 plugin (draft, formalize, autoformalize, prove, autoprove, disprove, checkpoint, review, refactor, golf, learn, diagnose) — LSP-first, scripts fallbacklean4-contribute— Draft and submit bug reports, feature requests, and insights as GitHub issues. Commands may share Lean code snippets with GitHub — review every draft before confirming.
About this listing
Lean4 Skills is a community plugin on GitHub by cameronfreer, written as a Claude Code plugin that Grok Build installs. We install-checked it in Grok; we haven't run it in a live session or reviewed its code. When we installed it, Grok found 16 skills, 4 subagents, 1 hook, 2 plugins in this marketplaces. Its license is MIT. We checked commit b6243b85b9b0. It's one of 82 listings in the Automation category on GrokStacks.
Stacks Weekly: every new Grok Build and Codex plugin, every Tuesday.
One short email for GrokStacks and CodexStacks readers, with each new plugin's install line and what it ships. Subscribe and get the free starter list: 20 Grok Build plugins worth installing first.
You'll get a confirmation email first. Unsubscribe anytime.
Lean4 Skills FAQ
How do I install Lean4 Skills in Grok Build?
Add the repo as a marketplace with grok plugin marketplace add cameronfreer/lean4-skills, then run grok plugin install lean4@cameronfreer/lean4-skills --trust. This repo's marketplace has 2 plugins; we checked lean4, lean4-contribute. Install another the same way: grok plugin install <name>@cameronfreer/lean4-skills --trust (names under 'What it contains'). Then start a new Grok session, or press r in /plugins, to load it.
Is Lean4 Skills an official Grok Build plugin?
No. Lean4 Skills is a community plugin on GitHub by cameronfreer, not in xAI's official Grok Build marketplace. We checked that it installs and what Grok loads from it, but haven't run it in a live Grok session or reviewed its code.
What does Lean4 Skills include?
According to what Grok loaded in our install check, Lean4 Skills includes 16 skills, 4 subagents, 1 hook, 2 plugins in this marketplaces: lean4, autoformalize, autoprove, checkpoint, diagnose, disprove….
Details
- Type
- Plugin
- Category
- Automation
- Source
- Community Claude Code plugin, installs in Grok
- License
- MIT
- Author
- cameronfreer
- Source repo
- https://github.com/cameronfreer/lean4-skills
- Checked commit
b6243b85b9b0- Checked by GrokStacks
- Install-checked in Grok Build on Oct 18, 2026; not run in a live session
Something wrong or missing? Submit or improve this listing. Marketplace listings also refresh automatically every night.
For maintainers: badge and embeds
Maintain Lean4 Skills? Add the badge; it links to this page.
Markdown
[](https://grokstacks.com/p/lean4-skills/)HTML
<a href="https://grokstacks.com/p/lean4-skills/"><img src="https://grokstacks.com/badge.svg" alt="Listed on GrokStacks" width="164" height="28"></a>Embed card (static HTML and inline CSS, no JavaScript). Preview:
<a href="https://grokstacks.com/p/lean4-skills/" style="display:block;max-width:380px;box-sizing:border-box;padding:14px 16px;border:1px solid #2a2e3c;border-radius:12px;background:#0a0b0f;color:#e8eaf0;font:14px/1.45 -apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;text-decoration:none"><span style="display:block;font-size:16px;font-weight:700;color:#e8eaf0">Lean4 Skills</span><span style="display:block;margin:2px 0 8px;font-size:12px;color:#9aa0b1">Community plugin for Grok Build · 16 skills, 4 subagents, 1 hook, 2 plugins in this marketplaces</span><span style="display:block;margin:0 0 10px;color:#c9cdd8">Lean 4 theorem proving skill and workflow pack for AI coding agents</span><span style="font-size:12px;font-weight:600;color:#7c9cff">View on GrokStacks →</span></a>Markdown summary
**[Lean4 Skills on GrokStacks](https://grokstacks.com/p/lean4-skills/)**: Community plugin for Grok Build with 16 skills, 4 subagents, 1 hook, 2 plugins in this marketplaces. Install: `grok plugin install lean4@cameronfreer/lean4-skills --trust` (after `grok plugin marketplace add cameronfreer/lean4-skills`)More on badges, embeds and keeping your listing up to date: GrokStacks for plugin authors.
Also in Automation
Agent Sop
Natural language workflows that enable AI agents to perform complex, multi-step tasks with consistency and reliability.
Agentic Creator Os
Agentic Creator OS (ACOS), by GenCreator: reusable orchestration, skills, commands, agents and local safety tooling for creator workflows.
Agentlas OS
Agent OS: keep specialist agents in a hub, spin up a temporary orchestrator per task. Local-first, works with any model.
Agentrq
AgentRQ: Human-in-loop realtime conversational task manager for AI Agents. Self-hosted! Control your own agents from wherever you want Mobile, Web, Desktop. Designed to work well with your own Claude subscriptions and any harness with ACP support.
Agentspec
Spec-Driven Development framework for Data Engineering — 58 agents, 24 KB domains, 5-phase SDD workflow, 31 commands
Agentsys
AI writes code. This automates everything else · 24 plugins · 49 agents · 44 skills · for Claude Code, OpenCode, Codex, Cursor, Kiro.