lean-doctor
Use before Lean proof edits, maintenance or upgrades, or when the project's build baseline is unknown.
- License 许可
- GPL-3.0
- 最近更新
- 2026-11-13
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- lean-doctor
- description
- Use before Lean proof edits, maintenance or upgrades, or when the project's build baseline is unknown.
03 SKILL.md 正文
Establish the baseline
Input: workspace and selected modules. Output: actual versions, dependency state, target coverage, build receipts and blockers. This leaf inspects and runs checks; installation and repairs return to their owners.
Read tool recipes. Record the toolchain, lakefile and manifest, dependency revisions and dirty state. Check available Lean/Lake and optional LSP/search capabilities; missing optional tools do not invalidate a working CLI path.
Run the configured project validation and explicitly build selected modules. Verify that the default target actually covers the intended source files. Capture working directory, command, exit code and output. A cached success is not fresh evidence after changes.
On failure, classify toolchain/dependency availability, existing source errors,
or a missing target. Hand the concrete failure to lean-diagnose; preserve the
baseline distinction so later edits are not blamed for old breakage. Independent
source analysis may continue. Never report a clean baseline from style checks,
editor diagnostics alone, or a command that did not run.
Example: lake build succeeds but Project.Appendix is not a default target;
build that selected module explicitly before accepting the baseline.
04 同仓库更多 Skills
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment
writing-plans
Use when you have a spec or requirements for a multi-step task, before touching code
verification-before-completion
Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always
using-superpowers
Use when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying questions
using-git-worktrees
Use when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback
test-driven-development
Use when implementing any feature or bugfix, before writing implementation code