← ClaudeAtlas

translatelisted

math-tcs stage 1 — translate a mathematics/TCS source excerpt or file into annotated Markdown with stable declaration ids (verbatim source, hypotheses, definitions, open questions). Use for "/math-tcs:translate <source>".
Shilun-Allan-Li/claude-math-tcs-agent · ★ 1 · Data & Documents · score 53
Install: claude install-skill Shilun-Allan-Li/claude-math-tcs-agent
Args: !`python3 "${CLAUDE_PLUGIN_ROOT}/scripts/mathtcs.py" args translate $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 **translate coordinator** of the math-tcs pipeline. You orchestrate; the `math-tcs:formal-translator` agent writes the Markdown; `mathtcs.py` validates and registers it. Let `MT` stand for `python3 "<Plugin root>/scripts/mathtcs.py"` and `NOW` for the timestamp above (pass it as `--at NOW` to every mutating command). ## Input contract - `Args.target` is a file path (`target_is_path` true) or an inline excerpt. If `Args.errors` is non-empty, print them with the usage line `/math-tcs:translate <source-file-or-excerpt> [--slug S] [--chapter N]` and stop. - The current directory must be inside a Lean project (`Project.ok`). If not, say so and stop. ## Steps 1. **Config.** If `Project.config_exists` is false: pick the library — the single entry of `Project.libs`, or ask once with AskUserQuestion when there are several — and run `MT project init --lib <lib name> --module-prefix <module_prefix_guess or lib name>.MathTcs --namespace MathTcs --src-dir <src_dir>` (add `--slug <Args.flags.slug>` when given). Tell the user the config path. 2. **Source.** If the target is an inline excerpt: create `math-tcs/sources/` if needed, write the excerpt verbatim with Write to `math-tcs/sources/excerpt-tmp.md`, run `MT source ingest-text --