# Typst Agent

> Expert Typst authoring and LaTeX migration with compile-verified delivery and a version-aware docs cache.

Typst Agent is a paid AI agent skill on Agensi by KoboldAtTheShore, in Technical Documentation. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $5.99 (one-time purchase)
- Creator: [KoboldAtTheShore](https://www.agensi.io/creators/koboldshoreworks)
- Category: [Technical Documentation](https://www.agensi.io/skills/technical-documentation)
- Version: 1.0
- Last updated: 2026-10-11
- Security: scan passed (2026-10-11); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/typst-agent
- Tags: documentation, prompt-engineering, automation, typst, latex, typesetting, technical-writing

## About this skill

Typst authoring often fails due to fast-moving syntax changes, version mismatches, and mode confusion between markup and code. This skill provides a verified, iterative workflow for creating Typst documents that compile correctly on the first attempt by using the compiler as the source of truth.

### What it does
- **Environment validation** checks for the Typst compiler and manages local installation or unverified mode signaling.
- **Smart docs lookup** uses a local cache to store verified syntax and package signatures, preventing network calls and hallucinated parameters.
- **Scaffolded authoring** generates documents from compile-verified templates for articles, reports, slides, and CVs.
- **Iterative debugging** parses compiler diagnostics to apply specific fixes rather than blind rewriting.
- **LaTeX migration** maps document intent, macros, and preamble settings to native Typst functions or Universe packages.

### How it works
1. **Status check**: Run `docs-lookup.py status` to verify the local compiler version and docs cache state.
2. **Requirements gate**: Present a high-level structure and package plan for user confirmation before writing markup.
3. **Verified authoring**: Generate Typst code, performing lookups for version-sensitive syntax like font variations or multi-bibliography targets.
4. **Compile loop**: Execute `typst compile` to validate the output, resolving any errors via the diagnostics catalogue.

### Frameworks & tools
Typst CLI, Typst Universe packages (cetz, fletcher, touying, codly), and BibLaTeX/Hayagriva for bibliographies.

### Why this beats prompting it yourself
Standard LLMs frequently hallucinate Typst syntax because the language evolves rapidly (e.g., breaking changes in 0.15 backslash paths). This skill forces a compile-check loop and uses a version-aware local cache to ensure every snippet delivered actually works in your environment.

### Use cases
- Migrating complex LaTeX research papers to modern Typst templates.
- Generating data-driven reports using JSON, YAML, or CSV inputs.
- Creating technical diagrams and flowcharts using the `cetz` or `fletcher` packages.
- Debugging obscure Typst compiler errors and layout convergence warnings.

### Known limitations
Does not support plain Markdown, Word, or unrelated PDF tasks. PDF text extraction from source docs may require manual cleanup of ligatures. Requires local compiler for full verification.

## Requires

- Python

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Typst Agent skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does this skill handle the frequent breaking changes and syntax updates in Typst?

Standard LLMs often use outdated Typst syntax that leads to compilation errors; this skill uses a version-aware local cache and an iterative compile-check loop to ensure all generated code works with your specific compiler version.

### Can I use this to migrate complex LaTeX research papers with custom macros?

The skill maps your existing LaTeX macros, document structure, and preamble settings to native Typst functions or equivalent Universe packages, ensuring a smooth transition without losing formatting logic.

### Does this skill support external Typst packages like Cetz or Touying?

Yes, the skill is optimized for the Typst Universe ecosystem and includes specialized support for packages like Cetz for diagrams, Fletcher for flowcharts, and Touying for presentations.

### Is a local installation of the Typst compiler mandatory for this skill to work?

While it can generate markup in unverified mode, the full verification and debugging loop requires the Typst CLI to be installed on your local environment to act as the source of truth.

### What exactly is included in the purchase?

You receive the complete skill package including the smart docs lookup utility, a suite of verified templates for various document types, and the iterative debugging workflow.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
