Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
Christopher Boone avatar

Scaffold Lean Library

  • 2 repo stars
  • Updated July 24, 2026
  • cboone/agent-harness-plugins

Scaffold a Lean 4 library project with Mathlib or PFR deps, Lake test/lint wiring, GitHub Actions CI, text linting, and agent instructions.

About

Scaffold-lean-library generates a Lean 4 library project wired with Mathlib or PFR dependencies, Lake test and lint targets, GitHub Actions CI, text linting, and agent instructions. It gives formal-methods authors a ready-to-build library skeleton. Aimed at Lean developers starting a new library.

  • Mathlib or PFR deps
  • Lake test/lint wiring
  • GitHub Actions CI
  • Agent instructions

Scaffold Lean Library by the numbers

  • Data as of Jul 25, 2026 (Skillselion catalog sync)
/plugin marketplace add cboone/agent-harness-plugins
/plugin install scaffold-lean-library@agent-harness-plugins

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
repo stars2
Last updatedJuly 24, 2026
Repositorycboone/agent-harness-plugins

What it does

Scaffold a Lean 4 library project with Mathlib or PFR deps, Lake test/lint wiring, GitHub Actions CI, text linting, and agent instructions.

README.md

Scaffold Lean Library

Scaffold a Lean 4 library project with Mathlib or PFR dependencies, Lake test/lint wiring, GitHub Actions CI, text linting, and agent instructions.

Type: Skill Trigger: /scaffold-lean-library

Installation

See the marketplace install instructions.

What It Does

Generates the standard files for a Mathlib-downstream Lean 4 library: lean-toolchain, lakefile.toml, entrypoint manifests, Prelude modules, compile-time test wiring, bin/bootstrap-worktree, Makefile, split Lean and text-lint workflows, Markdown and spelling lint configs, editor settings, AGENTS.md, README.md, LICENSE, CHANGELOG.md, and optional paper-backed reference stubs.

The project can depend directly on Mathlib or on the PFR formalization's entropy API. PFR projects import PFR.ForMathlib.Entropy.Basic and require an explicit PFR git ref.

Usage

/scaffold-lean-library

The skill prompts for project name, description, top-level Lean namespace, Lean toolchain version, dependency family, dependency git ref, paper-backed mode, GitHub username, and copyright holder when those values are not already provided.

Examples

  • "scaffold Lean library" starts the interactive scaffolding process.
  • "new Mathlib project" creates a Mathlib-downstream library.
  • "create a PFR downstream formalization" creates a Lean library depending on teorth/pfr.

See Also

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.