typst-writer

typst-writer is a skill for Claude Code, Codex from YPares/agent-skills. It costs 66 tokens per session (2,837 once invoked), scanned A, original, MIT.

Writing guidance for Typst, a markup language used to typeset documents such as reports and papers. It explains Typst's own syntax and common differences from programming languages.

In plain words
What is it for?
Writing and editing .typ documents, defining Typst functions, handling data and content blocks, and checking Typst package usage.
Why use it?
It helps avoid syntax mistakes when creating or editing Typst files. It also points to official documentation and package resources when the language or available packages are uncertain.

Skill for Claude CodeCodex

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

Part of the research-skills plugin — 4 skills shipped together

Good fit Writing and editing .typ documents, defining Typst functions, handling data and content blocks, and checking Typst package usage.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ypares/agent-skills/typst-writer
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 YPares/agent-skills --skill typst-writer
Clone the repo
git clone --depth 1 https://github.com/YPares/agent-skills

Made for: Claude Code, Codex.

Or install research-skills, the plugin that ships this one along with the rest of its 4 skills.

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-writer

README.md
[![agentmods](https://agentmods.dev/badge/skills/ypares/agent-skills/typst-writer/github.svg)](https://agentmods.dev/skills/ypares/agent-skills/typst-writer)
Your own site
<a href="https://agentmods.dev/skills/ypares/agent-skills/typst-writer"><img src="https://agentmods.dev/badge/skills/ypares/agent-skills/typst-writer/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-writer

Your own site · 80×15
<a href="https://agentmods.dev/skills/ypares/agent-skills/typst-writer"><img src="https://agentmods.dev/badge/skills/ypares/agent-skills/typst-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,837 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00066 $0.02837
Opus 5 $0.00033 $0.01418
Sonnet 5 $0.00013 $0.00567
Haiku 4.5 $0.00007 $0.00284

Measured 11d ago against content hash 613c98bc51f9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

typst-writer scanned grade A with 1 finding 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 11d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl "http://localhost:<searxng-port>/search?q=typst+diagram&format=json&categories=repos" | jq '.results[] | select(.engines[] == "github")'
typst-writer/SKILL.md · 347 lines

How it starts

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

Typst Writer

This skill provides guidance for writing correct Typst code, with emphasis on avoiding common syntax errors from conflating Typst with other languages.

Core Principles

  1. Never assume syntax from other languages applies - Typst has its own semantics, especially for data structures
  2. Verify uncertain syntax - When unsure, check official documentation
  3. Use idiomatic patterns - Follow Typst conventions for clean, maintainable code

Quick Syntax Reference

Critical distinctions:

  • Arrays: (item1, item2) - parentheses
  • Dictionaries: (key: value, key2: value2) - parentheses with colons
  • Content blocks: [markup content] - square brackets
  • NO tuples - Typst only has arrays

For detailed syntax rules and common patterns, see references/syntax.md.

Documentation Resources

Official Documentation

Searching for Typst Packages

Typst Universe (the official package registry) doesn't have a programmatic API, but you can search for packages via GitHub:

  • Most packages are hosted on GitHub
  • Use gh search, or SearXNG's repos search (see the searxng-search Skill)
  • Example: Search for "typst diagram" or "typst table" in repositories
With GitHub CLI

Direct GitHub search examples:

# Search for typst repos about some topic
gh search repos --language "typst" --json "url,language,description" diagram arrows ... 

# List all files in a given repo
gh search code --repo "Jollywatt/typst-fletcher"

# In a repo, search through all files of some type
gh search code --repo "Jollywatt/typst-fletcher" --extension "md" arrow node ...
Via SearXNG

Requires searxng-search Skill

curl "http://localhost:<searxng-port>/search?q=typst+diagram&format=json&categories=repos" | jq '.results[] | select(.engines[] == "github")'

Read the full file on GitHub · 347 lines

Files

What ships with it

2 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. 11d ago First seen · 347 lines · 66 tokens per session scan A 613c98bc51f9

Subscribe to this mod's changes

typst-writer is a skill published in the GitHub repository YPares/agent-skills (30 stars, last pushed today), licensed MIT. It adds 66 tokens to every session and 2,837 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

pdf

Summarize document text and identify its main claims, evidence, and unanswered questions.

Kyure-A/agent-skills-nix · 19 tokens

officecli-academic-paper

Use this skill to build academic-style .docx output: journal / conference / thesis chapters carrying formal citation style (APA, Chicago, IEEE, MLA), numbered equations, figure & table cross-references, footnotes/endnotes, bibliography, or multi-column journal layout. Trigger on: 'research paper', 'journal paper'…

iOfficeAI/OfficeCLI · 141 tokens

officecli-word-form

Use this skill to create fillable Word forms (.docx) with real Content Controls (SDT) + legacy FormField checkboxes + MERGEFIELD mail-merge placeholders + document protection. Trigger on: 'fillable form', 'form fields', 'content controls', 'SDT', 'word form', 'fill in', 'only editable fields', 'protect document'…

iOfficeAI/OfficeCLI · 224 tokens

pdf

A set of instructions for working with PDF files, which are documents designed to preserve their layout across devices.

agentscope-ai/QwenPaw · 95 tokens

officecli-data-dashboard

Use this skill to build a multi-element Excel dashboard — Dashboard sheet on open, multiple formula-driven KPI cards, multiple charts, sparklines, and conditional formatting — from CSV or tabular input. Trigger on: 'dashboard', 'KPI dashboard', 'analytics dashboard', 'executive dashboard', 'metrics dashboard', 'CSV to…

iOfficeAI/OfficeCLI · 157 tokens

officecli

Create, analyze, proofread, and modify Office documents (.docx, .xlsx, .pptx) using the officecli CLI tool. Use when the user wants to create, inspect, check formatting, find issues, add charts, or modify Office documents.

iOfficeAI/OfficeCLI · 56 tokens