lean-diagnose
Use when Lean reports an error, a tactic stalls, a build regresses or a formal proof attempt exposes an unexpected goal.
- License 许可
- GPL-3.0
- 最近更新
- 2026-11-13
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- lean-diagnose
- description
- Use when Lean reports an error, a tactic stalls, a build regresses or a formal proof attempt exposes an unexpected goal.
03 SKILL.md 正文
Diagnose the failing obligation
Input: exact command, full error/goal, baseline and current source. Output: reproduced cause, minimal checked repair or a concrete blocker.
Apply Superpowers' systematic-debugging method within the active Lean task.
Reproduce the smallest relevant failure without erasing evidence. Classify it:
toolchain/cache/build setup; missing import or changed API; elaboration,
coercion/universe/instance mismatch; tactic choice; or mathematical falsehood.
Inspect full types and available instances before adding hypotheses. Search
actual declarations with lean-search. In a scratch probe, vary one suspected
cause and compile the result. For a suspected false claim, test boundary cases
and return the counterexample to the coordinator; do not patch the theorem's
meaning to satisfy the compiler.
Keep only a repair that passes the relevant original command and affected targets. Revert only this attempt's edits when it fails, preserving concurrent work. Repeated identical attempts are not new evidence. If blocked, return the goal, attempted hypotheses, outputs and next discriminating experiment.
Example: a module-system file rejected by raw lake env lean may need Lake's
module-aware driver; that setup failure is not evidence that its theorem is false.
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