| name | export-analysis |
| description | Render a markdown report-analyst output to a styled PDF via Typst (preferred) or pandoc (fallback). Use when the user wants the analysis bundle as a shareable document rather than raw markdown. |
When to use
A previous skill (typically comprehensive-analysis, but any of the analysis/extraction outputs) has produced a markdown file and the user wants a PDF or styled deliverable.
How to run
- Confirm the input markdown path. If not given, look for the most recent
*-analysis.md in the working directory.
- Choose renderer:
- Typst (preferred) — better tables, page numbering, headers/footers. Convert markdown to Typst via pandoc:
pandoc <input>.md -o <input>.typ, then typst compile <input>.typ <output>.pdf.
- Pandoc direct (fallback) —
pandoc <input>.md -o <output>.pdf --pdf-engine=xelatex (or wkhtmltopdf). Use when Typst isn't available.
- Save PDF next to the source markdown by default, or to a path the user specifies.
- Return the PDF path.
Output
Source: <input-md>
Renderer: <typst | pandoc-xelatex | pandoc-wkhtmltopdf>
Output: <output-pdf>
If the renderer fails (missing dependencies), report the missing tool clearly and suggest the install command for the user's distro. Don't silently fall back to a renderer the user didn't approve.