lean-blueprint
Skill3 starsChanged 24 days agoApache-2.0View on GitHub
USE FOR: generating Lean blueprint, annotating theorems with @[blueprint], scaffolding blueprint directory. DO NOT USE FOR: writing Lean proofs (use @lean-proof), opening Lean/Mathlib PRs (use @lean-pr). TRIGGERS: blueprint, leanblueprint, LeanArchitect, dependency-graph.
In this repository65 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ai-guard-judge-evalSkill
- applied-data-information-securitySkill
- applied-engineering-disciplinesSkill
- applied-legal-reasoningSkill
- epistemic-discovery-engineSkill
- epistemic-mappingSkill
- hol-metamath-adapterSkill
- isabelle-isar-adapterSkill
- itp-cross-portingSkill
- lean-ai-formalizationSkill
- lean-applied-reasoningSkill
- lean-axiom-closureSkill
- lean-bigraph-modelingSkill
- lean-bisectSkill
- lean-buildSkill
- lean-causal-reasoningSkill
- lean-competitive-mathSkill
- lean-convergence-verificationSkill
- lean-core-onlySkill
- lean-dag-visualizerSkill
- lean-deep-auditSkill
- lean-doc-feedbackSkill
- lean-doc-improvementSkill
- lean-doc-requirementsSkill
- lean-enforcementSkill
- lean-formalization-breakdownSkill
- lean-gatewaySkill
- lean-integration-protocolSkill
- lean-knowledge-formalizationSkill
- lean-math-analysisSkill
- lean-math-discreteSkill
- lean-math-dynamicalSkill
- lean-math-foundationsSkill
- lean-math-optimizationSkill
- lean-math-stochasticSkill
- lean-mweSkill
- lean-nested-learningSkill
- lean-package-researchSkill
- lean-pedagogical-expositionSkill
- lean-proof-refactorSkill
- lean-proof-repairSkill
- lean-proof-reviewSkill
- lean-proofSkill
- lean-prSkill
- lean-quality-engineSkill
- lean-replay-verificationSkill
- lean-reportSkill
- lean-researchSkill
- lean-retroactive-auditSkill
- lean-retro-methodologySkill
- lean-review-councilSkill
- lean-security-formalizationSkill
- lean-setupSkill
- lean-specificationSkill
- lean-tautology-triageSkill
- lean-upstream-portingSkill
- lean-vendor-substrateSkill
- lean-zettelkastenSkill
- math-product-managementSkill
- The first 60 shown.
The file
Files
lean-blueprint
⚠️ MANDATORY (hot-tier): the gates in §Behavioural rules and the Persist step in §Workflow are CI-enforced. Skipping Persist = incomplete, regardless of artefact quality (FSIA-R-11-09).
Routing
- USE FOR: generating a navigable formal blueprint from a Lean 4 codebase; annotating definitions and
theorems with
@[blueprint]; scaffoldingblueprint/withleanblueprint new; building blueprint LaTeX vialake build :blueprint; rendering the dependency graph and web view. - DO NOT USE FOR: authoring new Lean proofs (use
@lean-proof); opening Lean/Mathlib PRs (use@lean-pr); editing prose docs (use@lean-doc-improvement). - TRIGGERS: blueprint, leanblueprint, LeanArchitect, dependency-graph.
Workflow
- Discover [discover] — read inputs, list Lean modules, locate
lakefile.leanand priorblueprint/, and audit current coverage vialean_blueprint({"action": "status", "formalizationDir": "...", "blueprintDir": "..."}). - Plan [discover] — propose per-module annotator fan-out; generate proof outlines with
lean_blueprint({"action": "skeleton", "symbol": "..."}) orlean_blueprint(action: "skeleton"); STOP if confidence < 80 %. - Annotate [execute] — scaffold LaTeX entries via
lean_blueprint({"action": "scaffold", "symbol": "..."}) orlean_blueprint(action: "scaffold"), and apply@[blueprint]annotations and LaTeX statements inside owned scope. - Build [execute] — run
lake build :blueprint.
Recovery & STOP
lake build :blueprintfails ×3 → STOP, escalate to human.- Scope drift (touch outside
blueprint/or annotated.leanfiles) → immediate STOP, re-anchor. - Confidence < 80 % on annotation strategy → STOP, ask.
- Context degradation signals (≥2 from AGENTS.md) → recommend fresh session.
Handoffs
- Predecessors / successors: see FM
handoffs(grammar from ADR-0080). - Source spec:
specs/lean/blueprint/requirements.md— every G-rule traces to an AC there. - Related ADRs: ADR-0076, ADR-0080.
Detailed reference
Full encyclopedic reference, decision trees, and lookup tables live in
references/lean-blueprint-handbook.md .
See also
../../references/lean-blueprint-handbook.md-- Completelean-blueprintHandbook../lean-gateway/SKILL.md-- Top-level skill router
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

