Typst
Generates beautiful Typst documents from your prompts β ideal for crafting professional-looking technical and mathematical content quickly.
Install on your platform
We auto-selected Claude Code based on this skillβs supported platforms.
Run in terminal (recommended)
claude mcp add typst npx -- -y @trustedskills/typst
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"typst": {
"command": "npx",
"args": [
"-y",
"@trustedskills/typst"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill allows an AI agent to generate documents using Typst, a modern typesetting system designed to be simpler and faster than LaTeX. It enables the creation of professional-looking technical and mathematical content, including exporting documents as PDF, HTML, or PNG images. The skill supports compiling Typst code, watching for changes and recompiling automatically, and extracting metadata from documents.
When to use it
- Creating academic papers, reports, or presentations requiring precise formatting.
- Generating visually appealing technical documentation with mathematical equations.
- Converting existing content from Markdown or LaTeX into a modern Typst document.
- Extracting specific data or information embedded within Typst documents.
- Quickly producing visual assets like charts and diagrams as PNG images.
Key capabilities
- Compiles Typst code to PDF, HTML, and PNG formats.
- Supports watching for file changes and automatic recompilation.
- Allows extraction of metadata from Typst documents using queries.
- Provides methods for verifying output (HTML, PNG, text content).
- Enables searching for and importing packages from the Typst Universe.
Example prompts
- "Generate a PDF document with the title 'My Report' and some basic content."
- "Compile this Typst code into an HTML file."
- "Export this Typst document as a PNG image."
- "Find Typst packages related to data visualization."
Tips & gotchas
- Familiarize yourself with the basics of Typst syntax and structure by consulting
basics.mdandtypes.md. - Import paths are resolved relative to the current file, so ensure they are correct.
- The skill's functionality is focused on generating documents from Typst code; itβs a coding assistant for Typst development rather than a general-purpose document creation tool.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates β what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
π Community
Passed automated security scans.