typst-author — Claude Code skill: what it does, how to install
Generates, edits, and troubleshoots Typst markup while enforcing syntax rules and formatting checks. Keeps agents grounded against hallucinations.
npx skills add jihe520/MathModelAgent --skill typst-author -a claude-codeWhat typst-author does
The skill directs coding agents to write and refactor .typ documents using bundled reference docs instead of relying on potentially outdated pretraining data. It enforces foundational Typst syntax details, such as markup versus code mode expressions with #, the distinction between set and show rules, and the fact that Typst uses arrays rather than tuples.
Agents use fileless stdin queries with typst query to test runtime behaviors without polluting the workspace with scratch files. When typstyle is present, the workflow verifies code style with typstyle --check and typstyle --diff. Crucially, the agent halts and requests user confirmation whenever automated formatting touches untouched older sections of the file.
What it helps with
- generate
.typdocuments with standard formatting - debug Typst markup and syntax errors
- configure layout styling with
setandshowrules - format documents safely using
typstyle - test Typst evaluation behavior through stdin probes
Example prompts for the agent
- Create a new document template in report.typ with paragraph justification
- Fix the show rule syntax in main.typ and compile the document
- Format paper.typ using typstyle without altering untouched sections
How to install typst-author
1Skills CLI (Vercel)
npx skills add jihe520/MathModelAgent --skill typst-author -a claude-code2Manually: put the files in place
~/.claude/skills/typst-author/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/typst-author/
1Skills CLI (Vercel)
npx skills add jihe520/MathModelAgent --skill typst-author -a codex2Manually: put the files in place
.agents/skills/typst-author/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add jihe520/MathModelAgent --skill typst-author -a cursor2Manually: put the files in place
.cursor/skills/typst-author/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install jihe520/MathModelAgent typst-author2Manually: put the files in place
.github/skills/typst-author/SKILL.md1Skills CLI (Vercel)
npx skills add jihe520/MathModelAgent --skill typst-author -a gemini-cli2Platform CLI
gemini skills install https://github.com/jihe520/MathModelAgent --path skills/typst-authorManually: put the files in place
.devin/skills/typst-author/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add jihe520/MathModelAgent --skill typst-author -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
From the same set2
The whole set →Similar
Questions about typst-author
How to install typst-author in Claude Code?
Run npx skills add jihe520/MathModelAgent --skill typst-author -a claude-code in your terminal.
What does typst-author do?
It provides instructions for generating idiomatic Typst files, validating syntax against reference docs, and compiling documents with typst compile.
How does typst-author handle code formatting?
It checks for typstyle, inspects changes with typstyle --diff, and only applies in-place formatting when edits are strictly isolated to newly modified code.