typst-writer
SKILL.md
Typst Writer
This skill provides guidance for writing correct Typst code, with emphasis on avoiding common syntax errors from conflating Typst with other languages.
Core Principles
- Never assume syntax from other languages applies - Typst has its own semantics, especially for data structures
- Verify uncertain syntax - When unsure, check official documentation
- Use idiomatic patterns - Follow Typst conventions for clean, maintainable code
Quick Syntax Reference
Critical distinctions:
- Arrays:
(item1, item2)- parentheses - Dictionaries:
(key: value, key2: value2)- parentheses with colons - Content blocks:
[markup content]- square brackets - NO tuples - Typst only has arrays
For detailed syntax rules and common patterns, see references/syntax.md.