compile
Compile Document
Detect file format and run the appropriate build command.
Format Detection
Determine file type from extension:
.typ→ Typst document.qmd→ Quarto slides.py→ Python script
Note: For
.tex(LaTeX/Beamer), configure compilation at project level with project-specific TEXINPUTS and bibtex paths.
Compilation Commands
For .typ files (Typst):
typst compile [--root ..] FILENAME.typ
- Use
--rootif the file imports packages from a parent directory - Check exit code for compilation errors
- Typst compilation is single-pass (no multi-pass needed)
For .qmd files (Quarto):
quarto render FILENAME.qmd
- Or use project-specific deploy script if available
For .py files (Python):
uv run FILENAME.py
- Check exit code
- Verify output files were created (if applicable)
Post-Compilation Checks
-
Check for warnings:
.typ: Check stderr for warnings.qmd: Check for render warnings.py: Check for tracebacks or warnings
-
Verify output exists and has non-zero file size
-
Visual spot-check (
.typfiles only):- Render sample pages to PNG:
typst compile FILE.typ /tmp/preview-{0p}.png - For documents (>3 pages): render pages 1, middle, and last
- For presentations: render all slides
- Use
Readtool on PNGs to visually inspect for overflow, blank pages, missing figures - See
typst/references/visual-verification.mdfor full checklist
- Render sample pages to PNG:
-
Report results:
- Compilation success/failure
- Warning count
- Output file path and size
- Visual check: PASS / issues noted
More from clearsmog/claude-skills
typst
Syntax guide and ecosystem reference for writing Typst (.typ) files. Use this skill when writing, editing, or debugging Typst documents. Covers core syntax, common errors, packages, and best practices.
11image-search
Search the web for images (photos, logos, graphics) and download them with Typst embedding code. Use when the user needs real-world images, company logos, or existing graphics for documents.
3qa
Adversarial quality audit loop. Critic finds issues, fixer applies fixes, loops until APPROVED (max 5 rounds). Works with any document format.
2learn
|
2deploy
Render and deploy documents to output directory for hosting. Supports Quarto slides and Typst PDFs.
2mindmap
Generate mind map images using mind-elixir. Produces PNG or SVG files from plaintext input. Use when the user needs a mind map, concept map, or topic overview diagram.
2