Agent Skill
2/7/2026typst-copilot
Typst document creation, editing, and compilation assistant. Use when (1) creating Typst documents, (2) converting Markdown/LaTeX to Typst, (3) compiling .typ files to PDF, (4) debugging layout/page flow issues, (5) answering Typst syntax questions.
A
audibleblink
2GitHub Stars
1Views
npx skills add audibleblink/skills
SKILL.md
| Name | typst-copilot |
| Description | Typst document creation, editing, and compilation assistant. Use when (1) creating Typst documents, (2) converting Markdown/LaTeX to Typst, (3) compiling .typ files to PDF, (4) debugging layout/page flow issues, (5) answering Typst syntax questions. |
name: typst-copilot description: Typst document creation, editing, and compilation assistant. Use when (1) creating Typst documents, (2) converting Markdown/LaTeX to Typst, (3) compiling .typ files to PDF, (4) debugging layout/page flow issues, (5) answering Typst syntax questions.
Typst Copilot
Typst v0.14.2 document assistant.
Resources
Scripts
scripts/compile_typst.py <input.typ> [output.pdf]- Compile to PDF
References (read as needed)
references/syntax.md- Markup, math, code modes; function parametersreferences/styling.md- Set rules, show rules, typographyreferences/layout.md- Page setup, grids, tables, figuresreferences/scripting.md- Variables, functions, control flow, importsreferences/conversion.md- Markdown/LaTeX to Typst mappingsreferences/debugging.md- Page flow fixes, layout troubleshooting
Templates
assets/templates/report.typ- Report with title page, TOCassets/templates/paper.typ- Academic two-column paperassets/templates/presentation.typ- Slide deck
Workflow
Document Creation
- Determine type: report, paper, presentation, or custom
- Use template or build from scratch:
#set document(title: "Title", author: "Author")
#set page(paper: "a4", margin: 2.5cm, numbering: "1")
#set text(font: "New Computer Modern", size: 11pt)
#set par(justify: true)
#set heading(numbering: "1.1")
= Introduction
Content...
Markdown/LaTeX Conversion
Read references/conversion.md for complete mappings.
Key differences:
| Markdown/LaTeX | Typst |
|---|---|
**bold** | *bold* |
*italic* | _italic_ |
## Heading | == Heading |
\frac{a}{b} | a/b |
\int | integral |
Compilation
python scripts/compile_typst.py input.typ
Visual Debugging
When PDF has layout issues, read references/debugging.md.
Quick fixes:
// Prevent heading orphans
#show heading: it => block(breakable: false, it)
// Force page break before chapters
#show heading.where(level: 1): it => { pagebreak(weak: true); it }
// Keep table together
#show table: set block(breakable: false)
Best Practices
- Use set rules for defaults, show rules for transformations
- Kebab-case for identifiers:
my-variable - Labels for cross-references:
<fig:chart>,@fig:chart - Output files use
.typextension
Skills Info
Original Name:typst-copilotAuthor:audibleblink
Download