typst

typst is a skill for Claude Code, Codex from fmind/dot. It costs 43 tokens per session (1,103 once invoked), scanned A, original, MIT.

A document-writing workflow built around Typst, a typesetting system for creating formatted documents and PDF files.

In plain words
What is it for?
Use it to create reports, academic papers, letters, one-page documents, résumés, and CVs as standalone PDFs.
Why use it?
It provides a repeatable way to format documents and catch broken references, missing fonts, and invalid markup before sharing them.

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/fmind/dot/typst
Any agent
npx skills add fmind/dot --skill typst
Clone the repo
git clone --depth 1 https://github.com/fmind/dot

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/fmind/dot/typst.svg)](https://agentmods.dev/skills/fmind/dot/typst)
Your own site
<a href="https://agentmods.dev/skills/fmind/dot/typst"><img src="https://agentmods.dev/badge/skills/fmind/dot/typst.svg" alt="Measured on agentmods" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,103 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.00043 $0.01103
Opus 5 $0.00022 $0.00551
Sonnet 5 $0.00009 $0.00221
Haiku 4.5 $0.00004 $0.00110

Measured yesterday against content hash 6cce008c4539, 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 yesterday.

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.

skills/typst/SKILL.md · 49 lines

How it starts

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

Typst Document Standard

Canonical standalone documents with Typst, the modern typesetting system replacing LaTeX: papers, reports, letters, one-pagers, CVs. Slide decks stay on Slidev and diagrams on Mermaid per fmind-visuals; websites stay on hugo.

1. Core Stack

  • Compiler: typst via mise — typst compile for PDFs, typst watch for a live-updating preview.
  • Formatter: typstyle for .typ files (checked in check:format, applied in format:typst) plus dprint for Markdown, TOML, and YAML per dprint.
  • Tasks and hooks: mise.toml exposes the canonical vocabulary per mise; lefthook.yml wires pre-commit and pre-push per lefthook.
  • Compile is the test: check:doc renders a scratch PDF so broken references, missing fonts, and bad markup fail before commit; test reuses it as the pre-push gate.

2. Document Scaffolding Workflow

  1. Bootstrap: create the project directory, copy mise.toml and lefthook.yml, then mise trust && mise install.
  2. Sources: start main.typ from main.typ (metadata, page setup, outline, math, citation hooks).
  3. Config files: dprint.json per dprint, .gitignore from gitignore, and LICENSE per project-license when the document is its own repository.
  4. Validate: git init --initial-branch=main, then mise run install, mise run format, mise run check, mise run build; commit sources, never the dist/ PDF — attach it to a release per release.

3. Authoring Standard

  • Packages: import from Typst Universe with a pinned version (#import "@preview/cetz:0.5.2"); there is no lockfile, so the import pin is the pin.
  • Templates over copy-paste: recurring styles (letterhead, report, CV) live in a local template.typ imported by each document.
  • Bibliography: #bibliography("refs.bib") reads BibTeX directly, or Hayagriva YAML for new work; cite with @key.
  • Fonts: Typst bundles Libertinus; vendor brand fonts under fonts/ and compile with --font-path fonts (add the flag in mise.toml); typst fonts lists what is visible.
  • Archival PDFs: publications compile with --pdf-standard a-2b (PDF/A) so they render identically decades from now.

Read the full file on GitHub · 49 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. yesterday First seen · 49 lines · 43 tokens per session scan A 6cce008c4539

Subscribe to this mod's changes

typst is a skill published in the GitHub repository fmind/dot (4 stars, last pushed today), licensed MIT. It adds 43 tokens to every session and 1,103 once invoked, about $0.0002 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-09-03.