Agent skill

Typst Author

by jihe520 in jihe520/MathModelAgent

Generates, edits and debugs Typst (.typ) documents using the bundled Typst documentation as the source of truth, with formatting checks after each edit.

No licenceAuto-check passedDocuments & Office

Install Typst Author

skills CLI
$ npx skills add jihe520/MathModelAgent --skill typst-author -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install jihe520/MathModelAgent typst-author --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/jihe520/MathModelAgent.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/typst-author .claude/skills/typst-author && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
typst-author
GitHub stars
6.2k
Used in
1 other repo
Token cost
~2.3k tokens
SKILL.md length
923 words
Files
213
Skills in repo
10
Repo updated
First seen
Licence
None found

At a glance

Generates, edits and debugs Typst (.typ) documents using the bundled Typst documentation as the source of truth, with formatting checks after each edit.

  • Works in 7 steps: PRIORITY: Trust local documentation.… → Read the relevant documentation using… → Use local docs for syntax and reference… → …
  • Creating a new Typst document or project
  • SKILL.md covers Overview, Minimal document example, Workflows and Documentation, plus 5 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

This skill helps the agent write idiomatic Typst, edit and troubleshoot Typst projects and answer syntax questions. It includes a minimal document example and workflows for creating a new project, editing existing content and styling with set and show rules, backed by a bundled docs folder covering syntax, styling, scripting, page setup, tables, tutorials and changelogs.

The first rule is to trust the local documentation over training data, which may be outdated, and to verify function names, parameters and syntax against the docs before generating code. A minimal Typst probe is run only when runtime behavior stays unclear after checking. After each .typ file is created or edited, the agent follows post-edit formatting checks, using typstyle when it is available.

When your agent uses it

  • Creating a new Typst document or project
  • Editing an existing .typ file
  • Debugging Typst compilation errors
  • Answering Typst syntax or function questions
  • Setting up templates or using packages

Example prompts

  • “Write a Typst report template with a title page and numbered headings.”
  • “Fix the compile error in thesis.typ.”
  • “How do I make a table with merged cells in Typst?”
  • “Add a show rule that styles all level-one headings.”

Requirements

  • Typst, for compiling and probing documents
  • typstyle for the formatting checks, when available

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. PRIORITY: Trust local documentation. Your internal training data regarding Typst may be outdated or hallucinated. Always verify function…
  2. Read the relevant documentation using local file search and open tools on the paths above.
  3. Use local docs for syntax and reference questions. Verify syntax, function names, parameters, and reference behavior from the bundled…
  4. Generate or modify the .typ source according to the user's request.
  5. Run the post-edit formatting checks below for every .typ file you created or edited in that pass.
  6. Validate with typst compile after the formatting decision is complete when you created or edited .typ files, or when the user explicitly…
  7. Summarize touched files and outcomes. Provide full .typ content only when the user requests it or when direct editing is not possible, and…

What it can do on your machine

Read from SKILL.md and the folder at commit 03f4eb3. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are typst).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Typst Author loads about 2.3k tokens when it runs. Until then it costs about 80 tokens; SKILL.md has 923 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~80
When it runs · the whole SKILL.md, loaded when a task matches
~2.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 923 words (~2,306 tokens).

“This skill helps agents generate, edit, and reason about Typst documents. It provides quick‑start examples, detailed workflows, and links to the full Typst documentation (guides, tutorials, reference).”

— opening of SKILL.md by jihe520
name
typst-author

Read the full SKILL.md on GitHub

Files

SKILL.md and 212 other files in skills/typst-author of jihe520/MathModelAgent.

  • SKILL.md
  • docs/changelog/0.1.0.md
  • docs/changelog/0.10.0.md
  • docs/changelog/0.11.0.md
  • docs/changelog/0.11.1.md
  • docs/changelog/0.12.0.md
  • docs/changelog/0.13.0.md
  • docs/changelog/0.13.1.md
  • docs/changelog/0.14.0.md
  • docs/changelog/0.14.1.md
  • docs/changelog/0.14.2.md
  • docs/changelog/0.2.0.md
  • docs/changelog/0.3.0.md
  • docs/changelog/0.4.0.md
  • docs/changelog/0.5.0.md
  • docs/changelog/0.6.0.md
  • docs/changelog/0.7.0.md
  • docs/changelog/0.8.0.md
  • docs/changelog/0.9.0.md
  • … and 194 more

Open the folder on GitHubat commit 03f4eb3

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in jihe520/MathModelAgent, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Typst Author next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Typst Author compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Typst Author this skilljihe520/MathModelAgent6.2k1 repos~2.3kAutomated safety check: PassNone
Bookforge Korean Ebook PDF Makergongnyang/bookforge3151 repos~1.7kAutomated safety check: PassMIT
Markdown to HTML ReportMegaSuperKitty/WeClaw370—~456Automated safety check: PassMIT
Industry Bid Document WriterGet00/BiaoShu-SKILL172—~4.6kAutomated safety check: PassApache-2.0
Chinese Official Document Draftingzhaohui-yang/official-document-drafting140—~1.5kAutomated safety check: PassMIT
Refresh Docsjoselado/pyqula145—~816Automated safety check: PassGPL-3.0

Similar skills

  • Produces book-style Korean ebook PDFs from a topic or finished manuscript, with six design styles, real book parts and quality-check gates before output.

    315 GitHub starsUsed in 1 repo~1.7k tokens
    Documents & OfficeAuto-check passed
  • Markdown to HTML Report

    MegaSuperKitty/WeClaw

    Drafts a report in Markdown with numbered inline citations and a references section, then renders it to a styled HTML file through a Jinja2 template on Windows.

    370 GitHub stars~456 tokensUpdated 5 mo ago
    Documents & OfficeAuto-check passed
  • Industry Bid Document Writer

    Get00/BiaoShu-SKILL

    Converts a tender document into Markdown, extracts scoring criteria and requirements, then drafts an industry-formatted technical bid as a Word file.

    172 GitHub stars~4.6k tokensUpdated 15 days ago
    Documents & OfficeAuto-check passed
  • Chinese Official Document Drafting

    zhaohui-yang/official-document-drafting

    Drafts, rewrites and standardizes Chinese official documents and formal reports such as notices, requests and meeting minutes, and exports the result to Word.

    140 GitHub stars~1.5k tokensUpdated 1 mo ago
    Documents & OfficeAuto-check passed
  • Refresh Docs

    joselado/pyqula

    Refresh pyqula's documentation after a change - recount the test suite, propagate every number that moved, re-run the static user-guide checks, and rebuild documentation/userguide.pdf.

    145 GitHub stars~816 tokensUpdated 2 days ago
    Documents & OfficeAuto-check passed
  • Hermes3000 Writing

    HybridAIOne/hybridclaw

    Use Hermes3000 to plan, draft, revise, save, check consistency, and export long-form manuscripts through the Hermes3000 AI writing portal API.

    158 GitHub stars~2.7k tokensUpdated today
    Documents & OfficeAuto-check passed

More from jihe520/MathModelAgent

All 10 skills in this repo
  • MathModel Figure Templates

    jihe520/MathModelAgent

    Renders ready-made scientific figure templates, such as raincloud plots, Taylor diagrams and chord diagrams, from bundled Python scripts in the MathModel sandbox.

    6.2k GitHub stars~627 tokensUpdated 6 days ago
    Auto-check: notes
  • Rewrites a math modeling competition paper into an English EI conference submission, using a bundled IEEE LaTeX template, with evidence tracked back to the original paper.

    6.2k GitHub stars~688 tokensUpdated 6 days ago
    Auto-check passed
  • Math Modeling Paper Verifier

    jihe520/MathModelAgent

    Runs the final verification pass on a math-modeling competition paper written in Typst or LaTeX, checking structure, figures, numbers, leaks and compilation.

    6.2k GitHub stars~1.4k tokensUpdated 6 days ago
    Auto-check: notes
  • Math Modeling Workflow Starter

    jihe520/MathModelAgent

    Entry point for a math modeling competition project: asks about preferences, writes plan.md and todo.md, then calls stage skills for analysis, code, diagrams, paper and verification.

    6.2k GitHub stars~918 tokensUpdated 6 days ago
    Auto-check: notes
  • Math Modeling Problem Analysis

    jihe520/MathModelAgent

    Chinese-language stage that turns a math modeling contest problem and its data files into a modeling report with sub-problems, formulas and a task list for coding.

    6.2k GitHub stars~494 tokensUpdated 6 days ago
    Auto-check: notes
  • Math Modeling Code and Figures

    jihe520/MathModelAgent

    Math modeling stage that turns an analysis report into reproducible code, validates the solutions, writes RESULTS_REPORT.md and produces data-driven PDF charts for the paper.

    6.2k GitHub stars~444 tokensUpdated 6 days ago
    Auto-check: notes

Questions about Typst Author

What does Typst Author do?

Generates, edits and debugs Typst (.typ) documents using the bundled Typst documentation as the source of truth, with formatting checks after each edit. This skill helps the agent write idiomatic Typst, edit and troubleshoot Typst projects and answer syntax questions. It includes a minimal document example and workflows for creating a new project, editing existing content and styling with set and show rules, backed by a bundled docs folder covering syntax, styling, scripting, page setup, tables, tutorials and changelogs.

When should I use Typst Author?

Typst Author fits situations like: creating a new Typst document or project; editing an existing .typ file; debugging Typst compilation errors; answering Typst syntax or function questions.

How do I install Typst Author in Claude Code?

Run `npx skills add jihe520/MathModelAgent --skill typst-author -a claude-code`. Or copy the skill folder (skills/typst-author in jihe520/MathModelAgent) into .claude/skills/typst-author in your project. Claude Code loads it when a task matches its description.

How do I install Typst Author in Codex?

Run `npx skills add jihe520/MathModelAgent --skill typst-author -a codex`. Or copy the skill folder (skills/typst-author in jihe520/MathModelAgent) into .agents/skills/typst-author in your project. Codex loads it when a task matches its description.

Can I use Typst Author in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jihe520/MathModelAgent --skill typst-author -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/typst-author, .gemini/skills/typst-author, .github/skills/typst-author and .opencode/skills/typst-author in your project.

What does Typst Author need to run?

SKILL.md names no scripts, command-line tools or credentials: Typst Author is instructions for the agent only. Our summary lists: Typst, for compiling and probing documents; typstyle for the formatting checks, when available.

Does Typst Author access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Typst Author safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Typst Author use?

No licence was found for Typst Author or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Typst Author use?

About 2.3k tokens (SKILL.md is roughly 9.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Typst Author?

Skills that share tags, products or a category with Typst Author: Bookforge Korean Ebook PDF Maker (gongnyang/bookforge, 315 stars), Markdown to HTML Report (MegaSuperKitty/WeClaw, 370 stars), Industry Bid Document Writer (Get00/BiaoShu-SKILL, 172 stars) and Chinese Official Document Drafting (zhaohui-yang/official-document-drafting, 140 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Typst Author?

jihe520 (a GitHub user) maintains it in jihe520/MathModelAgent, which has 6,181 GitHub stars. The repository holds 10 skills in this directory. The repository was last updated on October 3, 2026.

Source: jihe520/MathModelAgent on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.