typst

Review·Scanned 2/18/2026

This skill provides Typst document creation guidance, templates, and examples for using the typst CLI and related tools. It includes explicit shell commands (e.g., typst compile, pdftotext, git clone, npx) and network install URLs such as https://github.com/lucifer1004/claude-skill-typst.

by lucifer1004·v75a4ed9·67.9 KB·80 installs
Scanned from main at 75a4ed9 · Transparency log ↗
$ vett add lucifer1004/claude-skill-typst/typstReview findings below

Typst Skill for Claude Code

A comprehensive skill for Typst document creation and package development.

Installation

One-line install:

npx skills add https://github.com/lucifer1004/claude-skill-typst

Manual install:

git clone https://github.com/lucifer1004/claude-skill-typst.git ~/.claude/skills/typst

Quick Start

# Compile a minimal document
cat > /tmp/hello.typ <<'EOF'
#set page(paper: "a4", margin: 2cm)
= Hello Typst

This is a minimal document.
EOF

typst compile /tmp/hello.typ

Verify output text (optional):

pdftotext /tmp/hello.pdf - | head -20

Contents

FileDescription
SKILL.mdMain entry point with quick reference
basics.mdLanguage fundamentals, types, imports, paths
advanced.mdState, context, query, XML parsing
template.mdTemplate development, set/show rules
package.mdPackage development and publishing
conversion.mdMarkdown/LaTeX to Typst conversion
debug.mdDebugging techniques for agents
perf.mdPerformance profiling and timings
examples/Runnable examples (including perf test)

Usage

Once installed, Claude Code will automatically activate this skill when:

  • Working with .typ files
  • User mentions "typst" or related terms
  • Creating or modifying Typst documents

Examples

# Compile included examples
typst compile ~/.claude/skills/typst/examples/basic-document.typ
typst compile ~/.claude/skills/typst/examples/template-report.typ
typst compile ~/.claude/skills/typst/examples/package-example/lib.typ

Requirements

  • Typst CLI installed
  • pdftotext (optional, for debugging)

License

MIT