/autoform:setupfrom autoform
Sets up, inspects, or repairs Autoform Lean project infrastructure: Lean/Mathlib shell, Obsidian blueprint vault, MkDocs, GitHub Pages, CI, and optional Zulip sync. For new repos, environment repair, or publication setup.
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.
Inspect before writing and preserve existing files. Set AUTOFORM_PLUGIN_ROOT
to the loaded plugin's root and inspect an existing project read-only:
AUTOFORM_PLUGIN_ROOT="<loaded-plugin-root>"
PROJECT="<existing-project>"
uv run --project "$AUTOFORM_PLUGIN_ROOT" autoform project inspect "$PROJECT" --json
Infer safe local defaults from the request and repository. If a material choice is missing, ask once for the run type (new, repair, or inspect), UpperCamelCase package name, target directory, and whether publication is wanted. Without explicit publication approval, make no remote changes.
The Cabannes thesis project shows a set-up project with a deliberately partial DAG. Read it, but do not copy it.
For a new repository, create the project in an absent target directory:
AUTOFORM_PLUGIN_ROOT="<loaded-plugin-root>"
TARGET="<absent-target>"
PACKAGE="<UpperCamelCaseName>"
uv run --project "$AUTOFORM_PLUGIN_ROOT" autoform project new "$TARGET" --package "$PACKAGE"
Project setup gives
project new's version flags, what it writes, and its error codes. Keep the
recommended release from autoform project versions unless the user needs
another Lean version (at least v4.27.0). On project-parent-unsafe, choose
another parent or, with the user's agreement, run chmod g-w,o-w on it.
If the user names a donor (never search for one), <PKGS> is its
.lake/packages, or the donor if it is a packages folder. Before any Lake
command runs in the new project, lake update repl included, copy each git
package the new lake-manifest.json locks that .lake/packages lacks and whose
<PKGS>/<NAME> is no symbolic link, prints that rev for git rev-parse HEAD,
and prints nothing for git --no-optional-locks status --porcelain: mkdir -p .lake/packages && cp -Rc <PKGS>/<NAME> .lake/packages/ (cp -R --reflink=auto
on Linux). If pgrep -x lake finds a Lake process, copy nothing and say why.
Autoform's library catalog,
$AUTOFORM_PLUGIN_ROOT/autoform_cli/project/libraries.json, lists shared Lean
libraries that project new --library <NAME> adds, required and locked. Offer
only entries with offered: true, and only for a new project (never inspect,
repair, or init). Ask in the single round of questions and state
the cost: the project moves to the library's release, its first build
downloads the library and its dependencies (about 270 MB for ATLAS), and the
modules it imports build locally. A yes may come in the request itself; a
request naming a catalog library uses it even when it is not offered, unless it
names another repository or revision, which makes it a library outside the
catalog. Without a yes, add no library, including in a headless run.
On a yes, pass --library <NAME> with no version flags, validate as below,
and run autoform library list on the project, as the
CLI reference
shows: report the entry's git and pinned commit if it lists the library as
usable, otherwise its reason, without claiming the library works. If a fetch
fails, report the error and that the project builds once a retry from the failed
validation step succeeds. Never run a bare lake update in such a project.
For a library outside the catalog, pass --lean-toolchain and --mathlib-rev
set to what its lean-toolchain and lake-manifest.json lock at the revision
the user names, writing 4.34.1 as v4.34.1; a read-only fetch of both files
is fine. Ask when the revision or either value is unknown, and report the pair
and why. Do not add the require or fetch the library into the project.
project new writes the complete Autoform vault, site, ignore rules, and CI.
For an incomplete existing repository, run autoform init through the same
uv run --project "$AUTOFORM_PLUGIN_ROOT" prefix: it writes the whole vault and
keeps existing files. Run autoform migrate links <PROJECT>/blueprint --write
the same way on a vault either just created, if this run wrote the workflows. Do
not hand-build any of the vault. When either omits CI, run the init it names
on the same target with the commit the plugin was installed from, or report that
CI was not configured. Never invent a ref or workflow source.
Neither project new nor init adds the Lean REPL that the REPL tool runs.
Require leanprover-community/repl under the name repl at the commit of the
upstream tag naming the project's Lean version or, failing that, its vX.Y.0
release, as the bundled example pins the commit of tag v4.32.0 for v4.32.2.
If neither tag exists in
git ls-remote --tags https://github.com/leanprover-community/repl.git, ask
the user instead of guessing. Then run lake update repl so an existing
manifest locks it without moving Mathlib, and commit the manifest.
For an existing project whose lakefile lacks either of
enableArtifactCache = true and restoreAllArtifacts = true, offer to add the
missing one; a lakefile.lean takes them in its package declaration. Never
enable the cache without restoreAllArtifacts.
The CLI reference
says when Pages deploys, and open
statements
what the generated verify workflow audits. Where several Lake projects back the
roadmap, offer init --no-verify-workflow; Pages then publishes unverified
commits. init also writes .github/CODEOWNERS.autoform.example, which GitHub
does not read; the
template says
how to activate it. Do not guess owners; activate it only with names the user
gives, never silently. Report that new rules cannot protect their own activation
unless equivalent coverage already exists on the pull request's base branch.
After it runs, fill in what only a human or a source can supply: the project
description in blueprint/README.md, the coverage contract, and a verified
repo_url, the formalization project's own repository, never AutoformBot's.
Pass --repository-url to autoform init only once the remote exists. When a
deployed site exists, feature its verified canonical URL in the root
README.md, never an inferred or pending one.
Adding workflow files is a local repository edit. Creating a remote, pushing, or enabling Pages are separate outward-facing actions; perform them only when the user requests them. Pin third-party Actions and the Autoform CLI source to immutable commits.
Validate the prepared repository before reporting it ready. Build Lean first:
lake update # only when the project has no lake-manifest.json
lake update repl # after adding the REPL require when a manifest exists
lake exe cache get # skip only when the project has no Mathlib dependency
lake build
lake build @repl/repl
Then run the publication sequence in the
CLI reference,
keeping --require-declarations.
Publication is opt-in: files under blueprint/ become public site content, with
derived progress, graph pages, and a publication manifest that names blueprint
files, hidden ones included. Show that boundary, confirm the exact repository
and visibility, default to private, and warn that private Pages may require a
paid GitHub plan. When approved, prepare the commit, remote, Pages source, and
push; otherwise leave the workflow inert. If credentials, hosting, or repository
settings block publication, report the minimal owner action required.
Zulip synchronization is a separate opt-in outward-facing action. When the user asks to discover community context or announce and coordinate the project, follow the shared Zulip workflow. Do not infer consent to post from repository setup, roadmap work, or permission to search.
Before reporting, follow Debrief Orchestrator
with --skill setup. Report the Lean toolchain, the packages copied from a
donor and those fetched instead, with why, vault path, CI and Pages files,
validation results, the publication decision, and any one-time GitHub setting
the user must still apply. State that no sources were scoped, roadmap nodes
created, or proofs started, then hand the repository to Roadmap.
agents/openai.yaml (opens in a new tab)assets/cabannes-thesis-project/README.md (opens in a new tab)assets/cabannes-thesis-project/blueprint/README.md (opens in a new tab)assets/cabannes-thesis-project/blueprint/atlas.json (opens in a new tab)assets/cabannes-thesis-project/blueprint/coverage/README.md (opens in a new tab)assets/cabannes-thesis-project/blueprint/links/roadmap/README.jsonl (opens in a new tab)assets/cabannes-thesis-project/blueprint/links/roadmap/_defaults.json (opens in a new tab)assets/cabannes-thesis-project/blueprint/links/roadmap/full-supervision/README.jsonl (opens in a new tab)assets/cabannes-thesis-project/blueprint/links/roadmap/full-supervision/definitions/full-supervision.jsonl (opens in a new tab)assets/cabannes-thesis-project/blueprint/links/roadmap/infimum-loss/README.jsonl (opens in a new tab)assets/cabannes-thesis-project/blueprint/links/roadmap/infimum-loss/definitions/eligibility.jsonl (opens in a new tab)assets/cabannes-thesis-project/blueprint/links/roadmap/infimum-loss/definitions/non-ambiguity.jsonl (opens in a new tab)assets/cabannes-thesis-project/blueprint/links/roadmap/infimum-loss/theorems/infimum-loss.jsonl (opens in a new tab)assets/cabannes-thesis-project/blueprint/links/roadmap/infimum-loss/theorems/non-ambiguity-determinism.jsonl (opens in a new tab)assets/cabannes-thesis-project/blueprint/links/roadmap/infimum-loss/theorems/supervision-non-ambiguous.jsonl (opens in a new tab)assets/cabannes-thesis-project/blueprint/links/roadmap/infimum-loss/theorems/supervision-recovery.jsonl (opens in a new tab)assets/cabannes-thesis-project/blueprint/roadmap/README.md (opens in a new tab)assets/cabannes-thesis-project/blueprint/roadmap/full-supervision/README.md (opens in a new tab)assets/cabannes-thesis-project/blueprint/roadmap/full-supervision/definitions/full-supervision.md (opens in a new tab)assets/cabannes-thesis-project/blueprint/roadmap/infimum-loss/README.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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./roadmapBuild, continue, inspect, or visualize a source-grounded mathematical roadmap and theorem DAG in an existing Autoform Markdown blueprint. Use for source research, repository-wide inventories of existing and planned mathematics, scope, coverage, milestones, and roadmap articles; do not create repository infrastructure or prove Lean declarations.Other plugins' skills for the same job