diagram-designlisted
知识可视化 / 画图解。把知识页、打法、方法论、诊断结论画成 LOOP 品牌的图(循环图、四象限、漏斗、流程图、客户旅程、矩阵热力图等 45 种),输出 HTML + PNG。当主人说"画成图""可视化一下""做张图解""出一张配图"或输入 /diagram-design 时调用。Create branded architecture, architecture delta, IT current-state, flowchart, sequence, state machine, ER/data model, timeline, swimlane, quadrant, radar/spider, polar chart (polar/radial lollipop), loop/flywheel, nested, tree, org chart, layer stack, exploded axonometric, axonometric plan, Venn, pyramid/funnel, treemap and marimekko, heatmap, bar and dumbbell, waterfall, line (slopegraph, ridgeline, streamgraph, bump), Gantt and scatter charts (bubble, beeswarm, box plot), high-level, process, medallion, data flow, DP integration, DP security matrix, Sankey, fishbone, Wardley map, kanban, user journey, service blueprint, deployment, dependency graph (arc diagram), UML class, story map, or database schema diagrams as HTML/SVG/PNG, with .drawio, Mermaid, and .excalidraw import, plus lifecycle phase maps, block decomposition trees, and onboarding guidance.
yileeai/loop-skills · ★ 0 · Web & Frontend · score 65
Install: claude install-skill yileeai/loop-skills
## 0. 根据地本地规则(AI根据地 · LOOP,优先于下文)
> 这一节是本库加的,优先于下面的英文原文。上游仓库:github.com/cathrynlavery/diagram-design(MIT)。
- **品牌已定制**:`references/style-guide.md` 已是 LOOP 皮肤(松绿唯一强调色、系统字体、不连谷歌字体)。跳过第 0 节的首次设置问询,不要提议保存 profile。
- **全中文**:标题、节点、标签全部用简体中文;节点名 14px、副标签 11px,中文不低于 11px;按每个汉字 1em 估算框宽。
- **先读知识再画**:画库里的知识时,先读对应的知识页,图里每个节点都要能在原文里找到依据;推断出来的连接要在回复里告诉主人。
- **放哪里**:
- 默认放 `90-System 系统/视觉素材/图解/`,文件名 `图解-简短主题.html`,同名 `.png` 放在一起。
- 如果图是给某个知识页配的,在那页的 `## 关键信息` 或 `## 咨询中怎么用` 里用 `![[图解-xxx.png]]` 嵌入,同时把 `.html` 的路径写进 frontmatter 的 `related`。
- 给 `/content` 做的配图,放在对应内容作品旁边。
- **隐私**:`20-Wiki 知识/` 和内容作品用的图必须脱敏(同 CLAUDE.md 第 6 节),客户真名、公司名、金额只能出现在客户档案 / 咨询交付里的图上。
- **导出 PNG**:本机没有 Playwright 时,不要装,直接用系统浏览器无头截图:
- Mac:`"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --headless=new --hide-scrollbars --window-size=1280,1400 --screenshot="<输出.png>" "file://<绝对路径.html>"`
- Windows:把浏览器换成 `"C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe"`,参数相同。
- 截完自己看一遍 PNG:文字有没有被框挡住、标签有没有压线,有问题就改完再交。
- **结束后**:在 `20-Wiki 知识/编译日志.md` 末尾追加一条 `## [日期] content | 图解:主题`。
# Diagram Design
Create diagrams as self-contained HTML files with inline SVG and an editorial design system.
Forty-five visual types. Semantic patterns describe behavior; type references describe layout.
---
## 0. First-time setup — style guide gate
**Before generating your first diagram in a new project, verify the style guide has been customized.**
Do not silently ship default-skinned diagrams into