diagram-design
Skill9 starsChanged 3 months agoMITView on GitHub
에디토리얼 품질 다이어그램 표현 계층. 파이프라인 .mmd(flowchart/sequence/state/ER) 또는 자연어 설명을 브랜드 토큰 기반 self-contained HTML + inline SVG로 렌더링한다. PRD·기술문서·아키텍처 문서 등 사람에게 전달되는 산출물에 다이어그램이 필요할 때 사용. Mermaid 파이프라인을 대체하지 않음(.mmd가 정본, 이 모듈은 렌더링만). "다이어그램 예쁘게", "editorial diagram", "다이어그램 렌더링", "발표용 다이어그램" 요청에 실행. Credits: cathrynlavery/diagram-design v2.6 (MIT, pinned 648c2a5)
57 other projects use a version of this.
Adopted by
Most recently taken up by
- VinodBobby/skillstheir own version, first seen Nov 29, 2026
- caihanbing/skillstheir own version, first seen Nov 29, 2026
- SwiftyJunnos/skillstheir own version, first seen Nov 29, 2026
- narumiruna/skillstheir own version, first seen Nov 29, 2026
- microsoft/devsquad-copilottheir own version, first seen Nov 29, 2026
- thassung/skillstheir own version, first seen Nov 29, 2026
Used with
Projects with it also use pretty-mermaid, transitions-dev and 9 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
drafaelSkillpretty-mermaid
Render beautiful Mermaid diagrams as SVG or ASCII art using the beautiful-mermaid library. Supports 15+ themes, 5 diagram types (flowchart, sequence, state, class, ER), and ultra-fast rendering.
Also in 3 projects that use this
AnasX7Skilltransitions-dev
Production-ready CSS transitions for web apps. Use when implementing notification badges, dropdowns, modals, panel reveals, page transitions, card resizes, number pop-ins, text swaps, icon swaps, success checks, avatar group hovers, error state shakes, search/input clear, skeleton loaders, shimmer text, sliding tabs, tooltips, staggered text reveals, card hover tilt, plus-to-menu morph, accordions, toasts, like buttons, learn-more hovers, checkbox checks, spinning counters, toggles, AI thinking states, reasoning streams, streaming text, matrix dot loaders, or banner stacking. Triggers on "add a transition", "animate the dropdown", "make the modal open smoothly", "swap icon", "page slide", "stagger animation", "open / close transition", "make it animate", "fade between", "success animation", "form error", "shake on invalid", "hover lift", "avatar stack hover", "clear the search", "skeleton loader", "loading shimmer", "shimmer text", "sliding tabs", "segmented control", "tooltip", "reveal text", "tilt card", "3D hover tilt", "cursor glare", "plus to menu", "FAB morph", "accordion", "collapsible", "expand / collapse", "disclosure", "toast", "snackbar", "like button", "heart animation", "learn more arrow", "checkbox", "check animation", "spinning counter", "odometer", "slot machine digits", "toggle", "switch", "thinking states", "AI status line", "agent reasoning", "reasoning stream", "streaming text", "stream words in", "matrix loader", "dot loader", "banner stack", "stacked toasts". Also "motion tokens", "scan for ad-hoc transitions", "replace hardcoded durations with motion tokens", "tokenize my animations", and the commands transitions reveal, transitions review, transitions apply, transitions refine.
Also in 3 projects that use this
wangzhuofengSkilljson-canvas
Create and edit JSON Canvas files (.canvas) with nodes, edges, groups, and connections. Use when working with .canvas files, creating visual canvases, mind maps, flowcharts, or when the user mentions Canvas files in Obsidian.
Also in 6 projects that use this
AnasX7Skillbetter-accessibility
Helps your project comply with accessibility standards and best practices.
Also in 3 projects that use this
jaydubya818Skillobservability-and-instrumentation
Add or review logs, metrics, traces, and actionable alerts.
Also in 4 projects that use this
LLl0k0laDSkillusing-agent-skills
Use when starting a session or when you need to discover which skill applies to the current task. This is the meta-skill that governs how all other skills are discovered and invoked.
Also in 4 projects that use this
- +2 more from AnasX7
Other versions57 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 57
- cathrynlavery/diagram-design★ 75ksame name
- kdlbs/kandev★ 1.2ksame name
- chenjackle45/html-visualizer★ 95same name
- microsoft/devsquad-copilot★ 57same name
- microsoft/frontiersquad-copilot★ 57same name
- baekenough/oh-my-customcode★ 47same name
- tsukhani/jclaw★ 42same name
- spmtitsolution/OpenBA-Kit★ 38same name
- Fioooooooo/FylloCode★ 29same name
- EricGrill/agents-skills-plugins★ 21same name
47 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository110 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/orchestrator/mcp-server/AGENTS.mdAGENTS.md
- skills/supabase-postgres-best-practices/AGENTS.mdAGENTS.md
- skills/vercel-react-best-practices/AGENTS.mdAGENTS.md
- agent-md-refactorSkill
- agent-team-codexSkill
- agent-teamSkill
- antigravity-mnemoSkill
- antigravitySkill
- api-handoffSkill
- api-testerSkill
- argosSkill
- atlasSkill
- auto-continue-loopSkill
- autoresearchSkill
- biz-strategySkill
- ceoSkill
- clioSkill
- code-reviewerSkill
- codex-mnemoSkill
- codexSkill
- command-creatorSkill
- commit-workSkill
- consistency-auditSkill
- crafting-effective-readmesSkill
- daily-meeting-updateSkill
- database-schema-designerSkill
- datadog-cliSkill
- data-visualizationSkill
- dependency-updaterSkill
- deprecation-and-migrationSkill
- design-planSkill
- design-system-starterSkill
- devin-mnemoSkill
- docker-db-backupSkill
- docker-deploySkill
- documentation-and-adrsSkill
- docxSkill
- domain-dictionarySkill
- domain-name-brainstormerSkill
- dotnet-coding-standardsSkill
- draw-ioSkill
- estimateSkill
- excalidrawSkill
- excel2mdSkill
- explainSkill
- find-skillsSkill
- flow-verifierSkill
- frontend-designSkill
- fullstack-coding-standardsSkill
- game-changing-featuresSkill
- grok-mnemoSkill
- gs-certificationSkill
- health-dataSkill
- hestiaSkill
- humanizerSkill
- irisSkill
- jiraSkill
- ko-en-translatorSkill
- llm-provider-setupSkill
- The first 60 shown.
The file
Files
Diagram Design (표현 계층)
정본은
.mmd, 렌더링은 여기. Mermaid 자동 레이아웃 대신 에디토리얼 규칙으로 직접 배치한 inline SVG를 생성합니다. upstream cathrynlavery/diagram-design의 부분 vendoring입니다.
역할 경계 (필수 준수)
| 계층 | 소유자 | 산출물 | 용도 |
| 설계 도면 (정본) | mermaid-diagrams + flow-verifier + zephermine Step 18 | .mmd | 기계 대조(코드 흐름 검증), diff, 파이프라인 |
| 표현 (이 모듈) | diagram-design | self-contained .html (+ 선택 .png) | 사람용 문서·발표·공유 |
- 이 모듈은
.mmd를 읽기만 하고 절대 수정하지 않습니다. flow-verifier 검증 체인의 입력을 바꾸지 않습니다. - Claude 네이티브 경계: Claude에서 Artifact(웹 페이지)로 출력할 다이어그램은 네이티브
artifact-diagramming스킬이 우선입니다. 이 모듈은 (a) 파일 산출물이 필요할 때(clio 문서 삽입, PNG 내보내기), (b) Codex/Antigravity/Grok 등 네이티브가 없는 CLI에서 사용합니다. - 데이터 차트(bar/line/scatter 등 통계 시각화)는
data-visualization스킬 소관입니다. 이 모듈은 구조·흐름·관계 다이어그램만 담당합니다.
Vendored 구성 (부분 이식)
| 파일 | 내용 |
references/core-rules.md | upstream SKILL.md 원문 — 철학, 커넥터 6규칙(§6), 4px 그리드·복잡도 예산(§7), 산출 전 체크리스트(§9). 그리기 전 반드시 로드 |
references/style-guide.md | 색·타이포 토큰 정본 (paper/ink/muted/accent, Instrument Serif + Geist + Geist Mono) |
references/output-spec.md | format × size × detail × audience 다이얼, viewBox 프리셋, 타입 램프 |
references/type-*.md | 타입별 레이아웃 규칙 — architecture, flowchart, sequence, er, db-schema, layers (6종) |
references/import-mermaid.md | Mermaid → IR → 재배치 절차 |
references/export.md | HTML → SVG/PNG 내보내기 (Playwright) |
scripts/mermaid_extract.py | .mmd → JSON IR 파서 (표준 라이브러리만, flowchart/sequence/state/ER 지원) |
assets/template.html, assets/template-dark.html | 산출 스캐폴드 |
LICENSE.upstream | upstream MIT 라이선스 원문 |
미포함 upstream 자산: 나머지 33개 type 레퍼런스, semantic-patterns, animation, primitive-*,
onboarding/profiles, example HTML. 미포함 타입이 필요하면
https://raw.githubusercontent.com/cathrynlavery/diagram-design/main/skills/diagram-design/references/type-{이름}.md
에서 가져와 사용하고, 네트워크가 없으면 해당 타입을 NOT RUN으로 보고합니다.
vendored 6종으로 억지 대체하지 않습니다(폴백 금지).
워크플로우
- 입력 확보
.mmd파일:python scripts/mermaid_extract.py <파일> --json으로 JSON IR 추출 (노드·엣지·깊이·사이클 분석 포함). 이어서references/import-mermaid.md의 재배치 절차 적용.- 자연어 설명: 노드·관계 목록을 먼저 텍스트로 확정한 뒤 진행.
타입 선택 — 아래 매핑표에서 선택 후 해당
references/type-*.md로드:내용 타입 비고 시스템 구성, 컴포넌트 연결 type-architecture.mdC4 Container 수준 프로세스·분기 ( .mmd flowchart)type-flowchart.mdflow-verifier 도면의 사람용 렌더링 API·시간 흐름 ( .mmd sequenceDiagram)type-sequence.md데이터 모델 개요 ( .mmd erDiagram)type-er.md관계 중심 테이블 상세 스키마 type-db-schema.md컬럼·키 포함 계층 구조 (인프라 스택, 아키텍처 레이어) type-layers.md- 규칙 로드 —
references/core-rules.md(§1 철학, §6 커넥터, §7 그리드·예산, §9 체크리스트)와references/style-guide.md를 읽는다. 이 단계를 건너뛰고 그리지 않는다. - 토큰 결정 — 아래 "DESIGN.md 토큰 매핑" 적용.
- SVG 작성 —
assets/template.html스캐폴드에 inline SVG로 작성. viewBox·크기는references/output-spec.md프리셋(기본doc-inline960×600)을 따른다. - 검증 — core-rules.md §9 체크리스트 통과 확인. 가능하면 브라우저/Playwright로 실제 렌더를 열어 레이블 겹침·잘림을 육안 확인한다("다 된 것 같다" ≠ "확인됐다").
- 산출 — 단일
.html저장. PNG가 필요하면references/export.md절차(Playwright 스크린샷).
DESIGN.md 토큰 매핑 (upstream §0 대체)
upstream의 "첫 실행 시 사용자에게 브랜드 질문" 게이트는 사용하지 않습니다 (zeus 등 zero-interaction 파이프라인과 충돌). 대신:
- 대상 프로젝트 루트에
DESIGN.md가 있으면 그 토큰을 매핑한다:background → paper,text → ink,accent/primary → accent, 본문 폰트 → node-name 폰트. 매핑 후 accent 대비가 WCAG AA 미달이면style-guide.md의 Inversion rule로 보정. DESIGN.md가 없으면 기본 스킨(white-smoke + atomic-tangerine)을 그대로 쓰고, 산출 보고에 "기본 스킨 사용"을 한 줄 명시한다. 질문하지 않는다.
복잡도 예산과 분할
- core-rules.md 기준: 노드 9개 이하, 화살표 12개 이하 (밀도 목표 4/10).
- 파이프라인
.mmd는 노드 20개까지 허용되므로(zephermine 규칙) 초과분은 개요 다이어그램 1장 + 상세 다이어그램 N장으로 분할한다. 정본.mmd는 분할하지 않는다. - 액센트는 다이어그램당 1~2개 노드만. 그림자 금지, 4px 그리드 준수.
Related Files
| 경로 | 역할 |
skills/diagram-design/references/core-rules.md | 핵심 규칙 원문 (upstream SKILL.md v2.6) |
skills/diagram-design/references/style-guide.md | 토큰 정본 |
skills/diagram-design/scripts/mermaid_extract.py | .mmd → JSON IR |
skills/mermaid-diagrams/SKILL.md | 정본 도면 문법 (상류 모듈) |
skills/flow-verifier/SKILL.md | 도면 대비 코드 검증 (이 모듈과 무관하게 .mmd 사용) |
skills/clio/SKILL.md | 주 소비자 — 문서 산출물 다이어그램 렌더링 |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

