/typst-document-generator:use-toolkitfrom typst-document-generator
Recommend and wire in a Typst ecosystem library for jobs this plugin's core document templates don't cover — slides (polylux, touying), vector diagrams (fletcher), scientific plots (lilaq), formal templates from the official gallery (typst/templates), or programmatic rendering from Python (typst-py). Use when the user asks for slides, a specific diagram style, charts inside a Typst doc, a non-document format (letter, CV, invoice), or wants to render Typst from a script.
Ships in typst-document-generator. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Reference material lives in shared/ecosystem.md — read it before recommending.
Trigger when the user's need goes beyond this plugin's six document templates:
Map the request to one category:
| Signal | Library |
|---|---|
| slides, deck, presentation | polylux or touying — ask which, default touying |
| diagram with nodes/arrows/structure | fletcher |
| chart, plot, graph, figure | lilaq |
| letter, CV, invoice, academic paper, any non-doc form factor | typst/templates |
| script, pipeline, batch, Python, automation | typst-py |
| illustrated/organic diagram | tech-comms-diagrams plugin (outside Typst) — redirect |
If ambiguous (e.g. "a diagram" — fletcher or tech-comms-diagrams?), ask: "structural and exact (fletcher, renders in the PDF) or illustrative and organic (tech-comms-diagrams, rendered to image)?"
The versions cited in shared/ecosystem.md may be stale. Before writing the
import line, verify the current version:
# Fastest check — query Typst Universe
curl -s https://typst.app/universe/package/<name> | grep -oP 'data-version="[^"]+"' | head -1
Or ask the user to look it up. If the user doesn't care, use the version in
shared/ecosystem.md as-is (newer versions usually don't break imports).
For an existing Typst document the user is already working on:
#import line near the top (after #import "./styles.typ").For a brand-new document (especially slides):
doc-base (different page
geometry, different header/footer needs). Generate a standalone .typ
file that uses polylux or touying's own shows, not doc-base.with(...).doc-base document.Copy verbatim from shared/ecosystem.md and substitute values the user
gave. Examples there are all tested-shape minimal starters.
For typst-py, the user needs pip install typst — mention this once,
then proceed. All @preview/... packages resolve automatically on first
compile; no install step needed.
Run typst compile <path>.typ. On error, surface verbatim and stop — the
first package fetch can take a few seconds on a cold machine, but errors
beyond that are usually genuine.
Default recommend touying (more active, themed, supports reveals) unless the user is already familiar with polylux or wants something dead simple.
Ask: "Any preference? Touying is the modern default; polylux is simpler and more stable."
The official template gallery is a reference, not a direct import target. Workflow:
.typ files directly), ortemplates/ in the user's overlay (scripts/paths.sh dir)
so it's invocable via this plugin's generator skills in future.Offer the second option proactively when the user lands on a template worth keeping.
Fletcher diagrams render inline. They respect the surrounding set text
and set page rules from doc-base. No special handling needed — just
#import and use.
Same as fletcher — embeds cleanly. If the chart needs its own page, wrap in
pagebreak(weak: true) + the figure.
After wiring in, tell the user:
pip install typst for
typst-py).New library worth recommending? Add an entry to shared/ecosystem.md first
(that's the source of truth), then update the picker table in step 1 here.
What SKILL.md sets; muted values are Claude Code's defaults
typst-document-generator@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin typst-document-generator12 skills in this plugin
/add-profilePromote a one-off Typst document into a reusable named format. By default it goes into the user's private overlay (their own template YAML, and a Typst base if the look needs one), so personal and business formats never enter the public plugin. Only a generic look the user wants to share becomes a built-in. Verifies by rendering and records any Typst traps hit along the way. Use when a PDF came out well and the user wants that look reusable ("save this as a profile", "I want to reuse this style", "add this to my Typst templates"), or when auditing which profiles already exist before building a new one./briefingGenerate a printable Typst briefing or field sheet using the user's `briefing` template — dark full-bleed cover, a classification marking watermarked on every page, and a checkbox-first body with quantities, prices and addresses. Use for shopping lists, trip plans, run sheets, packing lists, site-visit sheets, or any single-subject document that will be printed and carried rather than read at a desk./business-docGenerate a Typst document using the user's business template (`business-doc`). Business logo in header, footer link to `{business.site}`. Use for general business documents that are not client-specific and not confidential (proposals, whitepapers, external reports). Requires profile.business to be populated.Other plugins' skills for the same job