/caddis-extras:architecture-diagramfrom caddis-extras
Dark-themed architecture diagrams as self-contained HTML/SVG, no external tools. Use for system, cloud, microservice and deployment diagrams.
Ships in caddis-extras. 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.
None: SKILL.md is the whole skill.
Generate professional dark-themed architecture diagrams as standalone HTML files with embedded SVG. Browser-only — no Graphviz, no Mermaid renderer, no server required.
Not suitable for: scientific subjects, physical objects, floor plans, hand-drawn aesthetics — use excalidraw or draw-io for those.
Load this skill when users ask for:
Complements architecture-design (planning/notation) — use that first, then use this skill to produce the rendered output artifact.
Map every component to a type, then apply these colors consistently:
| Component Type | Stroke | Fill |
|---|---|---|
| Frontend | #22d3ee | rgba(8, 51, 68, 0.4) |
| Backend / Service | #34d399 | rgba(6, 78, 59, 0.4) |
| Database | #a78bfa | rgba(76, 29, 149, 0.4) |
| Cloud / AWS | #fbbf24 | rgba(120, 53, 15, 0.3) |
| Security / Auth | #fb7185 | rgba(136, 19, 55, 0.4) |
| Message Bus / Queue | #fb923c | rgba(251, 146, 60, 0.3) |
| External / Third-party | #94a3b8 | rgba(30, 41, 59, 0.5) |
#020617 (slate-950) with a 40px grid pattern using rgba(148, 163, 184, 0.05) lineswght@400;500;700)
Render in this exact sequence to avoid transparency bleed-through:
Prevents arrow lines from showing through filled shapes:
<!-- 1. opaque background rect (clips arrow lines) -->
<rect x="X" y="Y" width="W" height="H" rx="6"
fill="#020617" stroke="none"/>
<!-- 2. semi-transparent styled rect on top -->
<rect x="X" y="Y" width="W" height="H" rx="6"
fill="FILL_COLOR" stroke="STROKE_COLOR" stroke-width="1.5"/>
<!-- 3. label -->
<text x="X+W/2" y="Y+H/2+4" text-anchor="middle"
font-family="JetBrains Mono" font-size="12" font-weight="500"
fill="STROKE_COLOR">Component Name</text>
Define in <defs>:
<defs>
<marker id="arrow-cyan" markerWidth="8" markerHeight="6"
refX="7" refY="3" orient="auto">
<polygon points="0 0, 8 3, 0 6" fill="#22d3ee"/>
</marker>
<!-- repeat for each stroke color used -->
</defs>
Use marker-end="url(#arrow-cyan)" on connection lines.
Use dashed strokes for grouping boxes:
<rect x="X" y="Y" width="W" height="H" rx="8"
fill="rgba(251,113,133,0.05)" stroke="#fb7185"
stroke-width="1" stroke-dasharray="6,3"/>
<text font-size="11" font-weight="700" fill="#fb7185" opacity="0.7">
Security Zone
</text>
Always position below all boundary boxes, never overlapping content:
<!-- Legend box -->
<rect x="20" y="BOTTOM+20" width="320" height="..." rx="6"
fill="rgba(148,163,184,0.05)" stroke="rgba(148,163,184,0.2)" stroke-width="1"/>
<!-- Legend entries: color dot + label -->
<circle cx="36" cy="Y" r="5" fill="#22d3ee"/>
<text x="48" y="Y+4" fill="#94a3b8" font-size="10">Frontend</text>
Single self-contained HTML file:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Architecture — [System Name]</title>
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&display=swap" rel="stylesheet">
<style>
body { margin: 0; background: #020617; display: flex; justify-content: center; padding: 24px; }
svg { max-width: 100%; height: auto; }
</style>
</head>
<body>
<svg viewBox="0 0 WIDTH HEIGHT" xmlns="http://www.w3.org/2000/svg">
<!-- defs: markers, grid pattern -->
<!-- background + grid -->
<!-- boundary containers -->
<!-- connection arrows -->
<!-- component boxes (double-rect) -->
<!-- legend -->
</svg>
</body>
</html>
| Diagram complexity | viewBox width | Component box |
|---|---|---|
| Simple (< 8 nodes) | 900px | 140 × 50px |
| Medium (8–20 nodes) | 1200px | 140 × 50px |
| Large (20+ nodes) | 1600px | 120 × 45px |
Minimum padding from SVG edge: 40px. Minimum gap between components: 30px.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub saajunaid/caddis-plugin --plugin caddis-extras81 skills in this plugin
/adopt-rbacPointer to the org's RBAC adoption skill. Use for "add RBAC to this app" or "adopt rbac-kit"./agent-md-refactorRefactor bloated agent instruction files (AGENTS.md, .cursorrules, .github/ files) into linked, progressively disclosed docs./agent-orchestrationBlueprint for orchestrating the agent pipeline from spec to planning, implementation, testing and debugging, plus when a second model is worth it, the intent→model map and cost guardrails./algorithmic-artGenerative and algorithmic art with p5.js: flow fields, particle systems, animations, WebGL, audio-reactive visuals; exports HTML, PNG, GIF, MP4, SVG. Use for creative coding or any p5.js visual./anchor-reviewSingle-model adversarial review technique — 3-lens analysis with confidence scoring and self-challenge/api-client-patternsTyped client-side API consumption: fetch wrappers, zod validation, auth injection, TanStack Query (useQuery, useMutation, optimistic updates), tRPC, OpenAPI codegen, pagination. Use when consuming REST or tRPC APIs.