thatrebeccarae/claude-marketing / skills/tech-diagram
tech-diagram
VerifiedGenerate technical architecture diagrams, pipeline flows, layer/stack diagrams, and system illustrations as standalone HTML files. Uses a dark-mode design system with embedded CSS and inline SVG. Use when the user needs architecture diagrams, system illustrations, flow charts, or technical visualizations.
| File | Kind | Size |
|---|---|---|
| EXAMPLES.md | markdown | 2.5 KB |
| LICENSE | other | 1.0 KB |
| REFERENCE.md | markdown | 7.7 KB |
| SKILL.md | skill md | 4.3 KB |
REFERENCE.md
View on GitHub# Tech Diagram — Reference
Complete HTML/CSS patterns for building technical diagrams.
## HTML Boilerplate
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Diagram Title</title>
<style>
/* Paste design tokens from SKILL.md :root block */
/* Then add component styles below */
</style>
</head>
<body>
<div class="canvas">
<h1 class="diagram-title">Diagram Title</h1>
<!-- Components here -->
</div>
</body>
</html>
```
## Base Styles
```css
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
background: var(--bg-deep);
color: var(--text-bright);
font-family: system-ui, -apple-system, sans-serif;
line-height: 1.5;
}
.canvas {
max-width: 1200px;
margin: 0 auto;
padding: 48px;
}
.diagram-title {
font-size: 32px;
font-weight: 600;
margin-bottom: 8px;
}
.diagram-subtitle {
font-size: 16px;
color: var(--text-secondary);
margin-bottom: 40px;
}
```
## Pipeline Flow
```css
.pipeline {
display: flex;
align-items: stretch;
gap: 0;
}
.pipeline-stage {
flex: 1;
padding: 24px;
background: var(--bg-surface);
border: 1px solid var(--border-subtle);
border-radius: 12px;
position: relative;
}
.pipeline-stage + .pipeline-stage { margin-left: 32px; }
/* Arrow connector between stages */
.pipeline-stage + .pipeline-stage::before {
content: "";
position: absolute;
left: -24px;
top: 50%;
transform: translateY(-50%);
width: 16px;
height: 2px;
background: var(--text-muted);
}
.pipeline-stage + .pipeline-stage::after {
content: "";
position: absolute;
left: -12px;
top: 50%;
transform: translateY(-50%) rotate(45deg);
width: 8px;
height: 8px;
border-top: 2px solid var(--text-muted);
border-right: 2px solid var(--text-muted);
}
.stage-icon {
width: 40px;
height: 40px;
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 16px;
}
.stage-label {
font-size: 16px;
font-weight: 600;
margin-bottom: 8px;
}
.stage-desc {
font-size: 13px;
color: var(--text-secondary);
line-height: 1.5;
}
```
```html
<div class="pipeline">
<div class="pipeline-stage">
<div class="stage-icon" style="background: rgba(88,166,255,0.15);">
<svg width="20" height="20" fill="var(--accent-blue)"><!-- icon --></svg>
</div>
<div class="stage-label">Ingest</div>
<div class="stage-desc">Pull data from APIs and webhooks into the staging layer.</div>
</div>
<div class="pipeline-stage">
<div class="stage-icon" style="background: rgba(63,185,80,0.15);">
<svg width="20" height="20" fill="var(--accent-green)"><!-- icon --></svg>
</div>
<div class="stage-label">Transform</div>
<div class="stage-desc">Clean, normalize, and enrich raw records.</div>
</div>
<!-- more stages -->
</div>
```
## Layer/Stack Diagram
```css
.stack {
display: flex;
flex-direction: column;
gap: 4px;
max-width: 700px;
}
.stack-layer {
display: flex;
align-items: center;
padding: 20px 28px;
border-radius: 10px;
border: 1px solid var(--border-subtle);
}
.layer-label {
font-size: 15px;
font-weight: 600;
min-width: 160px;
}
.layer-desc {
font-size: 13px;
color: var(--text-secondary);
}
.layer-tag {
margin-left: auto;
font-family: monospace;
font-size: 12px;
padding: 2px 8px;
border-radius: 4px;
background: var(--bg-elevated);
color: var(--text-muted);
}
```
## Component Diagram
```css
.components {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 16px;
}
.component-box {
padding: 20px;
background: var(--bg-surface);
border: 1px solid var(--border-subtle);
border-radius: 10px;
}
.component-name {
font-size: 15px;
font-weight: 600;
margin-bottom: 4px;
}
.component-tech {
font-family: monospace;
font-size: 12px;
color: var(--text-muted);
margin-bottom: 12px;
}
.component-status {
font-size: 12px;
display: inline-flex;
align-items: center;
gap: 6px;
}
.status-dot {
width: 8px;
height: 8px;
border-radius: 50%;
}
```
## Metric Callout Row
```css
.metrics-row {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 16px;
margin: 32px 0;
}
.metric-card {
padding: 24px;
background: var(--bg-surface);
border: 1px solid var(--border-subtle);
border-radius: 12px;
text-align: center;
}
.metric-value {
font-family: monospace;
font-size: 42px;
font-weight: 700;
line-height: 1.1;
margin-bottom: 4px;
}
.metric-label {
font-size: 13px;
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 0.08em;
}
.metric-trend {
font-size: 13px;
margin-top: 8px;
}
.trend-up { color: var(--accent-green); }
.trend-down { color: var(--accent-red); }
```
## Before/After Split
```css
.split {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0;
border: 1px solid var(--border-subtle);
border-radius: 12px;
overflow: hidden;
}
.split-side {
padding: 32px;
}
.split-before {
background: var(--bg-surface);
border-right: 1px solid var(--border-subtle);
}
.split-after {
background: var(--bg-elevated);
}
.split-label {
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.1em;
color: var(--text-muted);
margin-bottom: 16px;
}
```
## Timeline
```css
.timeline {
position: relative;
padding-left: 32px;
}
.timeline::before {
content: "";
position: absolute;
left: 7px;
top: 8px;
bottom: 8px;
width: 2px;
background: var(--border-subtle);
}
.timeline-item {
position: relative;
padding-bottom: 32px;
}
.timeline-dot {
position: absolute;
left: -32px;
top: 6px;
width: 16px;
height: 16px;
border-radius: 50%;
border: 2px solid;
background: var(--bg-deep);
}
.timeline-date {
font-family: monospace;
font-size: 12px;
color: var(--text-muted);
margin-bottom: 4px;
}
.timeline-title {
font-size: 16px;
font-weight: 600;
margin-bottom: 4px;
}
.timeline-desc {
font-size: 13px;
color: var(--text-secondary);
}
```
## Inline SVG Icon Patterns
Common icons as inline SVG (20x20):
```html
<!-- Database -->
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.5">
<ellipse cx="10" cy="5" rx="7" ry="3"/>
<path d="M3 5v10c0 1.66 3.13 3 7 3s7-1.34 7-3V5"/>
<path d="M3 10c0 1.66 3.13 3 7 3s7-1.34 7-3"/>
</svg>
<!-- Server -->
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.5">
<rect x="3" y="2" width="14" height="6" rx="1.5"/>
<rect x="3" y="12" width="14" height="6" rx="1.5"/>
<circle cx="6" cy="5" r="1" fill="currentColor"/>
<circle cx="6" cy="15" r="1" fill="currentColor"/>
</svg>
<!-- Cloud -->
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.5">
<path d="M5.5 16A3.5 3.5 0 015 9.05 5 5 0 0115 9a3 3 0 01.5 5.95"/>
</svg>
<!-- Code/API -->
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.5">
<polyline points="7 6 3 10 7 14"/>
<polyline points="13 6 17 10 13 14"/>
<line x1="11" y1="4" x2="9" y2="16"/>
</svg>
<!-- Chart -->
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.5">
<rect x="3" y="10" width="3" height="7" rx="0.5"/>
<rect x="8.5" y="6" width="3" height="11" rx="0.5"/>
<rect x="14" y="3" width="3" height="14" rx="0.5"/>
</svg>
```
## Print Styles
```css
@media print {
body { background: white; color: #1f2328; }
.canvas { padding: 24px; }
.pipeline-stage,
.stack-layer,
.component-box,
.metric-card {
background: #f6f8fa;
border-color: #d0d7de;
box-shadow: none;
}
* { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
```
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deployment | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |