architecture-diagram
Originally frommathews-tom/praxis-skills
Installation
SKILL.md
Architecture Diagram Generator
Produces self-contained .html files: inline SVG icons, CSS Grid nested zones, JS-driven SVG connection overlay with color-coded semantic line types and arrowhead markers. Zero external dependencies.
Workflow
- Parse user input → extract: components (with descriptions), containment hierarchy (zones/nesting), connections (with semantic types), and any provider context
- Read
references/icons.md— select or create icons for each component - Read
references/layout-patterns.md— choose topology pattern, set grid-template-columns - Read
references/connections.md— define connection array with types, side-forcing, routing - Start from
assets/template.html— use its CSS/JS structure as the base - Assemble the HTML:
- Set
{{DIAGRAM_TITLE}},{{BG_COLOR}},{{MAX_WIDTH}} - Populate
{{LEGEND_ITEMS}}— one entry per connection type used - Build zone hierarchy as nested
div.zone > span.zone-label + div.zone-content - Place nodes with
data-node-id, each containing:.node-icon(inline SVG),.node-title,.node-desc - Populate the
connectionsJS array - Apply provider theming if applicable
- Set
- Output final
.htmlto the working directory or user-specified path