typst

Write Typst documents and compile them to PDF with diagnostics.

465|41|Updated Aug 4, 2026
One-click install
npx skills add https://github.com/autonomous-ai/openharness --skill typst-autonomous-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typst
Source: https://github.com/autonomous-ai/openharness/tree/main/store/agents/typst/skills/typst
Command: npx skills add https://github.com/autonomous-ai/openharness --skill typst-autonomous-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Producing polished PDFs — papers, reports, letters, slides — usually requires heavy desktop publishing tools or fragile LaTeX setups. This Skill lets you write documents in Typst's markup language and compile them to PDF with a pinned compiler, getting precise file:line:col diagnostics on every build. ## Core Features & Use Cases - Document authoring in Typst markup: headings, set rules, tables, figures, math equations, code blocks, variables, functions, and bibliographies. - Compilation with diagnostics: run the verdict script or the pinned typst binary to produce PDFs and read structured errors and warnings. - Live preview workflow: watch mode recompiles on save, and document titles plus headings become PDF bookmarks for the viewer pane. - Use Case: Write a conference paper in main.typ with figures under assets/, compile it with the verdict script, fix reported errors by line number, and iterate until the PDF is clean. ## Quick Start Ask the agent to write a one-page report in Typst with a title, a table, and a figure, then compile it to PDF and show any diagnostics.

Frequently Asked Questions about typst

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I compile a Typst document to PDF?

Run the verdict script with python3 pointing at your .typ file, or call the pinned typst binary directly with typst compile --root . main.typ out/main.pdf. The verdict returns the PDF path plus errors and warnings with file:line:col locations.

How do I add tables, figures, and math in Typst?

Use #table with column and alignment settings for tables, #figure with image() and a caption for figures, and dollar-sign delimiters for inline or display math. Reference figures with labels like @fig-plot after declaring them with angle-bracket labels.

Can Typst make presentation slides?

Yes. Set the page to presentation-16-9 with #set page(paper: "presentation-16-9") and separate slides with #pagebreak(). The compiled PDF works as a slide deck, and headings become PDF bookmarks for navigation.

Why is my Typst font not rendering correctly?

Typst silently falls back when a named font is missing, so the PDF may look wrong without any error. Name installed system fonts or ship a .ttf under a fonts directory and pass --font-path fonts, then visually check the compiled PDF.

Why does my Typst compile fail with a missing image error?

Images must live under the assets directory and be referenced with relative paths; a missing file is a hard compile error. Check the file:line:col in the diagnostics to find the broken reference and confirm the asset exists.