batch-to-pdf
Installation
SKILL.md
batch-to-pdf
Produce a single typeset PDF from a Local-Web-Capture batch directory.
Inputs
Either:
- An existing batch id (produced by
batch-capture) — resolve to<capture-root>/batches/<batch-id>/. - A list of URLs — in which case run
batch-capturefirst (without--pdf), then compile its output.
If the user hands over a plain directory that looks like a batch folder (has report.agent.json + articles/), accept it directly.
Preconditions
typstmust be on PATH. If missing, install viacargo install typst-cliorbrew install typst. Do not silently skip.<batch-dir>/report.agent.jsonmust exist — this is the structured manifest the template reads. If only a markdown report exists, regenerate the agent JSON first (re-runbatch-capturein report-only mode).