Generate a standalone .html architecture diagram from $ARGUMENTS.
If the user wants Mermaid, Excalidraw, or SVG/PNG-only output, route away from this skill. If nodes, flows, or trust boundaries are too vague, ask one short clarifying question. If the request is still underspecified after that, list the missing architecture facts instead of inventing them.
Workflow
- Read
$SKILL_DIR/assets/template.htmland$SKILL_DIR/references/style.md. - Inspect the closest file in
$SKILL_DIR/examples/only when it materially matches the requested architecture. - Extract layers, nodes, edges, labels, trust boundaries, and legend needs.
- Choose a layout before editing:
- left-to-right for request pipelines
- top-to-bottom for stacked platforms or zone boundaries
- Resolve the output path:
- use the user-provided filename when present
- otherwise save
descriptive-name-architecture.htmlin the working directory
- Customize the template instead of rebuilding the page shell from scratch.
- Keep arrows behind components, keep legends outside every boundary, and expand the SVG
viewBoxwhenever the diagram grows. - Write the final
.htmlfile to disk.
Return
Always return:
- the HTML file path
- the chosen layout
- any assumptions or clarifications applied
- whether boundary placement, legend placement, and spacing were checked
Final Checklist
- legend is outside every region, cluster, and security boundary
- vertical spacing prevents overlapping components or inline buses
- arrows do not sit on top of component boxes
- component colors match their semantic type
- the file opens directly in a modern browser