/lean:nightly-testingfrom lean
Explains the Lean/Mathlib nightly testing infrastructure: toolchain bumps, adaptation PRs, and nightly CI failure investigation.
Ships in lean. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Lean 4 publishes nightly toolchain builds from master. Batteries and Mathlib each have a nightly-testing branch that tracks these nightlies and runs CI against them. When CI passes, a nightly-testing-YYYY-MM-DD tag is created. When it fails, fixes are needed before the new toolchain can be adopted.
Mathlib's nightly testing lives in a separate fork: leanprover-community/mathlib4-nightly-testing, not on the main leanprover-community/mathlib4 repo. This keeps experimental toolchain branches out of the main repository. When Lean PRs affect Mathlib, lean-pr-testing-NNNN branches are created here automatically.
nightly-testing — tracks the latest Lean nightly. CI runs here determine whether a nightly is usable.nightly-with-mathlib — points to the latest nightly that passes Mathlib CI. Lean PRs that may affect downstream should base off this branch.bump/v4.X.Y — accumulates reviewed adaptations for an upcoming Lean release. Adaptation PRs merge nightly-testing changes into this branch, and master is regularly merged in during release cycles.lean-pr-testing-NNNN — created automatically to test specific Lean PRs against Mathlib.https://leanprover.zulipchat.com/#narrow/channel/nightly-testing has up-to-date status on nightly builds, failures, and adaptation work.
The canonical reference for branch and tag conventions across lean4, Batteries, and Mathlib is: https://leanprover-community.github.io/contribute/tags_and_branches.html. If you are asked to work on nightly-testing, or lean-pr-testing-NNNN branches, you should read that page.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
lean, mathlib, nightly-testing, ci-failures, toolchain-bumps
9 skills in this plugin
/lean-bisectBisect Lean toolchain versions to find where behavior changes. Use when trying to identify which Lean 4 commit caused a regression or behavior change./lean-mweCreate minimal working examples (MWEs) from Lean errors for bug reports. Use when minimizing a Lean error, creating an MWE, or preparing a bug report for lean4 or mathlib4./lean-prPR conventions for the leanprover/lean4 repository. Use when creating pull requests, writing commit messages, or following project conventions for Lean contributions./lean-proofUse when asked to prove something in Lean. Covers one-step-at-a-time proving, error priority, working on the hardest case first, proof cleanup, and handling dependent type rewriting issues./lean4-setupSet up a lean4 repository clone with proper elan toolchains./mathlib-buildBuilding Mathlibnpx claudepluginhub leanprover/skills --plugin leanOther plugins' skills for the same job