draft — draft install lean-homology, community, draft install, ide skills, Lean code generation, Mathlib integration, theorem proof development, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Perfect for Math-focused Agents needing Lean code generation for theorem and lemma structures. Draft is a skill that generates Lean code for theorem and lemma structures, enabling developers to create compilable code directly in source files.

Features

Writes actual Lean code directly in source files
Supports research of existing Mathlib and project content
Produces sorry'd declarations that compile
Differs from the builtin /plan command
Enables topic and proof sketch development via $ARGUMENTS
Follows a procedure of researching first and then generating code

# Core Topics

jeffrey-dot-li jeffrey-dot-li
[1]
[0]
Updated: 3/5/2026

Agent Capability Analysis

The draft skill by jeffrey-dot-li is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance. Optimized for draft install, Lean code generation, Mathlib integration.

Ideal Agent Persona

Perfect for Math-focused Agents needing Lean code generation for theorem and lemma structures.

Core Value

Empowers agents to generate compilable Lean code directly in source files, utilizing Mathlib and supporting theorem and lemma structures, enabling efficient proof development and validation via Lean and Mathlib protocols.

Capabilities Granted for draft

Drafting theorem structures for complex mathematical proofs
Generating lemma code for validation and verification
Creating compilable Lean code for direct integration into source files

! Prerequisites & Limits

  • Requires knowledge of Lean and Mathlib
  • Limited to Lean code generation
  • Needs access to Mathlib and project resources for research
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

draft

Install draft, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

Draft Mode

Draft the theorem/lemma structure needed to prove a larger result.

This is NOT the builtin /plan command. The builtin /plan enters a read-only planning mode that produces a markdown plan for user approval before any code is written. /draft writes actual Lean code — sorry'd declarations that compile — directly in the source files.

Topic / proof sketch: $ARGUMENTS

Procedure

  1. Research first — search Mathlib and this project to understand what already exists.
  2. Work interactively with the user to decompose the proof into lemmas.
  3. Write all declarations with sorry proofs — no filled proofs in this mode.
  4. Each lemma should be provable independently in ~30 lines or fewer.
  5. Verify each sorry'd statement compiles with lean_diagnostic_messages before moving on.
  6. Present the full dependency structure: which lemmas feed into which.

Decomposition principle

The top-level theorem should read like a proof outline — each step composing named lemmas with simple plumbing (rw, exact, simp, apply). If the top-level proof still needs >10 lines of non-trivial tactics at any step, a lemma might be missing from the decomposition.

Prefer general, reusable lemma statements over proof-specific helpers. A good decomposition builds tools (e.g., sigmaι_cancel, sigmaι_comp_fst_eq) that apply beyond the current theorem.

Output

A compilable file (or section) of sorry'd declarations with clear names and docstrings. Iterate with the user until the decomposition is right.

Rules

  • Every declaration must compile (with sorry) after writing.
  • Use clear, descriptive names following Mathlib conventions.
  • Include /-- ... -/ docstrings explaining the mathematical content.

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is draft?

Perfect for Math-focused Agents needing Lean code generation for theorem and lemma structures. Draft is a skill that generates Lean code for theorem and lemma structures, enabling developers to create compilable code directly in source files.

How do I install draft?

Run the command: npx killer-skills add jeffrey-dot-li/lean-homology/draft. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for draft?

Key use cases include: Drafting theorem structures for complex mathematical proofs, Generating lemma code for validation and verification, Creating compilable Lean code for direct integration into source files.

Which IDEs are compatible with draft?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for draft?

Requires knowledge of Lean and Mathlib. Limited to Lean code generation. Needs access to Mathlib and project resources for research.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add jeffrey-dot-li/lean-homology/draft. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use draft immediately in the current project.

Related Skills

Looking for an alternative to draft or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI