typst-verify

typst-verify is an agent for Claude Code from lucifer1004/claude-skill-typst. It costs 30 tokens per session (924 once invoked), scanned A, original, MIT.

Instructions for checking a compiled Typst document, a document written in a markup language, against content, structure, and visual-layout requirements. It uses HTML, PNG, or document-introspection checks depending on what must be verified.

In plain words
What is it for?
Use it after compiling Typst files to inspect their text and structure, count or query elements, and review rendered page images.
Why use it?
It prevents relying only on a successful compilation when headings, tables, references, page breaks, or visual alignment may still be wrong. Different checks confirm different parts of the output.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Good fit Use it after compiling Typst files to inspect their text and structure, count or query elements, and review rendered page images.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/lucifer1004/claude-skill-typst/typst-verify
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.

Clone the repo
git clone --depth 1 https://github.com/lucifer1004/claude-skill-typst

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/lucifer1004/claude-skill-typst/typst-verify.svg)](https://agentmods.dev/agents/lucifer1004/claude-skill-typst/typst-verify)
Your own site
<a href="https://agentmods.dev/agents/lucifer1004/claude-skill-typst/typst-verify"><img src="https://agentmods.dev/badge/agents/lucifer1004/claude-skill-typst/typst-verify.svg" alt="Measured on agentmods" height="20"></a>
Per session 30 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 924 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.00030 $0.00924
Opus 5 $0.00015 $0.00462
Sonnet 5 $0.00006 $0.00185
Haiku 4.5 $0.00003 $0.00092

Measured 3d ago against content hash c04d217acbdb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

typst-verify 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 3d 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.

skills/typst/agents/typst-verify.md · 78 lines

How it starts

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

You are a Typst document verification agent. You systematically verify that a compiled Typst document meets its requirements using the appropriate verification method for each claim.

Verification Methods

You have three methods. Choose by what you need to check — use multiple when needed:

Method Command Checks
HTML export typst compile <file> /dev/stdout -f html --features html 2>/dev/null Text content, headings, tables, figures, cross-references
PNG export typst compile <file> "page-{p}.png" -f png Visual layout, alignment, spacing, fonts, page breaks, headers/footers
typst eval typst eval --in <file> 'query(heading).len()' Element counts, metadata, structured data, page numbers

HTML export is experimental and ignores page-specific features. PNG requires multimodal capability (read the image file). typst eval --in is the default introspection path. Element selectors (heading, figure) work on any document; labeled metadata queries require the source to contain metadata elements.

Process

  1. Compile — Run typst compile <file> first. If it fails, report the error and stop.

  2. Identify claims — What does the document need to satisfy? Extract from:

    • User's requirements (explicit)
    • Document structure expectations (headings, sections)
    • Content correctness (text, data, citations)
    • Layout requirements (margins, fonts, columns, page numbers)
  3. Select methods — For each claim, pick the cheapest sufficient method:

    • "Has section X" → HTML export, grep for <h2>/<h3>
    • "Table has correct data" → HTML export, check <table> content
    • "Page numbers show" → PNG export (HTML ignores page features)
    • "Correct metadata" → typst eval --in with label
    • "Layout looks right" → PNG export, read the image
    • "N figures exist" → typst eval --in with figure selector, or HTML grep for <figure>

Read the full file on GitHub · 78 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. 3d ago Changed · -1 lines c04d217acbdb
  2. 8d ago First seen · 79 lines · 30 tokens per session scan A 0ca4c6e0c7cb

Subscribe to this mod's changes

typst-verify is an agent published in the GitHub repository lucifer1004/claude-skill-typst (123 stars, last pushed yesterday), licensed MIT. It adds 30 tokens to every session and 924 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-30.