typst-author

Generate, edit, and troubleshoot Typst documents using bundled syntax reference documentation.

Updated Aug 26, 2026
One-click install
npx skills add https://github.com/Yjj0333/skills-manager-backup --skill typst-author-yjj0333
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: typst-author
Source: https://github.com/Yjj0333/skills-manager-backup/tree/main/typst-author
Command: npx skills add https://github.com/Yjj0333/skills-manager-backup --skill typst-author-yjj0333

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Writing correct Typst code is hard when model knowledge of the language is outdated or hallucinated. This Skill grounds every answer in a bundled copy of the official Typst documentation, so generated .typ files compile and follow current syntax. ## Core Features & Use Cases - Document authoring and editing: Create new .typ projects from a minimal template or edit existing files with verified syntax for set/show rules, arrays, dictionaries, and content blocks. - Syntax and reference answers: Resolve questions about functions, parameters, styling, scripting, math, and layout by consulting the local docs/ reference instead of relying on memory. - Validation and formatting workflow: Run typstyle checks after edits, probe uncertain runtime behavior via typst query with metadata labels, and validate with typst compile. - Use Case: Ask for a two-column academic paper with numbered headings and a bibliography; the Skill checks the local reference for page setup and table syntax, writes the .typ source, formats it, and compiles it to PDF. ## Quick Start Create a Typst document for a lab report with a title page, numbered sections, and a table, then compile it to PDF.

Frequently Asked Questions about typst-author

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

FAQPage Schema
How do I create a new Typst document from scratch?▼

Start from the minimal document example with set document, set page, and set text rules, then add headings and content. The Skill verifies syntax against the bundled docs and runs typst compile to validate the result.

How do I fix common Typst compilation errors?▼

Errors like "expected content" or "expected expression" usually mean a missing # in markup or code used where markup is expected. Check the troubleshooting section and verify function names against the local reference docs.

What is the difference between set and show rules in Typst?▼

Set rules configure optional parameters on element functions, such as set text(font: ...). Show rules target selected elements to apply set rules or transform output, for example show heading: it => block[#emph(it.body)].

Does Typst support arrays and dictionaries like other languages?▼

Yes, but both use parentheses: arrays are (item1, item2) and dictionaries are (key: value). Typst has no tuples, and array elements are accessed with arr.at(0), not bracket indexing.

Why does my Typst document show unknown font family warnings?▼

The warning appears when the specified font is not installed. Remove the font specification to use system defaults; the warning does not prevent compilation since Typst falls back to available fonts.

When should I run a probe instead of reading the Typst docs?▼

Probe only when the bundled docs do not settle runtime or evaluation behavior. Pipe a metadata expression through stdin, e.g. printf '#metadata(1 + 2) <probe>\n' | typst query - "<probe>" --field value --one.