/autoform:roadmapfrom autoform
Build, inspect, or visualize a source-grounded mathematical roadmap and theorem dependency DAG in an Autoform Markdown blueprint. Use for source research, repository-wide inventories of existing and planned mathematics, scope, coverage, and milestones.
Ships in autoform. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Maintain an ordered mathematical book whose formalizable leaves form a
dependency DAG of coherent, pull-request-sized units. The vault under
blueprint/ is the source of truth. Consult the format and command
reference only for exact syntax or CLI usage, and
the worked example, a
deliberately partial vault, only when a concrete source-to-DAG pattern helps.
There is no autoform on PATH. Run it from the Lean project root as
uv run --project "<AUTOFORM_PLUGIN_ROOT>" autoform, where the root is the
absolute plugin directory holding skills/ and pyproject.toml; give a
subagent that prefix.
Honor a request explicitly limited to inspection, audit, status, or visualization. Otherwise, a direct user invocation of Roadmap explicitly requests persistent execution of one complete planning pass over the source boundary named by the user or already adopted by the vault.
When the runtime exposes a model-callable Goal lifecycle, use it before other work: continue a compatible active Goal or create one for a complete, validated, reconciled, and committed roadmap of that source boundary, with no token budget unless the user supplied one. Never replace an unrelated active Goal, ask the user to invoke another command, shell out to a host's interactive goal command, or substitute todos or repository files for native continuation. Without a compatible Goal, complete the same pass in the current run.
Treat source discovery, coarse coverage, chapter boundaries, fine decomposition, and validation as internal checkpoints; pause for approval only if the user requested staged review. Make reversible choices and record assumptions. Ask one concise question only after inspection cannot identify or access the source, or when incompatible scopes remain and choosing one would discard accepted work.
When the adopted boundary is a repository-wide library, global wiki, or other
existing codebase, project-owned Lean is a primary mathematical source, not
prior art to omit. Before planning, inventory every in-scope tracked module and
public mathematical declaration, plus declaration-like wishlist or conjecture
entries and adopted planning sources; say how private helpers, tests, generated
code, aggregate import roots, and imported dependencies are treated; reconcile
each in-scope declaration to a roadmap article, an exact grouped ledger, or an
evidenced coverage disposition; and record each module and declaration name,
with any separate literary provenance, under blueprint/sources/.
Keep existing, wishlist, conjectural, and planned mathematics in one book and
DAG. DECOMPOSED means represented by declaration articles, so it may describe
mathematics already in Lean. A checked local declaration is valid grounding.
Inspect the repository before writing. Preserve accepted material and unrelated changes; send missing infrastructure to Setup and Lean execution to Formalize.
Work from exact source passages. When the boundary includes existing Lean, first
extract module and declaration docstrings and nearby comments alongside the Lean
signatures; they locate and describe code but never replace the adopted source.
Record stable source locations, assumptions, and uncovered prerequisites under
blueprint/sources/, labelling project-authored specifications as such. Notes
there are site pages. Under statement review (blueprint/.autoform-review),
each origin: cited article must also link an in-vault, non-Markdown snapshot
of its source with an exact #L<start>-L<end> range, as the review
contract
says. External research is read-only, and contacting people requires permission.
Do not invent a statement, motivation, proof narrative, dependency, citation, or
historical attribution the sources do not support. Read Setup's Zulip
workflow only for requested Zulip work.
Before adding a formalizable article, search the pinned Mathlib checkout, and
run autoform search over the blueprint and every usable shared library for its
result and for each intermediate result its proof proves or cites, as the
search steps say.
## Proof depends on lists only the articles that proof uses, usually none;
its proof sketch gives the source's own route, and ## Informally uses links
what that route cites. A library result a proof needs that has no article yet
gets one, proved from the library and linked under ## Proof depends on.## Depends on or ## Proof depends on,
and from the coverage row, instead of adding a node.Enumerate the entire adopted boundary in blueprint/coverage/README.md, with
the dispositions the coverage
contract defines.
DEFERRED needs an explicit user decision or concrete external blocker; treat
any other DEFERRED row as queued work, and never defer merely to shorten the
run. Compare the table with the source structure yourself.
Write milestone pages under blueprint/roadmap/ by mathematical significance,
then one fine article per coherent unit with one unique main result. Do not turn
existing formalization into fictional future work. Put genuine statement
prerequisites under ## Depends on, proof-only prerequisites under ## Proof depends on, and a result the source's proof cites that the planned Lean proof
will not use under ## Informally uses, which no status counts. Never delete or
reverse a genuine article edge to make a chapter-level or scope-level projection
acyclic. Record facts only with autoform links set blueprint <PATH> KEY=VALUE
or --unset KEY, run it on new pages for a durable article_id, and report an
article it says to edit by hand.
Articles hold only informal mathematics in English and TeX, plus, in a vault
about a library, how it states and proves each result. A
statement holds no Lean or code and links a source's numbered result to its
article. Put Lean-side findings, such as Mathlib gaps, prior art and candidate
names, in blueprint/.implementation-notes/<article_id>.md, never a transcript,
secret or machine-local path, and never link a note from an article; a shared
library declaration that does not apply goes on the source's page instead. Move
an article with autoform move BLUEPRINT OLD NEW, which rewrites what names its
path; a page written afresh takes the old page's article_id line in the same
edit. Deleting or merging an article deletes its annotations (only its entries
in a shared file), moves its note's useful parts into a surviving article's
note, and deletes the note. Use no note while check warns
.implementation-notes is a link. An article written from existing Lean is a
self-contained read-back of
its declaration under a mathematical title, not its name, keeping the
docstring's citations but no claim the Lean does not prove unless a remark names
the docstring as its source. Before the final validation, run the two-reader
check in Agent Review's roadmap rubric on it and apply the fixes it confirms.
Claims are optional; use them when Formalize would:
acquire a formalizable leaf's claim_target from autoform work context before
revising it, in one acquire with the dependents the revision will retract,
passing your own --worker-id; re-acquire the set before committing and release
it once the revision is on the branch Formalize works from, or else before
reporting. After a failed acquire, release what claim list shows as yours; if
refused, the article is taken: leave it and report it. Claims write refs to the
board's remote, which is outward-facing, so make sure the request covers them.
When a revision changes a statement, or Human Review requests a Lean revision,
retract the article as step 6 of the revision
contract
says. A Human-Review Lean revision is recorded in the implementation note, and a
dependent found only now means releasing and acquiring the whole set again under
the no-hold-and-wait rule when the project uses claims. Before the revision
lands on the branch Formalize works from, and so before releasing any claim,
bring it up to date with that branch by rebase or merge, retract any revised
article that gained lean: there, repeat the Finish step's final validation,
and commit the retraction as a new commit. When the revision lands later through
a pull request, report the revised articles that had no lean: on that branch
at your last update, and list them in the pull request's description if you open
it, so whoever merges it retracts any that have gained lean: by then.
open_statements in roadmap/README.md is a project policy; absent means
strict, and open
statements
explains it. Change it only on the user's request and only once CI meets its
requirements, and turn it back off only once no open statement remains.
Assert statement: formalized or proof: formalized only after exact
verification, and mathlib: true only when verified Mathlib declarations
state the result. For
declaration leaves, record exact compiled names in lean. Set
proof: formalized for a theorem or lemma only after checking that its proof is
complete and contains no placeholder or proof-wanted mechanism. An axiom or
wanted placeholder does not justify a formalized proof; a definition of a
conjecture proposition formalizes its statement representation, not the
conjecture. Hand deeper trust and axiom review to Agent Review.
Use catalog: module only as a source inventory for one existing Lean module.
It may accompany exposition, but names, signatures, status tables, and imports
do not replace reader-facing mathematical prose. Its assertion keys describe the
whole tracked module: set statement: formalized only when all inventoried
public declarations exist, and proof: formalized only when every included
implementation or proof is complete under the repository's trust policy. The
catalog rules say which
names go in lean and which only in the declaration ledger; a keyword-declared
public name left out of lean or unresolved means the catalog must not carry
formalized assertions. A catalog holds back what depends on it, so a dependent
that needs one result links the declaration article instead.
For a large source, divide independent sections among available agents while
retaining one owner for global coverage, status semantics, and dependency
consistency. Reconcile every affected source and milestone page, the coverage
contract, blueprint/README.md, and the repository README.md.
After the final edit, run autoform check and autoform audit with
--lean-root ., refresh the dependency summary with autoform-visualize, and
resolve every finding introduced by this work or inside the adopted boundary,
and every warning: line inside it, except a lean-target-deprecated that the
revision contract expects. For a check warning that the docstring of a shared
library declaration or its module cites the blueprint's sources, reuse or record
the declaration as the CLI reference says,
with a reason that holds for every article reaching the source, revisited when
the boundary changes; review a module when its warning first appears. Report
unrelated pre-existing findings and check's frontmatter warning instead of
widening scope or migrating, and any finding or warning only a Lean edit clears,
such as a limit on existing code or an open statement's lean-target-wanted:
Formalize changes that code, and only when the user asks. Commit the vault, with
the refreshed summary where the repository tracks it, only after this final
validation; pushing is outward-facing and requires a user request.
Finish, and mark an active Goal complete, only when the adopted boundary has no
MAPPED rows, every DECOMPOSED area links source-grounded declaration
articles, every INVENTORIED area links exact catalogs, affected pages and the
graph agree, and every change from the pass is committed; a repository inventory
also needs every in-scope declaration reconciled. Report the material delta,
evidence, remaining blockers, and the next execution frontier, and for a
repository inventory the existing/formalized versus wishlist/conjectural/planned
counts and the reconciliation gaps. Before reporting, follow Debrief
Orchestrator with --skill roadmap.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
mathematical-roadmap, theorem-dag, lean, autoform, blueprint
npx claudepluginhub facebookresearch/autoform-bot --plugin autoform6 skills in this plugin
/agent-reviewJudge an Autoform mathematical roadmap or Lean formalization with explicit, evidence-based rubrics. Use for an independent agent audit of source coverage, DAG quality, statement faithfulness, proof integrity, axioms, sorries, or Mathlib contribution quality; do not use merely to prepare a visualization for a human reviewer./debrief-orchestratorOnce a Setup, Roadmap, or Formalize run is over, record what got in the way: friction from the user's local setup, kept apart from friction with AutoformBot itself, and draft an AutoformBot issue from the latter for the user to review and send. On by default; `AUTOFORM_DEBRIEF=0` turns it off./formalizeFormalize ready leaves from an existing Autoform Markdown roadmap in Lean, using native agents and recording only verified progress. Use for proof execution; send missing scope or DAG structure to Roadmap./human-reviewPrepare and guide human inspection of an Autoform roadmap or formalization through its Obsidian vault and rendered blueprint site. Use when a person wants to browse, approve, reject, or discuss scope, dependencies, progress, source links, or Lean artifacts visually; do not substitute an autonomous agent verdict for the human's judgment./setupSet up, inspect, or repair repository infrastructure for an Autoform Lean project, including the Lean/Mathlib shell, an in-repository Obsidian-compatible blueprint vault, ignore rules, MkDocs, GitHub Pages, and verification CI, with optional Zulip community synchronization. Use for new repositories, environment repair, publication setup, infrastructure checks, or an explicitly requested Zulip project sync; do not choose mathematical scope or build the roadmap and theorem DAG.Other plugins' skills for the same job