pi-typst-skill
v0.1.0
Published
Pi Coding Agent skill that makes Typst the preferred format for document artifacts.
Downloads
133
Maintainers
Readme
Pi Typst Skill
pi-typst-skill is a pi coding agent package that adds a typst-markup skill. It nudges pi to create document artifacts as Typst (.typ) instead of Markdown, and gives the agent compact syntax guidance for writing or converting Typst documents.
This is a skills-only package: it does not run extension code and has no runtime dependencies. The package is structured for pi install, npm publishing, and the pi.dev package gallery.
Install
Install from GitHub:
pi install git:github.com/Auda29/typst_skillTry it for a single session without installing permanently:
pi -e git:github.com/Auda29/typst_skillIf published to npm, install it like any other pi package:
pi install npm:pi-typst-skillUse
Ask pi for Typst output explicitly:
Use $typst-markup to draft this technical report as a Typst document.Typical prompts:
Create a Typst project brief for this repository.Convert README.md into a clean .typ handout.Write the architecture notes as Typst instead of Markdown.The skill tells pi to prefer .typ files for reports, specs, papers, handouts, and similar document artifacts, while still respecting existing project conventions.
Package Layout
package.json
typst-markup/
SKILL.md
references/
typst-cheatsheet.md
agents/
openai.yamlpackage.json declares the pi package:
{
"keywords": ["pi-package", "pi-skill"],
"pi": {
"skills": ["./typst-markup"]
}
}typst-markup/SKILL.md is the loaded skill instruction. references/typst-cheatsheet.md is loaded only when the agent needs syntax mappings or examples.
What the Skill Covers
- Typst as the default format for document artifacts.
- Markdown-to-Typst conversion patterns.
- Typst headings, lists, links, labels, references, tables, figures, code blocks, and math.
- Validation with
typst compilewhen the Typst CLI is installed. - Fallback behavior when the CLI is unavailable.
Typst CLI
The skill works without local dependencies, but generated documents should be compiled when possible:
typst compile file.typOn Windows:
winget install --id Typst.TypstCodex Compatibility
The typst-markup folder also follows the SKILL.md convention used by Codex-style skills. For Codex, copy or symlink that folder into the Codex skills directory.
License
Apache-2.0. See LICENSE.
