typst-writer

typst-writer is a skill for Claude Code from YPares/agent-skills. It costs 66 tokens per session (3,014 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 Code

Written for Claude Code: shipped in a Claude Code plugin.

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.

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 3,014 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. 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.03014
Opus 5.5 $0.00026 $0.01206
Sonnet 5.5 $0.00013 $0.00603
Haiku 4.5 $0.00007 $0.00301

Measured 2mo ago against content hash 0995adf1400b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

typst-writer 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 2mo 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-writer/SKILL.md · 377 lines

How it starts

The opening of the file, as written. The whole thing — 377 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 ...

When to Consult Documentation

  • Uncertain about function signatures or parameters
  • Need to verify syntax for less common features
  • Looking for built-in functions or methods
  • Exploring available packages (e.g., fletcher for diagrams, drafting for margin notes, tablex for advanced tables)

Read the full file on GitHub · 377 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. 2mo ago Changed · +30 lines 0995adf1400b
  2. 3mo 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 (32 stars, last pushed yesterday), licensed MIT. It adds 66 tokens to every session and 3,014 once invoked, about $0.0003 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-30.

Related

typst-writer compared with skills from other repositories

typst-writer next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
typst-writerYPares/agent-skillsSkill32yesterdayMITA66Claude Code
pdfKyure-A/agent-skills-nixSkill2926d agoMITA19Claude Code, Codex
officecli-academic-paperiOfficeAI/OfficeCLISkill34k4d agoApache-2.0A141Claude Code, Codex
officecliiOfficeAI/OfficeCLISkill34k4d agoApache-2.0A56Claude Code, Codex
office-file-processxstongxue/best-skillsSkill3.3k12d agoApache-2.0A209Claude Code, Codex
huashu-md-to-pdfalchaincyf/huashu-skillsSkill2.4ktodayMITA83Claude Code, Codex
officecli-word-formiOfficeAI/OfficeCLISkill34k4d agoApache-2.0C224Claude Code, Codex