typst

Generate and edit Typst (.typ) code validated by typst compile.

1|Updated Apr 25, 2026
One-click install
npx skills add https://github.com/collat-labs/collat --skill typst-collat-labs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typst
Source: https://github.com/collat-labs/collat/tree/main/.agents/skills/typst
Command: npx skills add https://github.com/collat-labs/collat --skill typst-collat-labs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you produce correct, idiomatic Typst (.typ) code and avoid syntax and markup mistakes while you draft and format documents.

Core Features & Use Cases

  • Generate Typst code: Create new or updated Typst source tailored to your formatting and document structure needs.
  • Edit safely with context checks: Verify against existing local docs before outputting potentially version-sensitive syntax.
  • Compile for validation: Validate your changes by compiling with typst compile when tool access allows.

Quick Start

Tell the typst skill to generate a complete Typst template with a title, centered abstract, and numbered headings using your specified fonts and page size.

Frequently Asked Questions about typst

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a Typst document with proper formatting and structure?

To generate a Typst document, provide your formatting and structure requirements to the Skill, which produces correct, idiomatic .typ source code. It references relevant documentation to ensure the output follows proper Typst markup and styling rules without syntax errors.

What is the best way to avoid syntax errors when writing Typst markup?

The best way to avoid syntax errors in Typst markup is to validate generated code by compiling it with typst compile. The Skill checks existing local documentation before outputting version-sensitive syntax, ensuring the produced Typst source is valid and error-free.

Can I refactor an existing .typ file to update document styling and math markup?

Yes, you can refactor an existing .typ file by instructing the Skill to edit and update the Typst source. It applies iterative revisions to document structure, styling, and math or text markup while ensuring the changes produce valid Typst code.

Does the Typst code generation Skill check documentation before applying version-sensitive syntax?

Yes, the Skill verifies against existing local documentation files before generating or editing Typst code. This context check ensures that any version-sensitive syntax used in your document structure and styling is appropriate and valid for your Typst environment.

How do I validate my Typst source code after making edits to a .typ file?

You validate your Typst source code by compiling the updated .typ file using the typst compile command. This validation step checks whether the generated or refactored Typst markup and document structure are correct and free of syntax errors.