/typst-document-generator:renderfrom typst-document-generator
Render a Typst document from any template, built-in or the user's own private templates in their overlay directory (their business letterhead, a proposal format, a house style). Lists what's available, picks one by name or trigger phrase, follows that template's own notes, and compiles a PDF. Use on "make this a PDF with my <X> template", "use my proposal format", "which document templates do I have", or whenever the request matches a user template that has no dedicated skill.
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.
This is the entry point for templates that have no skill of their own,
usually the user's private ones. The built-in skills (personal-doc,
public-doc, business-doc, client-confidential, personal-confidential,
briefing, screenplay) follow the same contract and are only shortcuts.
The contract is in shared/workspace.md. Read it first.
Typst must be installed at a resolvable path (
which typst). Do not try to install it automatically.
Resolve the layers:
"${CLAUDE_PLUGIN_ROOT}/scripts/paths.sh"
"${CLAUDE_PLUGIN_ROOT}/scripts/paths.sh" templates
If the output has a legacy_dir: line, mention it once and offer
/typst-document-generator:onboard to move it.
Pick the template. Match the request against each template's name,
label, description and triggers (read the YAML files). User templates
come first, because they're the more specific match. If two match, or none
does, show the list as name (user|builtin): description and ask. When the
user asks "what templates do I have", show that list and stop.
If the template is a built-in with a dedicated skill, follow that
skill's workflow. It has the rendering details for its base (briefing,
screenplay, ...). A user template that overrides a built-in by name still
uses that skill's workflow, with the user's YAML values.
Otherwise render it here, following the contract in shared/workspace.md:
notes: as instructions: they're the template
author's own workflow (sections, tone, what to ask for).requires.business against profile.yaml.variables:. Skip any prompt the user already answered in their request.base_file (default styles.typ), looked up with paths.sh bases,
overlay first. Copy it next to the output. Copy any logo too (paths in
profile.yaml are relative to the data dir unless they're absolute or
start with ~)..typ with #import "./<base_file>": <base> and
#show: <base>.with(...), using the resolved tokens.doc-base does). Use the template's ai_disclosure.default_placement.Compile and look:
typst compile {path}.typ
pdftoppm -png -r 50 -f 1 -l 3 {path}.pdf /tmp/render-preview
On an error, show it verbatim and stop. Read the preview PNGs before reporting. A template that compiles can still be broken visually: a missing logo, a footer that's too long, an empty cover field.
Report the PDF path and which template (and which layer) was used.
If they ask for a format that doesn't exist yet, or want to keep the look of
the document you just made, hand over to /typst-document-generator:add-profile.
By default it saves the new format to their private overlay, not the plugin.
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