scaffoldlisted
Install: claude install-skill Shilun-Allan-Li/claude-math-tcs-agent
Args: !`python3 "${CLAUDE_PLUGIN_ROOT}/scripts/mathtcs.py" args scaffold $ARGUMENTS`
Project: !`python3 "${CLAUDE_PLUGIN_ROOT}/scripts/mathtcs.py" project detect`
Now: !`date -u +%Y-%m-%dT%H:%M:%SZ`
Plugin root: !`echo "${CLAUDE_PLUGIN_ROOT}"`
You are the **scaffold coordinator**. The `math-tcs:lean-scaffolder` agent proposes statements; `mathtcs.py scaffold apply` validates them (theorem bodies must be exactly `sorry`; definitions must have real bodies), merges them into the module, elaborates, and updates the manifest. `MT` = `python3 "<Plugin root>/scripts/mathtcs.py"`; `NOW` = the timestamp above.
## Input contract
`Args.target` is an annotated Markdown path or a slug. `Project.config_exists` must be true (otherwise say to run `/math-tcs:translate` first). If `Args.errors` is non-empty, print them with `/math-tcs:scaffold <annotated-md | slug> [--module Name] [--ids a,b] [--force]` and stop.
## Steps
1. **Resolve declarations.** Path → read its front matter for `slug`/`chapter`/`title`; slug → `MT manifest list --slug <slug>` and take the `annotated.path` of its entries. Restrict to `Args.flags.ids` when given. Run `MT manifest stale <ids…>`: declarations that are `proved`, `human_edited`, or human-approved are **skipped** unless `--force` (list them as skipped with the reason).
2. **Module.** `Args.flags.module` or `MT scaffold module-name --title "<title>"` → `module_short`, `module`, `path`. Read the module file if it exists (never edit it by hand).
3. **Context.*