typst

typst is a skill for Claude Code, Codex from pavelzw/skill-forge. It costs 61 tokens per session (2,707 once invoked), scanned A, original, BSD-3-Clause.

A markup-based system for creating formatted documents and PDFs, including academic papers, scientific writing, equations, tables, and page layouts.

In plain words
What is it for?
Use it to write theses, research papers, mathematical documents, and reusable document templates.
Why use it?
It helps create structured documents without writing layout instructions from scratch. Its simpler syntax can make document formatting easier to manage.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/pavelzw/skill-forge/typst
Any agent
npx skills add pavelzw/skill-forge --skill typst
Clone the repo
git clone --depth 1 https://github.com/pavelzw/skill-forge

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for typst

README.md
[![agentmods](https://agentmods.dev/badge/skills/pavelzw/skill-forge/typst.svg)](https://agentmods.dev/skills/pavelzw/skill-forge/typst)
Your own site
<a href="https://agentmods.dev/skills/pavelzw/skill-forge/typst"><img src="https://agentmods.dev/badge/skills/pavelzw/skill-forge/typst.svg" alt="Measured on agentmods" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,707 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00061 $0.02707
Opus 5 $0.00030 $0.01354
Sonnet 5 $0.00012 $0.00541
Haiku 4.5 $0.00006 $0.00271

Measured 5d ago against content hash b2c74f6448c0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

typst scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

recipes/typst/SKILL.md · 412 lines

How it starts

The opening of the file, as written. The whole thing — 412 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Typst Skill

Typst is a modern markup-based typesetting system designed for scientific documents. It serves as an alternative to LaTeX with faster compilation (milliseconds, not seconds) and simpler syntax.

When to Use This Skill

Use Typst when:

  • Creating academic papers, theses, or scientific documents
  • Writing documents with mathematical equations
  • Need faster compilation than LaTeX
  • Want a simpler markup syntax than LaTeX
  • Creating documents with complex tables and layouts
  • Building reusable document templates

Three Syntactical Modes

Typst operates in three modes:

Mode Purpose Switching
Markup Document structure (default) Default mode
Math Mathematical formulas $...$ for inline, $ ... $ with spaces for display
Code Scripting features Prefix with #

Escaping Special Characters

CRITICAL: When writing literal text in markup mode, you MUST escape special characters with a backslash (\). An unescaped # is the most common source of compilation errors — it tells Typst to enter code mode, so any literal # in text (e.g. "C#", "issue #42") must be written as \#.

Markup Mode Special Characters

Character Meaning Escape Example
\ Escape character / line break \\ path\\to\\file
# Code expression \# Tweet at us \#ad, C\#, \$1.50 per \#item
* Bold text \* 5 \* 3 = 15
_ Italic text \_ file\_name\_here
` Raw text / code \`
$ Math mode \$ costs \$1.50
< Label \< a \< b in text
@ Reference / citation \@ email\@example.com
~ Non-breaking space \~
' Smart quote \'
" Smart quote \"

Note: =, -, +, / only have special meaning at the start of a line (headings, lists, term lists). They do not need escaping mid-sentence.

Math Mode Special Characters

Read the full file on GitHub · 412 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 412 lines · 61 tokens per session scan A b2c74f6448c0

Subscribe to this mod's changes

typst is a skill published in the GitHub repository pavelzw/skill-forge (24 stars, last pushed today), licensed BSD-3-Clause. It adds 61 tokens to every session and 2,707 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.