Add tinymist skill to use it instead of downloading typst
This commit is contained in:
49
.cursor/skills/tinymist/SKILL.md
Normal file
49
.cursor/skills/tinymist/SKILL.md
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user