Agent skill · design visual · jeremylongshore

generate-doc-template

Generates on-brand document and deck templates — letterhead, slide, and one-pager — as SVG from the active brand profile, with editable title, subtitle, and body zones. Vector output needs no account, key, or network. Use when a user asks for a letterhead, a slide or deck master, or a branded one-pager. Trigger with "make a letterhead", "branded slide", or "/brand-make letterhead".

Why this skill is useful

Generates branded SVG document templates with editable zones based on the active brand profile, which the AI wouldn't reliably create on its own.

What it needs

Requires node installed locally. About 3k tokens when loaded. Last updated 2026-08-07. 2,604 stars on the source repository.

What this skill does

Generate Doc Template Generates a branded, print- or screen-ready document template as SVG from the active brand profile, with editable content zones. Overview The generate-doc-template skill turns a title (and optional subtitle and body) into a branded document or deck master. Output is vector SVG, so it scales cleanly, prints crisply, and needs no account, key, or network call. The generator (lib/doctpl.mjs) draws a shared margin grid, brand mark, and accent rules, then fills the requested kind; the skill resolves the active profile, picks the kind, runs the generator, and saves the file. Convert to PDF or PNG downstream with /brand-export. Prerequisites An active brand profile created with /brand-new (a brand/ directory, or brands/[slug]/). Read loads its color-system.json and typography.json. Node.js on the PATH — the generator runs as node lib/doctpl.mjs. Write access to an output/ directory in the working repository. A title string; subtitle and body are optional parameters. Instructions 1. Run /brand-status to confirm the active brand; if none exists, tell the user to run /brand-new and stop. 2. Use Glob to locate the active brand directory, then Read and validate the profile with validateProfile. Stop with the offending field if validation fails. 3. Choose the kind — letterhead (default), slide, or one-pager. Ask the user when it is unclear. 4. Generate the template by running the node generator: 5. Write the result with the Write tool to output/[slug]-[kind].svg. 6. Hand the file to the visual-guardian subagent for a palette, contrast, and type pass; apply its fixes or surface its flags. 7. Report the saved path and point out the editable zones so the user can customize or adapt the copy: id="title", id="subtitle", and id="body". Output One SVG file under output/, named for the slug and kind: Sized to the chosen kind — letterhead and one-pager at 816×1056 (US Letter @96dpi), slide at 1280×720 (16:9). …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills jeremylongshore/generate-doc-template

View the source on GitHub

Browse the @skills marketplace