typst
Minimal template
#set document(title: "My Document", author: "Author Name")
#set page(numbering: "1")
#set text(lang: "en")
#set par(justify: true)
= Heading 1
#lorem(50)
Workflow
- Trust local docs first. Training data may be outdated — verify syntax against
docs/ before generating code. - Read relevant documentation via
Read/Grep/Glob on the paths below. - Generate or modify the
.typ source per the user's request. - Validate by running
typst compile <file>.typ (if tool access allows). - Return the final
.typ content and optionally a rendered preview.
Documentation paths
- Guides:
docs/guides/*.md - Tutorials:
docs/tutorial/*.md - Full reference:
docs/reference/**/*.md