card-diagram
БесплатноБез исполняемых скриптовНе проверенGenerate card-based architecture diagrams as standalone HTML files. Warm glassmorphism style with CSS-only arrows, rounded cards, and backdrop-filter effects…
от tsaol★ 69 звёзд на GitHubОб этом скилле
Card-Based Architecture Diagram Generator
Generate beautiful card-based architecture/pipeline diagrams as standalone HTML files. Uses a warm glassmorphism style with CSS-only arrows — no JavaScript, no external dependencies.
Usage
/card-diagram <description of the architecture or pipeline>
Examples:
/card-diagram A CI/CD pipeline with build, test, deploy, and monitor stages
/card-diagram ML training pipeline: data prep → feature engineering → training → evaluation → deploy
/card-diagram Microservices: API Gateway → Auth → User Service → DB, with async events to Analytics
Output
The skill produces a single self-contained HTML file:
~/tmp/<name>-diagram.html— Standalone, no dependencies, opens in any browser
Optionally (only if configured) copies it to a local sync folder and/or uploads it to S3 and generates a pre-signed URL for sharing:
| Variable | Purpose | Default |
|---|---|---|
CARD_DIAGRAM_SYNC_DIR |
Local folder to copy the HTML into (e.g. a synced drive) | unset → skip |
CARD_DIAGRAM_S3_URI |
S3 prefix to upload to, e.g. s3://my-bucket/diagrams/ |
unset → skip S3 |
AWS_REGION |
Region for the pre-signed URL | your AWS config |
Style Specification
Design Principles
- Warm color palette — cream, amber, terracotta, olive (no cold blues/grays)
- Glassmorphism —
backdrop-filter: blur(6px)+ semi-transparent backgrounds - CSS-only arrows —
::before(line) +::after(triangle), no SVG - Rounded cards —
border-radius: 12-18px - Soft shadows — subtle box-shadow, no harsh edges
- No JavaScript — pure HTML + CSS
- No emojis — clean typography only
Color System
Each stage gets a unique warm tone. Define as CSS variables:
:root {
--bg: #fdf8f0; /* page background */
--ink: #2d1b0e; /* primary text */
--muted: #6b4423; /* secondary text */
/* Per-stage colors (bg, card, border, text) */
--s1-bg: #faf1e0; --s1-card: #f5e3c4; --s1-border: #c9994e; --s1-text: #6b4910;
--s2-bg: #ffeed6; --s2-card: #ffd8a6; --s2-border: #e07a3c; --s2-text: #7a3a0c;
--s3-bg: #fbe5dc; --s3-card: #f5c8b8; --s3-border: #c47057; --s3-text: #6b2e1e;
--s4-bg: #f9efcf; --s4-card: #f0dca0; --s4-border: #b08842; --s4-text: #5e4514;
--s5-bg: #e8f0e4; --s5-card: #d4e8cc; --s5-border: #6b9e5a; --s5-text: #3a5e2e;
--s6-bg: #e8e4f0; --s6-card: #d4cce8; --s6-border: #7a5e9e; --s6-text: #4a2e6b;
/* Arrow colors match source stage border */
--arrow-1: #c9994e;
--arrow-2: #e07a3c;
--arrow-3: #c47057;
--arrow-4: #b08842;
--arrow-5: #6b9e5a;
}
For more than 6 stages, cycle through the palette.
Layout Structure
┌────────────────────────────────────────────────────────────┐
│ Title + Subtitle │
├────────────────────────────────────────────────────────────┤
│ │
│ [Block 1] → [Block 2] → [Block 3] → [Block 4] │
│ │
├────────────────────────────────────────────────────────────┤
│ Additional Sections (modes, tech, etc.) │
├────────────────────────────────────────────────────────────┤
│ Legend │
└────────────────────────────────────────────────────────────┘
Top Row: Pipeline Blocks
Use CSS Grid with arrow columns between blocks:
.row-top {
display: grid;
grid-template-columns: 1fr 50px 1fr 50px 1fr 50px 1fr; /* N blocks + N-1 arrows */
align-items: stretch;
}
For 3 stages: 1fr 50px 1fr 50px 1fr
For 5 stages: 1fr 50px 1fr 50px 1fr 50px 1fr 50px 1fr
Block Component
<div class="block s1">
<h2>1. Stage Name</h2>
<div class="card"><div class="title">Component</div><div class="body">Description line 1<br>Description line 2</div></div>
<div class="card"><div class="title">Component 2</div><div class="body">Details</div></div>
<div class="scope">Output: path/to/output</div>
</div>
.block {
border-radius: 18px;
padding: 20px 18px 22px;
border: 1.5px solid;
box-shadow: 0 2px 6px rgba(120, 60, 20, 0.06);
}
.card {
border-radius: 12px;
padding: 10px 12px;
margin-bottom: 8px;
border: 1px solid rgba(0,0,0,0.04);
box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
Arrow Component (CSS-only)
<div class="arrow-col"><div class="arrow-h a1"></div></div>
.arrow-col {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 12px 0;
}
.arrow-h {
position: relative;
width: 100%;
height: 22px;
}
.arrow-h::before {
content: "";
position: absolute;
top: 50%;
left: 4px; right: 14px;
height: 2.5px;
background: var(--arrow-c, var(--arrow-1));
border-radius: 2px;
transform: translateY(-50%);
}
.arrow-h::after {
content: "";
position: absolute;
top: 50%;
ri
Установить card-diagram в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл card-diagram?
Generate card-based architecture diagrams as standalone HTML files. Warm glassmorphism style with CSS-only arrows, rounded cards, and backdrop-filter effects. Use when the user asks to create a pipeline, flow, or architecture diagram in card style.
Как установить скилл card-diagram?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл card-diagram запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic