From 4274c215ca5365214f6c020342794263ea7727e3 Mon Sep 17 00:00:00 2001 From: diaco Date: Tue, 7 Jul 2026 13:26:45 +0330 Subject: [PATCH] Add tinymist skill to use it instead of downloading typst --- .cursor/skills/tinymist/SKILL.md | 49 ++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .cursor/skills/tinymist/SKILL.md diff --git a/.cursor/skills/tinymist/SKILL.md b/.cursor/skills/tinymist/SKILL.md new file mode 100644 index 0000000..10938b8 --- /dev/null +++ b/.cursor/skills/tinymist/SKILL.md @@ -0,0 +1,49 @@ +--- +name: tinymist +description: >- + Compile and check Typst documents in this project with tinymist, not typst-cli. + Use when compiling .typ files, checking Typst errors, or validating report output. +--- + +# Use Tinymist for Typst + +Always use **tinymist**, never `typst` CLI. Do not download or install typst. + +## Binary + +```bash +/home/diaco/.local/bin/tinymist +``` + +Fallback: `tinymist` if on PATH. + +## Compile + +From project root: + +```bash +tinymist compile --font-path template_files main.typ main.pdf +``` + +Other entry points: + +```bash +tinymist compile --font-path template_files main.travel-report-example.typ +tinymist compile --font-path template_files main.product-test-example.typ +``` + +Always pass `--font-path template_files` (fonts: `IRNazanin`, `IRZar`). + +## Check errors + +Use `tinymist compile` — errors print to stderr. For a quick pass/fail: + +```bash +tinymist test main.typ +``` + +## Do not + +- Run `typst compile` +- Download typst from GitHub releases +- Install typst via cargo unless the user explicitly asks