Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

typst

БесплатноЗапускает вложенные скриптыНе проверен

Typst document creation and package development. Use when: (1) Working with .typ files, (2) User mentions typst, typst.toml, or typst-cli, (3) Creating or…

lucifer1004от lucifer1004★ 143 звезды на GitHub

Об этом скилле

Typst

This skill targets Typst 0.15+. For Typst 0.14.2, use the typst-0.14.2 repository tag for the previous skill snapshot.

Compilation

typst compile document.typ              # compile once → PDF
typst compile document.typ output.pdf   # explicit output path
typst compile document.typ -f png       # export as PNG image
typst compile src/main.typ --root .     # set project root for /path imports
typst watch document.typ                # recompile on change
typst eval --in document.typ 'query(heading).len()'  # Typst 0.15+ introspection

For command options beyond this quick reference, see cli.md.

Agent verification — choose by what you need to check (see debug.md for details):

Method Command Best for
HTML export typst compile doc.typ /dev/stdout -f html --features html 2>/dev/null Text content, structure, headings, tables
PNG export typst compile doc.typ page-{p}.png -f png Visual layout, alignment, spacing, fonts
pdftotext typst compile doc.typ && pdftotext doc.pdf - Fallback for page-specific content

Minimal Document

#set page(paper: "a4", margin: 2cm)
#set text(size: 11pt)

= Title

Content goes here.

Writing Documents

Starting a new document? Copy the closest recipe from Examples below — it's faster than starting blank and each row names the docs to read next.

When you need to... Read
Learn syntax, imports, functions, control flow basics.md
Learn data types, operators, string/array methods types.md
Style pages, headings, figures, layout styling.md
Tables, grids, cell spans, borders, data tables tables.md
Academic papers, bibliography, theorems, equations academic.md
Convert from Markdown or LaTeX conversion.md
Upgrade older Typst code, 0.15 breaking changes migration.md
Use Typst CLI commands and build options cli.md
Extract data from documents, multi-pass builds query.md

Developing Packages and Templates

When you need to... Read
State, counters, in-document query(), XML advanced.md
CLI introspection, metadata export, multi-pass query.md
Create a reusable template function template.md
Create or publish a package package.md
Verify output (HTML/PNG/pdftotext, repr) debug.md
Profile performance (--timings, hotspots) perf.md

basics.md and types.md are also the foundation for developers.

Finding Packages

Search the embedded index of Typst Universe packages (updated weekly):

python3 scripts/search-packages.py "what you need"
python3 scripts/search-packages.py "chart" --category visualization
python3 scripts/search-packages.py --category cv --top 5
python3 scripts/search-packages.py --list-categories

Common Errors

Error Cause Fix
"unknown variable" Undefined identifier Check spelling, ensure #let before use
"expected X, found Y" Type mismatch Check function signature in docs
"file not found" Bad import path Paths resolve relative to current file
"unknown font" Font not installed Use system fonts or web-safe alternatives
"maximum function call depth exceeded" Deep recursion Use iteration instead
"can only be used when context is known" Missing context wrapper Wrap in context { ... }
"unexpected argument" = instead of : for args Nam
Полный SKILL.md на GitHub

Установить typst в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

LICENSEacademic.mdadvanced.mdagents/typst-package-qa.mdagents/typst-verify.mdbasics.mdcli.mdconversion.mddata/api-0.15.0-bm25.jsondata/api-0.15.0.jsondata/api-0.15.1-bm25.jsondata/api-0.15.1.jsondata/api-bm25.jsondata/api-main-bm25.jsondata/api-main.jsondata/api.jsondata/packages-bm25.jsondata/packages.jsondebug.mdexamples/academic-paper.typexamples/basic-document.typexamples/package-example/README.mdexamples/package-example/lib.typexamples/package-example/src/boxes.typexamples/package-example/src/formatting.typexamples/package-example/typst.tomlexamples/perf-test.typexamples/query-export.typexamples/styled-document.typexamples/tables-showcase.typexamples/template-report.typmigration.mdpackage.mdperf.mdquery.mdscripts/perf-timings.pyscripts/search-api.pyscripts/search-packages.pyscripts/validate-examples.pystyling.md

FAQ

Что делает скилл typst?

Typst document creation and package development. Use when: (1) Working with .typ files, (2) User mentions typst, typst.toml, or typst-cli, (3) Creating or using Typst packages, (4) Developing document templates, (5) Converting Markdown/LaTeX to Typst

Как установить скилл typst?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл typst запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить typst с