batch-render-typst
Installation
SKILL.md
batch-render-typst
Render N PDFs in one pass: one Typst template + a directory of JSON payloads → one PDF per payload.
Inputs
- Template path —
.typfile. If the user just rannew-typst-template, default to that output. - Data directory — folder of
*.jsonfiles, one per document. - Output directory — where PDFs land. Default
<data-dir>/../out/. - Concurrency (optional) — how many
typst compileprocesses to run in parallel. Default 4.
Pre-flight
- Verify
typstis on PATH. If not, instruct install (cargo install typst-clior distro package). Do not auto-install. - Verify the template uses the
#let data = json("data.json")pattern. If it hardcodes paths, fix or warn. - Verify at least one JSON file exists in the data directory.