typst

typst is a skill for Claude Code, Codex from clearsmog/claude-skills. It costs 44 tokens per session (3,179 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 3,179 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.03179
Opus 5.5 $0.00018 $0.01272
Sonnet 5.5 $0.00009 $0.00636
Haiku 4.5 $0.00004 $0.00318

Measured 24d ago against content hash d113bfb87b0e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 24d 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 · 239 lines

How it starts

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

Typst Skill

Current version: Typst 0.15.x

Smart Defaults

Defaults, unless the user or the project's existing files say otherwise:

  1. Import @local/qk:2.2.0 — #import "@local/qk:2.2.0": *
  2. Use the qk-doc or qk-report preset
  3. Use touying for presentations (not raw page dimensions) — see references/touying-guide.md
  4. #set figure(placement: auto) — prevents blank half-pages
  5. Add alt: to images — image("path.png", alt: "description")
  6. 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. Template when the request doesn't settle it: Study Guide
  10. Visual tool when the content doesn't settle it: diagrams → fletcher; charts → see decision tree (default → lilaq; extremely simple → cetz-plot (rare); statistical kde/pair → matplotlib+seaborn; grammar → plotnine; complex with Python data → matplotlib)
  11. Scan the project for existing .typ files and match their style (fonts, colors, qk preset)

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.2.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 · 239 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. 24d ago Changed d113bfb87b0e
  2. 1mo ago Changed · +12 lines f4d64bea5c70
  3. 1mo 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 24d ago), licensed MIT. It adds 44 tokens to every session and 3,179 once invoked, about $0.0002 per session on Opus 5.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.

Related

Other skills, from other repositories

replicate-runner

Use when run AI models on Replicate cloud API. Deploy image generation, video creation, audio processing, and custom models without managing infrastructure. Use when working with replicate runner.

oyi77/1ai-skills · 40 tokens

media-generation

Generate and edit images, create videos, synthesize speech, transcribe and translate audio using multiple AI providers (OpenAI, Google, ElevenLabs, Deepgram, Fal, Luma, Replicate, Stability, Runway, OpenRouter, Edge TTS). Use when the user asks to create media assets, generate pictures, make videos, produce…

onimusya/media-gen · 88 tokens

happiness-skill

A Chinese-language guide to happiness based on reducing unmet wants, focusing on the present, and treating happiness as a trainable skill.

kangarooking/cangjie-skill · 136 tokens

asc-subscription-localization

Bulk-localize subscription, subscription-group, and in-app purchase display names across App Store locales using asc, including API 4.4.1 version-scoped v2 resources. Use when filling or updating subscription/IAP names and descriptions without App Store Connect UI work.

rorkai/app-store-connect-cli-skills · 60 tokens

motion

Reconstruct a skeleton from calibrated mesh projections and sequential VLM joint annotations, then fit joints and skin weights. Generate motion from joint-position trajectories, rhythm and contact constraints through IK; refine bone orientation against the action, then export, retarget and validate on the target mesh.

OpenDCAI/GameFactory-3A · 0 tokens

remotion-best-practices

Best practices and domain knowledge for building videos programmatically with Remotion (videos in React/TypeScript, rendered to MP4). Use whenever writing or editing Remotion code — scaffolding a video project, animating with interpolate/spring over useCurrentFrame(), sequencing scenes and transitions…

guanyang/open-agent-hub · 116 tokens