/uxd-design:uxd-canvas-exportfrom uxd-design
Exports a canvas (local or Miro board) as an HTML viewer, canvas.json, or Mermaid diagram. Use for sharing journey maps, producing static files, or preparing canvases for publishing.
Ships in uxd-design. 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.
Read when SKILL.md points to them; scripts run unread.
Turn a canvas into a portable local export. The default is a single HTML file with the viewer and local assets inlined. Do not push, deploy, or write to Miro from this skill. Static hosting is uxd-canvas-publish. Creating or updating a board is uxd-canvas-create.
The viewer source lives next to the export script:
viewer/
├── index.html
├── viewer.css
└── viewer.js
scripts/export-canvas.mjs inlines those files with the canvas JSON into a single index.html when --viewer html. Do not copy the separate CSS or JS into the export. A Mermaid node in that file shows its source. It does not load a Mermaid library. --mermaid writes diagram.mmd for a tool or a Miro board that can render it.
Family: uxd-canvas-create → export → uxd-canvas-publish.
Accept a canvas directory or a path to canvas.json. A canvas directory can also contain metadata.json and assets/. The export script accepts only that local path.
If the input is a Miro board URL, snapshot it locally before running the script:
canvas.json only as input to the exporter. Keep it when the user wants a snapshot; otherwise use a temporary directory. Preserve miroId and metadata source.Default output is .artifacts/{ID}/export/ when the source lives in canvas/; otherwise <canvas-dir>/export/.
export/
├── index.html # viewer + canvas data + inlined assets
└── export-manifest.json
Optional files, depending on flags:
export/
├── index.html
├── canvas.json
├── diagram.mmd
├── assets/
└── export-manifest.json
$ARGUMENTS
Parse as: <canvas-path> [--output <dir>] [--viewer html|none] [--json|--no-json] [--assets inline|folder] [--chrome viewer|none] [--mermaid] [--title <text>].
| Flag | Default | Meaning |
|---|---|---|
--output | sibling export/ when source is canvas/; else <canvas-dir>/export/ | Export destination |
--viewer html|none | html | Include or omit the interactive HTML viewer |
--json / --no-json | --no-json with HTML; --json with --viewer none | Write a sidecar canvas.json |
--assets inline|folder | inline with HTML; folder with --viewer none | Embed local files as data URIs, or copy assets/ |
--chrome viewer|none | viewer | Include or omit the top toolbar and status pill (HTML only) |
--mermaid | off | Write diagram.mmd from Mermaid nodes or a simple flow |
--title | metadata.json title or folder name | Viewer title |
--no-viewer is an alias for --viewer none. An export with no viewer, no JSON, and no Mermaid is an error.
--chrome viewer includes theme, grid, mouse/trackpad, zoom in, zoom out, reset-view controls, node/edge status, pan, wheel/pinch zoom, touch gestures, and keyboard zoom shortcuts. --chrome none hides the toolbar and status pill but retains pan, zoom, touch, link, and scroll interactions.
Do not pass --mermaid for a journey map, service blueprint, or affinity map. Mermaid drops lanes, phases, and evidence. The script skips that conversion and warns. Use --mermaid for a canvas that already has subtype: "mermaid" nodes, or for a simple node-and-edge flow.
canvas.json must exist and every referenced local asset must be available. For a Miro URL, follow the read steps above first.node "${CLAUDE_SKILL_DIR}/scripts/export-canvas.mjs" \
<canvas-path> \
--output <export-dir>
Examples:
# HTML viewer plus a portable canvas.json, assets copied beside them
node "${CLAUDE_SKILL_DIR}/scripts/export-canvas.mjs" <canvas-path> --json --assets folder
# JSON Canvas only, for other JSON Canvas tools
node "${CLAUDE_SKILL_DIR}/scripts/export-canvas.mjs" <canvas-path> --no-viewer
# Mermaid source for a flowchart already stored on the canvas
node "${CLAUDE_SKILL_DIR}/scripts/export-canvas.mjs" <canvas-path> --mermaid
python3 -m http.server --directory <export-dir> 8000. For --viewer none, confirm canvas.json, diagram.mmd, and any assets/ instead. A Mermaid node should show its source text.uxd-canvas-publish only when the user wants a static host. Suggest uxd-canvas-create when they want to change the Miro board.--chrome when HTML is included; interactions remain available in both chrome modes.--assets inline produces no assets/ folder; --assets folder copies local files next to the export.--json writes canvas.json; it is omitted by default when HTML is included.--mermaid writes diagram.mmd, or reports that a journey map, blueprint, or affinity map was skipped.export-manifest.json records title, viewer, json, assets, chrome, mermaid, and written files, including itself.eval/cases/default-html/annotations.yaml (opens in a new tab)eval/cases/default-html/input.yaml (opens in a new tab)eval/cases/json-only/annotations.yaml (opens in a new tab)eval/cases/json-only/input.yaml (opens in a new tab)eval/cases/mermaid-node/annotations.yaml (opens in a new tab)eval/cases/mermaid-node/input.yaml (opens in a new tab)eval/cases/miro-read-only/annotations.yaml (opens in a new tab)eval/cases/miro-read-only/input.yaml (opens in a new tab)eval/cases/skip-journey-mermaid/annotations.yaml (opens in a new tab)eval/cases/skip-journey-mermaid/input.yaml (opens in a new tab)eval/eval.yaml (opens in a new tab)scripts/export-canvas.mjs (opens in a new tab)viewer/index.html (opens in a new tab)viewer/viewer.css (opens in a new tab)viewer/viewer.js (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
5 skills in this plugin
/uxd-canvas-createCreate or refine a canvas as local JSON Canvas, a Miro board, or both. Covers journey maps, service blueprints, architecture diagrams, user flows, affinity maps, mind maps, and Mermaid diagrams. Use when turning a brief, research, an existing canvas, or a Miro board into a spatial artifact./uxd-canvas-publishPublish an exported canvas to a git repository, GitHub Pages, GitLab Pages, or Vercel. Use when sharing a finished static copy for review or updating a hosted preview. Creating or updating a Miro board is uxd-canvas-create./uxd-design-handoffProduce an implementation-ready design handoff spec from a validated design. Maps UI elements to design system components, enumerates all states, and generates testable acceptance criteria. Use when transitioning from design to development./uxd-figma-readRetrieve design context from a Figma file. Use when any workflow needs screenshots, page structure, node metadata, or design tokens from a Figma URL. Handles URL parsing, Figma MCP detection with REST API fallback, page discovery, and frame export. Pair with other skills that need Figma input.npx claudepluginhub rh-uxd/ai-helpers --plugin uxd-designOther plugins' skills for the same job