pi-typst-skill
Pi Coding Agent skill that makes Typst the preferred format for document artifacts.
Package details
Install pi-typst-skill from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-typst-skill- Package
pi-typst-skill- Version
0.1.0- Published
- Apr 27, 2026
- Downloads
- 135/mo · 135/wk
- Author
- auda29
- License
- Apache-2.0
- Types
- skill
- Size
- 21.6 KB
- Dependencies
- 0 dependencies · 0 peers
Pi manifest JSON
{
"skills": [
"./typst-markup"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
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_skill
Try it for a single session without installing permanently:
pi -e git:github.com/Auda29/typst_skill
If published to npm, install it like any other pi package:
pi install npm:pi-typst-skill
Use
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.yaml
package.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.typ
On Windows:
winget install --id Typst.Typst
Codex 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.