agentleFS
r-irber-irbe/proof-skills/skills/lean-doc-improvement/SKILL.md

lean-doc-improvement

Skill3 starsChanged 24 days agoApache-2.0View on GitHub

USE FOR: Update academic papers, technical reports, and documentation based on results from Lean 4 formalization. DO NOT USE FOR: extracting requirements from papers (@lean-doc-requirements). TRIGGERS: update paper, doc improvement, paper revision.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    USE FOR: Update academic papers, technical reports, and documentation based on results from Lean 4 formalization.

    line 23
  2. Distinctive:

    TRIGGERS: update paper, doc improvement, paper revision, documentation update from Lean, doc-feedback consumer.

    line 38
  3. Very specific:

    STOP if the question is about extracting requirements from the paper — delegate to @lean-doc-requirements.

    line 50
  4. Very specific:

    STOP if a fresh blueprint is needed — delegate to @lean-blueprint.

    line 51
  5. Very specific:

    STOP if the Lean result is wrong (not the paper) — delegate to @lean-proof-review first.

    line 52

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Lean 4 Results-to-Document Improvement

Systematically update documents when Lean formalization produces new insights, corrections, or metrics.

Routing

  • USE FOR: Update academic papers, technical reports, and documentation based on results from Lean 4 formalization. Use when formal verification reveals paper imprecisions, missing hypotheses, sharper bounds, new insights, or when metrics need synchronization. Covers paper appendix updates, verification tables, erratum entries, insight propagation, and metric synchronization between Lean and documents.
  • DO NOT USE FOR: extracting requirements from papers (use @lean-doc-requirements); blueprint generation (use @lean-blueprint); report compilation (use @lean-report).
  • TRIGGERS: update paper, doc improvement, paper revision, documentation update from Lean, doc-feedback consumer.

Workflow

  1. Triage the change: which paper/document needs updating, which Lean result triggers it, and what's the delta.
  2. Pick the section/template from the body matching the update class (definition, theorem, proof-strategy, errata).
  3. Produce the patch with precise pointers to the Lean source + before/after text.
  4. Hand off: to @lean-doc-feedback for the doc-sync record, to @lean-report if the paper feeds into a report, to @lean-zettelkasten.

Recovery & STOP

  • STOP if the question is about extracting requirements from the paper — delegate to @lean-doc-requirements.
  • STOP if a fresh blueprint is needed — delegate to @lean-blueprint.
  • STOP if the Lean result is wrong (not the paper) — delegate to @lean-proof-review first.

Handoffs

  • Predecessors: agent:gateway, skill:lean-research.
  • Successors: skill:lean-doc-feedback, skill:lean-report, skill:lean-zettelkasten.

Detailed reference

Full content for lean-doc-improvement lives in references/lean-doc-improvement-handbook.md. Load that file when the skill is convened; the SKILL.md only carries the dispatch contract and the parts index.

SectionTopic
Part 1Trigger Events
Part 2Document Update Types
Part 3Update Workflow
Part 4LaTeX Integration Patterns
Part 5Feedback to Other Skills
Part 6Metric Dashboard

See also

  • ../../references/lean-doc-improvement-handbook.md — Full handbook (extracted from this skill)
  • ../lean-doc-feedback/SKILL.md — Successor
  • ../lean-report/SKILL.md — Successor
  • ../lean-zettelkasten/SKILL.md — Successor

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.