From c4
Render diagrams or a static HTML site from the workspace via the Structurizr vNext CLI in Docker.
How this skill is triggered — by the user, by Claude, or both
Slash command
/c4:exportThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Shells out to `structurizr/structurizr export` in Docker to produce files in the requested format.
Shells out to structurizr/structurizr export in Docker to produce files in the requested format.
These are the formats accepted by structurizr/structurizr export -f:
| Format | Output |
|---|---|
plantuml | PlantUML source (.puml) — Structurizr's default PlantUML flavour. |
plantuml/structurizr | PlantUML source using the Structurizr macros. |
plantuml/c4plantuml | PlantUML source using the C4-PlantUML macros. |
mermaid | Mermaid source (.mmd). |
websequencediagrams | Sequence-diagram source for websequencediagrams.com. |
json | Structurizr workspace JSON (useful for tooling). |
theme | A theme.json describing the workspace's element/relationship styles. |
static | Browsable static HTML site — index.html, css/, js/, img/, workspace.js. Deployable to any static host (GitHub Pages, S3, Cloudflare Pages, Vercel). |
fqcn | Use a custom exporter — pass the fully-qualified class name of a WorkspaceExporter implementation. |
Not supported by the open-source build. Running export -f png (or svg) returns: "Exporting to PNG/SVG is not supported in this build". The -url/-mode flags in the CLI's --help are stubs for a feature only in Structurizr's paid offering.
If the user wants raster/vector output, route them to one of:
/c4:preview — runs Structurizr Local in a browser, where rendered diagrams can be exported as PNG/SVG via the UI's download button./c4:export static — produces a fully-functional static site they can browse and screenshot./c4:export plantuml then a separate render with PlantUML's own CLI (plantuml/plantuml Docker image) → PNG/SVG.Locate workspace.dsl. Search root, then architecture/.
Pick a format. If unspecified, default to plantuml. If the user mentioned a site / web page / deployment, suggest static.
Pick an output directory. Default: build/diagrams/ (or build/site/ if the format is static).
Run the script:
${CLAUDE_PLUGIN_ROOT}/scripts/export-diagrams.sh <format> <workspace.dsl> <output-dir>
Report. List the generated files. For static, mention how to serve them locally (python3 -m http.server in the output dir or any equivalent).
--platform linux/amd64 automatically (the structurizr/structurizr image has no native ARM build).After the export, ls the output directory and report the files produced. For static, confirm that index.html is present at the output-directory root.
Provides CDSS development patterns for drug interaction checking, dose validation, clinical scoring (NEWS2, qSOFA), and alert classification integrated into EMR workflows.
npx claudepluginhub alexcristea/over-engineering-plugins --plugin c4