typst

typst is a skill for Claude Code, Codex from clearsmog/claude-skills. It costs 44 tokens per session (2,745 once invoked), scanned A, original, MIT.

A reference guide for creating and debugging Typst files, including syntax, packages, document layouts, presentations, images, diagrams, and charts.

In plain words
What is it for?
It helps write Typst documents, reports, study guides, and presentations, including choosing tools for diagrams and charts and compiling files correctly.
Why use it?
It provides project conventions and solutions for common Typst errors, making document work more consistent.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps write Typst documents, reports, study guides, and presentations, including choosing tools for diagrams and charts and compiling files correctly.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/clearsmog/claude-skills/typst
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.

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

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/clearsmog/claude-skills/typst/github.svg)](https://agentmods.dev/skills/clearsmog/claude-skills/typst)
Your own site
<a href="https://agentmods.dev/skills/clearsmog/claude-skills/typst"><img src="https://agentmods.dev/badge/skills/clearsmog/claude-skills/typst/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for typst

Your own site · 80×15
<a href="https://agentmods.dev/skills/clearsmog/claude-skills/typst"><img src="https://agentmods.dev/badge/skills/clearsmog/claude-skills/typst.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,745 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00044 $0.02745
Opus 5 $0.00022 $0.01373
Sonnet 5 $0.00009 $0.00549
Haiku 4.5 $0.00004 $0.00275

Measured 9d ago against content hash dc7bc77bac3b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 9d 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.

typst/SKILL.md · 227 lines

How it starts

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

Typst Skill

Current version: Typst 0.14.2 (Dec 2025)

Smart Defaults

If you know nothing else, follow these rules:

  1. Always import @local/qk:2.1.0#import "@local/qk:2.1.0": *
  2. Always use qk-doc or qk-report preset (unless user specifies custom)
  3. Always use touying for presentations (not raw page dimensions) — see references/touying-guide.md
  4. Always #set figure(placement: auto) — prevents blank half-pages
  5. Always add alt: to images — image("path.png", alt: "description")
  6. Always escape $ in content — scan for bare $ before compiling
  7. Default fonts: Libertinus Serif (body), Inter (headings), New Computer Modern Math (math), Fira Code (code)
  8. Default compile: typst compile --root .. Source/<file>.typ
  9. When in doubt about template: Study Guide
  10. When in doubt about visual tool: diagrams → fletcher; charts → see decision tree (simple → cetz-plot, statistical → matplotlib+seaborn, grammar → plotnine, complex → matplotlib)
  11. Always scan project for existing .typ files and match their style (fonts, colors, qk preset) unless user specifies otherwise

New Document Decision Tree

User request → scan for keywords:
  "resume/CV/job"           → CV / Résumé template
  "slides/presentation"     → Presentation (touying — metropolis default)
  "lecture/class/academic"   → Academic Lecture (touying — university theme)
  "essay/thesis/paper"      → Essay
  "report/brief/client"     → Business Report
  "research/analysis"       → Research Report
  "study guide/revision"    → Study Guide
  "reference/glossary"                      → Annotated Reference
  "cheatsheet/reference card/formula sheet" → Cheatsheet template
  "exam/problem set/homework"              → Exam template
  "flashcard/Q&A/quiz"                     → Flashcard template
  ambiguous?                → ask purpose + audience → pick template

Steps:

  1. Auto-detect template from keywords above
  2. Import @local/qk:2.1.0 at top
  3. Use qk-doc or qk-report preset when applicable
  4. Auto-select template. State choice in Phase 3 summary. User can re-invoke with explicit type override if wrong.
  5. Build from references/templates.md
  6. Custom styles are fine — templates are starting points, not constraints

Read the full file on GitHub · 227 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. 9d ago First seen · 227 lines · 44 tokens per session scan A dc7bc77bac3b

Subscribe to this mod's changes

typst is a skill published in the GitHub repository clearsmog/claude-skills (2 stars, last pushed 6mo ago), licensed MIT. It adds 44 tokens to every session and 2,745 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-08-31.