Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
lucifer1004 avatar

Typst

  • 1.3k installs
  • 112 repo stars
  • Updated August 3, 2026
  • lucifer1004/claude-skill-typst

typst provides documented workflows for Typst document creation and package development. Use when: (1) Working with .typ files, (2) User mentions typst, typst.toml, or typst-cli, (3) Creating or using

About

The typst skill typst document creation and package development. Use when: (1) Working with .typ files, (2) User mentions typst, typst.toml, or typst-cli, (3) Creating or using Typst packages, (4) Developing document templates, (5) Converting Markdown/LaTeX to Typst # Typst This skill targets Typst 0.15+ by default. For Typst 0.14.2, use the `typst-0.14.2` repository tag for the previous skill snapshot, `typst query` for CLI introspection, or `--channel 0.14.2` with API search. ## Compilation ```bash typst compile document.typ # compile once → PDF typst compile document.typ output.pdf # explicit output path typst compile document.typ -f png # export as PNG image typst compile src/main.typ --root . # set project root for /path imports typst watch document.typ # recompile on change typst eval --in document.typ 'query(heading).len()' # Typst 0.15+ introspection ``` For command options beyond this quick reference, see [cli.md](cli.md).

  • **typst CLI 0.15+ recommended**: Install from https://typst.app or via package manager
  • macOS: `brew install typst`
  • Linux: `cargo install typst-cli`
  • Windows: `winget install typst`
  • **pdftotext** (optional): For text-level output verification

Typst by the numbers

  • 1,336 all-time installs (skills.sh)
  • +46 installs in the week ending Aug 5, 2026 (Skillselion tracking)
  • Ranked #183 of 1,039 Mobile Development skills by installs in the Skillselion catalog
  • Security screen: MEDIUM risk (skills.sh audit)
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

typst capabilities & compatibility

Capabilities
**typst cli 0.15+ recommended**: install from ht · macos: `brew install typst` · linux: `cargo install typst cli` · windows: `winget install typst` · **pdftotext** (optional): for text level output
Use cases
documentation
From the docs

What typst says it does

# Typst This skill targets Typst 0.15+ by default.
SKILL.md
For Typst 0.14.2, use the `typst-0.14.2` repository tag for the previous skill snapshot, `typst query` for CLI introspection, or `--channel 0.14.2` with API search.
SKILL.md
npx skills add https://github.com/lucifer1004/claude-skill-typst --skill typst

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs1.3k
repo stars112
Security audit3 / 3 scanners passed
Last updatedAugust 3, 2026
Repositorylucifer1004/claude-skill-typst

How do I use typst for the task described in its SKILL.md triggers?

Typst document creation and package development. Use when: (1) Working with .typ files, (2) User mentions typst, typst.toml, or typst-cli, (3) Creating or using Typst packages, (4) Developing documen.

Who is it for?

Teams invoking typst when the user request matches documented triggers and prerequisites.

Skip if: Skip when cached docs are missing, the request is a negative trigger, or another sibling skill owns the workflow.

When should I use this skill?

Typst document creation and package development. Use when: (1) Working with .typ files, (2) User mentions typst, typst.toml, or typst-cli, (3) Creating or using Typst packages, (4) Developing document templates, (5) Conv

What you get

Step-by-step guidance grounded in typst documentation and reference files.

  • .typ source file
  • formatted academic paper
  • technical report

By the numbers

  • Splits guidance across styling.md, template.md, and advanced.md reference files
  • Default layout uses US-letter paper with 1in margins and 12pt body text

Files

SKILL.mdMarkdownGitHub ↗

Typst

This skill targets Typst 0.15+ by default. For Typst 0.14.2, use the typst-0.14.2 repository tag for the previous skill snapshot, typst query for CLI introspection, or --channel 0.14.2 with API search.

Compilation

typst compile document.typ              # compile once → PDF
typst compile document.typ output.pdf   # explicit output path
typst compile document.typ -f png       # export as PNG image
typst compile src/main.typ --root .     # set project root for /path imports
typst watch document.typ                # recompile on change
typst eval --in document.typ 'query(heading).len()'  # Typst 0.15+ introspection

For command options beyond this quick reference, see cli.md.

Agent verification — choose by what you need to check (see debug.md for details):

MethodCommandBest for
HTML exporttypst compile doc.typ /dev/stdout -f html --features html 2>/dev/nullText content, structure, headings, tables
PNG exporttypst compile doc.typ page-{p}.png -f pngVisual layout, alignment, spacing, fonts
pdftotexttypst compile doc.typ && pdftotext doc.pdf -Fallback for page-specific content

Minimal Document

#set page(paper: "a4", margin: 2cm)
#set text(size: 11pt)

= Title

Content goes here.

Writing Documents

Starting a new document? Copy the closest recipe from Examples below — it's faster than starting blank and each row names the docs to read next.

When you need to...Read
Learn syntax, imports, functions, control flowbasics.md
Learn data types, operators, string/array methodstypes.md
Style pages, headings, figures, layoutstyling.md
Tables, grids, cell spans, borders, data tablestables.md
Academic papers, bibliography, theorems, equationsacademic.md
Convert from Markdown or LaTeXconversion.md
Use Typst CLI commands and build optionscli.md
Extract data from documents, multi-pass buildsquery.md

Developing Packages and Templates

When you need to...Read
State, counters, in-document query(), XMLadvanced.md
CLI introspection, metadata export, multi-passquery.md
Create a reusable template functiontemplate.md
Create or publish a packagepackage.md
Verify output (HTML/PNG/pdftotext, repr)debug.md
Profile performance (--timings, hotspots)perf.md

basics.md and types.md are also the foundation for developers.

Finding Packages

Search the embedded index of Typst Universe packages (updated weekly):

python3 scripts/search-packages.py "what you need"
python3 scripts/search-packages.py "chart" --category visualization
python3 scripts/search-packages.py --category cv --top 5
python3 scripts/search-packages.py --list-categories

Common Errors

ErrorCauseFix
"unknown variable"Undefined identifierCheck spelling, ensure #let before use
"expected X, found Y"Type mismatchCheck function signature in docs
"file not found"Bad import pathPaths resolve relative to current file
"unknown font"Font not installedUse system fonts or web-safe alternatives
"maximum function call depth exceeded"Deep recursionUse iteration instead
"can only be used when context is known"Missing context wrapperWrap in context { ... }
"unexpected argument"= instead of : for argsNamed args use : syntax: func(name: value)
"variables from outside are read-only"Mutating captured variableUse loop accumulation or state() — see advanced.md
"expected content, found string" (or vice versa)Content/string type mismatchUse [#str-var] to embed string in content
set/show rule has no effectRule placed after contentPlace set/show rules before the content they target

Examples

Copy the closest starter, adjust, compile. For CVs, letters, or slides, search packages: python3 scripts/search-packages.py --category cv (or letter, presentation).

ExampleStart here when you want...Next read
basic-document.typA short note or memobasics.md, styling.md
styled-document.typA multi-section report with page stylingstyling.md, tables.md
template-report.typA reusable template for a seriestemplate.md
tables-showcase.typA data-heavy doc (tables, CSV/JSON)tables.md, types.md
academic-paper.typA paper with citations, theorems, mathacademic.md
query-export.typMetadata export or multi-pass buildsquery.md
package-example/A publishable packagepackage.md

Dependencies

  • typst CLI 0.15+ recommended: Install from https://typst.app or via package manager
  • macOS: brew install typst
  • Linux: cargo install typst-cli
  • Windows: winget install typst
  • pdftotext (optional): For text-level output verification
  • Python 3.10+ (optional): For package search and validation scripts
  • jq (optional): For parsing JSON output from typst eval or typst query in shell scripts

API Reference Search

Search the embedded index of Typst API functions, methods, and constructors:

python3 scripts/search-api.py "image width fit"
python3 scripts/search-api.py "color lighten" --kind method
python3 scripts/search-api.py --name str.position -v
python3 scripts/search-api.py "rightarrow" --kind symbol   # LaTeX names work
python3 scripts/search-api.py "path" --channel 0.14.2      # legacy Typst 0.14 API
python3 scripts/search-api.py --list-categories

Ecosystem Tools

Ecosystem tools: tinymist (LSP/editor), typstyle (formatter), typst-package-check (package validator), tytanic (visual test runner). For package tooling details, see package.md.

Related skills

How it compares

Choose typst over LaTeX skills when you want simpler markup syntax with comparable academic typography and faster iteration in Typst.

FAQ

What does typst do?

Typst document creation and package development. Use when: (1) Working with .typ files, (2) User mentions typst, typst.toml, or typst-cli, (3) Creating or using Typst packages, (4) Developing document templates, (5) Conv

When should I use typst?

Typst document creation and package development. Use when: (1) Working with .typ files, (2) User mentions typst, typst.toml, or typst-cli, (3) Creating or using Typst packages, (4) Developing document templates, (5) Conv

What are common prerequisites?

--- name: typst description: 'Typst document creation and package development.

Is Typst safe to install?

skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.