typst-writing-document
Installation
SKILL.md
Writing and Validating Typst Documents
Use this skill when the user wants help drafting, fixing, or validating Typst documents. Everything needed for grammar lookup lives in this file so it can be copied into another repository without sibling scripts or reference files.
Workflow
- Start with the grammar lookup section in this file and pick the closest existing pattern before inventing new syntax.
- Copy the smallest matching example, then adapt it incrementally.
- Run
typst compileafter each meaningful edit. Any non-zero exit code is a blocking failure. - After compile succeeds, use HTML output to inspect rendered text and document structure when wording or content ordering matters.
- Use SVG output plus Playwright MCP when you need to inspect visual layout, spacing, numbering, line breaks, or emphasis.