jyn514/dotfiles/typst

Claude Code and agent skill by jyn514/dotfiles

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Write Typst (.typ) markup, expressions, and layout. Use when creating Typst documents, changing markup or scripting, or working with unfamiliar Typst syntax. Do not use for prose-only edits that preserve existing markup, such as wording changes or renaming a command inside an existing raw span. Does not cover compilation or preview.

Install

npx vskill@latest install jyn514/dotfiles/typst

SKILL.md

The same SKILL.md was published earlier as jyn514/dotfiles/typst.

Writing Typst files

Typst is a markup-based typesetting language. A .typ file mixes markup mode (the default, like Markdown) with code mode (entered via #).

Markup mode

typst
= Heading level 1
== Heading level 2
Normal paragraph text. Blank lines separate paragraphs.
*bold* _italic_ `raw/code`
Line break with trailing backslash \
Or two newlines for a new paragraph.
- bullet item
- another
- nested (indent)
+ numbered item
+ next
/ Term: definition list entry
#link("https://example.com")[link text]
#footnote[a footnote]
A label <intro> and a reference @intro.
$x^2 + y^2$ inline math, and block math:
$ sum_(i=1)^n i = (n(n+1))/2 $

Escape special chars (#, *, _, $, @, <, \) with a backslash.

Headings

Do not manually number heading sections. If you need to refer back to an earlier heading, use labels <label-name> and references @label-name.

Code mode

Start an expression with #; use [ ] for content blocks and { } for code blocks.

typst
#let name = "World"
Hello, #name!
#let add(a, b) = a + b
The sum is #add(2, 3).
#set text(size: 12pt, font: "New Computer Modern")
#set page(paper: "a4", margin: 2cm)
#set par(justify: true)
#show heading: set text(navy) // styling rule
#show "TODO": strong // replace/transform
#if name == "World" [Hi everyone] else [Hi #name]
#for x in (1, 2, 3) [Item #x ]
#let data = (a: 1, b: 2) // dictionary
#let items = (1, 2, 3) // array

#set configures defaults for following content; #show transforms elements. Place them near the top of the file or scope them in a block.

Raw text & code blocks

Inline ` code and fenced code blocks produce verbatim monospace text. Add an optional language tag to a fenced block to enable syntax highlighting. Use #raw(content, lang: "...", block: true) to create raw text programmatically, for example with read(...)`.

For #raw(...) options, styling, and #image / #figure / #table / #grid / #align / #outline / #bibliography / spacing helpers, see reference.md.

API lookup with Tinymist

For unfamiliar or version-sensitive functions, prefer the installed tinymist language server over guessing signatures or relying only on reference.md. Follow this order:

  1. Start tinymist lsp.
  2. Initialize the workspace over JSON-RPC.
  3. Open the target file, or a minimal scratch .typ file.
  4. Query the exact source position where the API is used over the initialized JSON-RPC connection, using one of these methods:
  • textDocument/hover for documentation and resolved types
  • textDocument/signatureHelp for parameters at a call site
  • textDocument/completion for available functions and named arguments

Keep one server process for related lookups. Shut it down cleanly when the lookups are complete. If Tinymist is unavailable, compile a minimal probe with the repository's Typst version.

Units & values

  • Lengths: pt, mm, cm, in, em, %, fr (fractional/flex).
  • Colors: named (red, navy) or rgb("#1a1a1a"), luma(200).
  • Strings use "double quotes"; content uses [brackets].

Tips

  • Comments: // line and /* block */.
  • One statement per #…; wrap multi-line logic in #{ … }.
  • Function args are positional then named: func(pos, name: val).
  • Trailing content block syntax func(args)[body] is sugar for passing the block as the last argument.

Security

  • Security scanPassed, 98 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/jyn514/dotfiles/typst/badge)](https://verified-skill.com/skills/jyn514/dotfiles/typst)

Something wrong with this skill or its page? Tell us.