Write correct and idiomatic Typst code for document typesetting. Use when creating or editing Typst (.typ) files, working with Typst markup, or answering questions about Typst syntax and features. Focuses on avoiding common syntax confusion (arrays vs content blocks, proper function definitions, state management).
87
81%
Does it follow best practices?
Impact
96%
1.09xAverage score across 3 eval scenarios
Advisory
Suggest reviewing before use
Typst data structures and custom functions
Arrays use parentheses
100%
100%
No tuple terminology
100%
100%
Array element access
50%
100%
Function definition syntax
100%
100%
Content vs code blocks
100%
100%
Hash prefix in markup
100%
100%
State with state()
33%
100%
Context block for state access
100%
100%
Let assignment in code blocks
100%
100%
Dictionary syntax
100%
100%
Template usage and bibliography
Template import syntax
100%
100%
#show: template application
100%
100%
Explicit date in metadata
0%
100%
Bibliography file with URLs
100%
100%
In-text citations present
100%
100%
Bibliography included in doc
100%
100%
No uncited sources
100%
100%
Packages fully qualified
100%
100%
Arrays not square brackets
100%
100%
Bibliography file created
100%
100%
Package discovery and document querying
Package search method
30%
0%
Fully qualified package import
100%
100%
typst query in script
100%
100%
Typst selector used
100%
100%
Query output processed
80%
100%
Document uses #include for split
100%
100%
Arrays with parentheses
100%
100%
No array bracket indexing
100%
100%
Search documented in log
100%
100%
Package import no typos
100%
100%
aed1afb
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.