Help us improve
Share bugs, ideas, or general feedback.
From lean
Provides Mathlib PR review guidelines for Lean: attributes/API, style (simp squeezing, normal forms, transparency), file size tips, and reference links. Use for PR reviews and code quality checks.
npx claudepluginhub leanprover/skills --plugin leanHow this skill is triggered — by the user, by Claude, or both
Slash command
/lean:mathlib-reviewThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- New definitions should come with associated lemmas and appropriate attributes (`@[simp]`, `@[ext]`, etc.).
Enforces mathlib code quality and style for Lean 4, including formatting, naming conventions, documentation, and proof golfing. Useful when preparing a PR or fixing reviewer feedback.
Guides Mathlib4 pull request conventions for leanprover-community/mathlib4, covering commit messages, workflows, labels, merge processes, and style rules. Use for PR creation and management.
Guides code review practices, highlighting common issues and areas for improvement. Activates when reviewing pull requests or code changes.
Share bugs, ideas, or general feedback.
@[simp], @[ext], etc.).FunLike API for morphism classes, SetLike API for subobject classes.simp calls should NOT be squeezed (replaced with simp only [...]) unless there's a measured performance problem. Unsqueezed simp is more maintainable and doesn't break when lemmas are renamed.s.Nonempty over alternatives. Use hne : x ≠ ⊥ in hypotheses (easier to check), hlt : ⊥ < x in conclusions (more powerful).erw, or rfl after simp/rw usually means the API is missing lemmas.The full review guide and style references: