lean-blueprint

Generate and annotate Lean blueprints with LaTeX and web rendering.

2|Updated May 26, 2026
One-click install
npx skills add https://github.com/r-irbe/proof-skills --skill lean-blueprint
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lean-blueprint
Source: https://github.com/r-irbe/proof-skills/tree/main/skills/lean-blueprint
Command: npx skills add https://github.com/r-irbe/proof-skills --skill lean-blueprint

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Lean developers spend time managing blueprint annotations and rendering tooling; lean-blueprint automates blueprint generation, annotation scaffolding, and LaTeX/web rendering.

Core Features & Use Cases

  • Annotate Lean code with @blueprint to generate navigable documentation.
  • Scaffold blueprint directory structures for new Lean projects.
  • Build LaTeX from annotated modules and render interactive web views of the blueprint.
  • Use case: convert a Lean codebase into a structured blueprint with diagrams and cross-links for review.

Quick Start

Run leanblueprint new to scaffold the blueprint directory and start annotated workflows.

Frequently Asked Questions about lean-blueprint

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a Lean blueprint from my existing Lean4 codebase?

To generate a Lean blueprint, annotate your Lean4 code with @blueprint tags and run the leanblueprint workflow. This analyzes modules, extracts annotations, and scaffolds the directory structure for LaTeX export and web rendering.

What is the best way to automate LaTeX export and web rendering for Lean4 projects?

Automating LaTeX export and web rendering for Lean4 projects is done by running the blueprint workflow stages. The process extracts annotated code, builds LaTeX documents, and renders interactive web views of the blueprint artifacts.

Does lean-blueprint work with Lean projects using lake tooling?

Yes, lean-blueprint applies specifically to Lean projects using lake tooling. It integrates with the lake build system to analyze, annotate, scaffold, extract, render, and persist blueprint artifacts end-to-end.

How do I scaffold a blueprint directory structure for a new Lean project?

To scaffold a blueprint directory structure, run the leanblueprint new command. This initializes the required directory layout and configuration files to start annotated workflows and generate navigable documentation.

Can I convert a Lean codebase into a structured blueprint with diagrams and cross-links?

Yes, you can convert a Lean codebase into a structured blueprint with diagrams and cross-links. By applying @blueprint annotations and executing the rendering stages, the tool generates navigable documentation for review.