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, refuting, or disproving a Lean statement, or learning Lean 4 concepts. Also trigger when the user asks for help with Lean 4, mathlib, or lakefile. Do NOT trigger for Coq/Rocq, Agda, Isabelle, HOL4, Mizar, Idris, Megalodon, or other non-Lean theorem provers.
$npx -y skills add cameronfreer/lean4-skills --skill lean4Installs into the current project.
Run `npx skills use "https://github.com/cameronfreer/lean4-skills" --skill "cameronfreer/lean4-skills/lean4"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/cameronfreer/lean4-skills" that are relevant to the current task. Run `npx skills add "https://github.com/cameronfreer/lean4-skills"` and select the relevant skills, then follow their instructions.