{"id":"3f69c0ea-dbd7-4771-a9e5-31a983c2b88d","entityType":"agent","slug":"clawhub-zhaobod1-huo15-flow-chart","name":"Huo15 Flow Chart","canonicalUrl":"https://www.xpersona.co/agent/clawhub-zhaobod1-huo15-flow-chart","canonicalPath":"/agent/clawhub-zhaobod1-huo15-flow-chart","generatedAt":"2026-10-10T17:37:31.667Z","source":"CLAWHUB","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"editorial-content","verified":true,"confidence":"high","updatedAt":"2026-10-10T13:58:27.201Z","emptyReason":null},"description":"2026 现代美学的流程图、泳道图、系统架构图、C4 架构图、时序图、状态图、ER 图、甘特图生成。Linear/Vercel/Radix 配色 + 软阴影 + 圆角 + 判断色强调 + 容器分层。输入 YAML/JSON 规格或 Mermaid/PlantUML/DOT 源码，输出 SVG/PNG/PDF/dr... Skill: Huo15 Flow Chart Owner: zhaobod1 Summary: 2026 现代美学的流程图、泳道图、系统架构图、C4 架构图、时序图、状态图、ER 图、甘特图生成。Linear/Vercel/Radix 配色 + 软阴影 + 圆角 + 判断色强调 + 容器分层。输入 YAML/JSON 规格或 Mermaid/PlantUML/DOT 源码，输出 SVG/PNG/PDF/dr... Tags: latest:1.4.0 Version history: v1.4.0 | 2026-05-29T06:10:52.304Z | auto huo15-flow-chart v1.4.0 - Added 3 new modern design styles: editorial (NYT magazine style), bauhaus (red-yellow-blue geometric), swis","descriptionLabel":"Technical summary","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. 1.4K downloads reported by the source. Last updated 10/10/2026.","installCommand":"clawhub skill install s17f6q72skfgyjycm2frgdc8dn83v5mk:huo15-flow-chart","sourceUrl":"https://clawhub.ai/zhaobod1/huo15-flow-chart","homepage":"https://clawhub.ai/zhaobod1/skills/huo15-flow-chart","primaryLinks":[{"label":"View on ClawHub","url":"https://clawhub.ai/zhaobod1/huo15-flow-chart","kind":"source"},{"label":"Homepage","url":"https://clawhub.ai/zhaobod1/skills/huo15-flow-chart","kind":"homepage"}],"safetyScore":84,"overallRank":62,"popularityScore":63,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"2026 现代美学的流程图、泳道图、系统架构图、C4 架构图、时序图、状态图、ER 图、甘特图生成。Linear/Vercel/Radix 配色 + 软阴影 + 圆角 + 判断色强调 + 容器分层。输入 YAML/JSON 规格或 Mermaid/PlantUML/DOT 源码，输出 SVG/PNG/PDF/dr..."},"coverage":{"evidence":{"source":"public-profile","verified":false,"confidence":"medium","updatedAt":"2026-10-10T13:58:27.201Z","emptyReason":null},"protocols":[{"protocol":"OPENCLEW","label":"OpenClaw","status":"self-declared","notes":"Declared in the public agent profile."}],"capabilities":[],"verifiedCount":0,"selfDeclaredCount":1,"capabilityMatrix":{"rows":[{"key":"OPENCLEW","type":"protocol","support":"unknown","confidenceSource":"profile","notes":"Listed on profile"}],"flattenedTokens":"protocol:OPENCLEW|unknown|profile"}},"adoption":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-10T13:58:27.201Z","emptyReason":null},"stars":null,"forks":null,"downloads":1400,"packageName":null,"latestVersion":"1.4.0","tractionLabel":"1.4K downloads"},"release":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-10T13:58:27.201Z","emptyReason":null},"lastUpdatedAt":"2026-10-10T13:58:27.201Z","lastCrawledAt":"2026-10-10T13:58:27.201Z","lastIndexedAt":null,"nextCrawlAt":"2026-10-11T13:58:27.201Z","lastVerifiedAt":null,"highlights":[{"version":"1.4.0","createdAt":"2026-05-29T06:10:52.304Z","changelog":"huo15-flow-chart v1.4.0 - Added 3 new modern design styles: editorial (NYT magazine style), bauhaus (red-yellow-blue geometric), swiss (Helvetica/grid, International Typographic Style), expanding to 17 built-in themes. - Enhanced style gallery: batch render all styles for one diagram (see gallery.py and --gallery option). - PNG export now supports adjustable high-DPI scaling (--scale N), up to 4x for print-quality output. - Added new sample diagrams (examples/showcase.yaml, showcase_v132.yaml). - Improved SKILL documentation with new style showcases, style listing, and usage for all features.","fileCount":19,"zipByteSize":54321},{"version":"1.3.0","createdAt":"2026-04-24T04:15:12.981Z","changelog":"v1.3.0 introduces a major visual and design upgrade, unifying all chart styles to a 2026 modern aesthetic and optimizing layout and export behavior. - 全面重构所有主题风格，采用 Linear / Vercel / Radix / Stripe 软色系，统一加厚描边、柔和双层阴影、圆角、节点配色。 - 判断（菱形）节点突出 accent color，数据库（圆柱）节点用 secondary color。 - 所有导出 PDF 默认单页自适应，不分页。 - 节点间距、连线、字体、投影等均现代化，增强视觉空间感和层次。 - 文档与主题描述同步更新，更突出设计理念和新版风格特性。 - 保持输入输出格式和代码接口兼容上版，简单升级即刻享受新外观。","fileCount":15,"zipByteSize":37846},{"version":"1.2.0","createdAt":"2026-04-23T15:56:44.598Z","changelog":"draw.io导出+C4-PlantUML+Tier分层+--export-formats","fileCount":14,"zipByteSize":28733},{"version":"1.1.0","createdAt":"2026-04-23T05:40:42.751Z","changelog":"v1.1.0: 新增 6 种预设风格（ocean 海洋蓝 / forest 森林绿 / sunset 夕阳暖橙 / minimal 极简素雅 / pastel 马卡龙粉嫩 / github 极客），合计 10 种。扩充中文别名映射。","fileCount":14,"zipByteSize":24465},{"version":"1.0.0","createdAt":"2026-04-23T05:37:51.683Z","changelog":"首版发布：13 种图表（flowchart / architecture / swimlane / swimlane_mermaid / sequence / state / gantt / er / class / journey / pie / c4_context / c4_container），3 种输入（YAML / Mermaid / PlantUML 源码），6 种输出（svg/png/pdf/mmd/puml/dot），4 种风格（modern / classic / dark / xiaohongshu）","fileCount":14,"zipByteSize":23067}]},"execution":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No published capability contract is available yet."},"installCommand":"clawhub skill install s17f6q72skfgyjycm2frgdc8dn83v5mk:huo15-flow-chart","setupComplexity":"low","setupSteps":["Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.","Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data."],"contract":{"contractStatus":"missing","authModes":[],"requires":[],"forbidden":[],"supportsMcp":false,"supportsA2a":false,"supportsStreaming":false,"inputSchemaRef":null,"outputSchemaRef":null,"dataRegion":null,"contractUpdatedAt":null,"sourceUpdatedAt":null,"freshnessSeconds":null},"invocationGuide":{"preferredApi":{"snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-zhaobod1-huo15-flow-chart/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-zhaobod1-huo15-flow-chart/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-zhaobod1-huo15-flow-chart/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-zhaobod1-huo15-flow-chart/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-zhaobod1-huo15-flow-chart/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-zhaobod1-huo15-flow-chart/trust\""],"jsonRequestTemplate":{"query":"summarize this repo","constraints":{"maxLatencyMs":2000,"protocolPreference":["OPENCLEW"]}},"jsonResponseTemplate":{"ok":true,"result":{"summary":"...","confidence":0.9},"meta":{"source":"CLAWHUB","generatedAt":"2026-10-10T17:37:31.664Z"}},"retryPolicy":{"maxAttempts":3,"backoffMs":[500,1500,3500],"retryableConditions":["HTTP_429","HTTP_503","NETWORK_TIMEOUT"]}},"endpoints":{"dossierUrl":"https://www.xpersona.co/api/v1/agents/clawhub-zhaobod1-huo15-flow-chart/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-zhaobod1-huo15-flow-chart/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-zhaobod1-huo15-flow-chart/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-zhaobod1-huo15-flow-chart/trust"}},"reliability":{"evidence":{"source":"runtime-metrics","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No trust, reliability, or runtime telemetry is available."},"trust":{"status":"unavailable","handshakeStatus":"UNKNOWN","verificationFreshnessHours":null,"reputationScore":null,"p95LatencyMs":null,"successRate30d":null,"fallbackRate":null,"attempts30d":null,"trustUpdatedAt":null,"trustConfidence":"unknown","sourceUpdatedAt":null,"freshnessSeconds":null},"decisionGuardrails":{"doNotUseIf":["Contract metadata is missing or unavailable for deterministic execution."],"safeUseWhen":[],"riskFlags":["missing_or_unavailable_contract","trust_data_unavailable","schema_references_missing"],"operationalConfidence":"low"},"executionMetrics":{"observedLatencyMsP50":null,"observedLatencyMsP95":null,"estimatedCostUsd":null,"uptime30d":null,"rateLimitRpm":null,"rateLimitBurst":null,"lastVerifiedAt":null,"verificationSource":null},"runtimeMetrics":{"successRate":null,"avgLatencyMs":null,"avgCostUsd":null,"hallucinationRate":null,"retryRate":null,"disputeRate":null,"p50Latency":null,"p95Latency":null,"lastUpdated":null}},"benchmarks":{"evidence":{"source":"no-benchmark-data","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No benchmark suites or observed failure patterns are available."},"suites":[],"failurePatterns":[]},"artifacts":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"high","updatedAt":"2026-10-10T13:58:27.201Z","emptyReason":null},"readme":"Skill: Huo15 Flow Chart\n\nOwner: zhaobod1\n\nSummary: 2026 现代美学的流程图、泳道图、系统架构图、C4 架构图、时序图、状态图、ER 图、甘特图生成。Linear/Vercel/Radix 配色 + 软阴影 + 圆角 + 判断色强调 + 容器分层。输入 YAML/JSON 规格或 Mermaid/PlantUML/DOT 源码，输出 SVG/PNG/PDF/dr...\n\nTags: latest:1.4.0\n\nVersion history:\n\nv1.4.0 | 2026-05-29T06:10:52.304Z | auto\n\nhuo15-flow-chart v1.4.0\n\n- Added 3 new modern design styles: editorial (NYT magazine style), bauhaus (red-yellow-blue geometric), swiss (Helvetica/grid, International Typographic Style), expanding to 17 built-in themes.\n- Enhanced style gallery: batch render all styles for one diagram (see gallery.py and --gallery option).\n- PNG export now supports adjustable high-DPI scaling (--scale N), up to 4x for print-quality output.\n- Added new sample diagrams (examples/showcase.yaml, showcase_v132.yaml).\n- Improved SKILL documentation with new style showcases, style listing, and usage for all features.\n\nv1.3.0 | 2026-04-24T04:15:12.981Z | auto\n\nv1.3.0 introduces a major visual and design upgrade, unifying all chart styles to a 2026 modern aesthetic and optimizing layout and export behavior.\n\n- 全面重构所有主题风格，采用 Linear / Vercel / Radix / Stripe 软色系，统一加厚描边、柔和双层阴影、圆角、节点配色。\n- 判断（菱形）节点突出 accent color，数据库（圆柱）节点用 secondary color。\n- 所有导出 PDF 默认单页自适应，不分页。\n- 节点间距、连线、字体、投影等均现代化，增强视觉空间感和层次。\n- 文档与主题描述同步更新，更突出设计理念和新版风格特性。\n- 保持输入输出格式和代码接口兼容上版，简单升级即刻享受新外观。\n\nv1.2.0 | 2026-04-23T15:56:44.598Z | user\n\ndraw.io导出+C4-PlantUML+Tier分层+--export-formats\n\nv1.1.0 | 2026-04-23T05:40:42.751Z | user\n\nv1.1.0: 新增 6 种预设风格（ocean 海洋蓝 / forest 森林绿 / sunset 夕阳暖橙 / minimal 极简素雅 / pastel 马卡龙粉嫩 / github 极客），合计 10 种。扩充中文别名映射。\n\nv1.0.0 | 2026-04-23T05:37:51.683Z | user\n\n首版发布：13 种图表（flowchart / architecture / swimlane / swimlane_mermaid / sequence / state / gantt / er / class / journey / pie / c4_context / c4_container），3 种输入（YAML / Mermaid / PlantUML 源码），6 种输出（svg/png/pdf/mmd/puml/dot），4 种风格（modern / classic / dark / xiaohongshu）\n\nArchive index:\n\nArchive v1.4.0: 19 files, 54321 bytes\n\nFiles: _meta.json (135b), examples/architecture.yaml (1297b), examples/c4_context.yaml (810b), examples/flowchart.yaml (628b), examples/gantt.yaml (883b), examples/sequence.yaml (912b), examples/showcase_v132.yaml (2010b), examples/showcase.yaml (2410b), examples/state.yaml (704b), examples/swimlane_mermaid.yaml (619b), examples/swimlane.yaml (649b), LICENSE (1145b), scripts/create-flow-chart.py (11014b), scripts/flowchart_core.py (45685b), scripts/flowchart_render.py (10727b), scripts/gallery.py (6721b), scripts/styles.py (35965b), skill-card.md (2242b), SKILL.md (27307b)\n\nFile v1.4.0:SKILL.md\n\n---\nname: huo15-flow-chart\ndisplayName: 火一五流程图技能\ndescription: 2026 现代美学的流程图、泳道图、系统架构图、C4 架构图、时序图、状态图、ER 图、甘特图生成。Linear/Vercel/Radix 配色 + 软阴影 + 圆角 + 判断色强调 + 容器分层。输入 YAML/JSON 规格或 Mermaid/PlantUML/DOT 源码，输出 SVG/PNG/PDF/draw.io；PDF 默认单页自适应画布不分页；内置 17 种风格（含 v1.4 新增 editorial NYT 杂志 / bauhaus 红黄蓝几何 / swiss 国际主义 Helvetica 网格 三个有性格风格）；支持 draw.io 源文件 + C4-PlantUML + 架构 Tier 分层。触发词：流程图、泳道图、时序图、状态图、ER 图、系统架构图、C4 图、画流程图、生成流程图、编辑杂志风、纽约客、NYT、Monocle、包豪斯、三原色、瑞士国际主义、Helvetica 网格、Müller-Brockmann。\nversion: 1.4.0\naliases:\n  - 火一五流程图\n  - 火一五流程图技能\n  - 流程图\n  - 流程图生成\n  - 画流程图\n  - 泳道图\n  - 时序图\n  - 状态图\n  - 甘特图\n  - ER图\n  - 架构图\n  - 系统架构图\n  - C4 架构图\n  - flowchart\n  - flow-chart\n  - diagram\n  - mermaid\n  - draw.io\ndependencies:\n  python-packages:\n    - pyyaml\n  external:\n    - name: \"@mermaid-js/mermaid-cli\"\n      install: \"npm i -g @mermaid-js/mermaid-cli\"\n      notes: \"渲染 Mermaid 时用（mmdc 命令）\"\n    - name: plantuml\n      install: \"brew install plantuml\"\n      notes: \"PlantUML / C4-PlantUML 渲染（泳道图和 C4 图必须）\"\n    - name: graphviz\n      install: \"brew install graphviz\"\n      notes: \"Graphviz DOT 渲染（可选）\"\n---\n\n# 火一五流程图技能 v1.3.3\n\n> 2026 现代美学的流程图 / 架构图 / 泳道图 / C4 架构图 / 时序图生成器 — 青岛火一五信息科技有限公司\n>\n> 设计取向：Linear / Vercel / Radix / Stripe 软色系 + 双层柔和阴影 + 圆角节点 + 判断菱形 accent 强调色 + PDF 单页自适应。\n\n---\n\n## 一、核心能力\n\n### 1.1 支持的图表类型\n\n| type                 | 用途                    | 渲染引擎          | draw.io |\n|---------------------|-----------------------|-----------------|---------|\n| `flowchart`          | 普通流程图                | Mermaid         | ✅       |\n| `architecture`        | 系统架构图（支持 Tier 分层）  | Mermaid         | ✅       |\n| `swimlane`           | 真·泳道图（PlantUML）     | PlantUML        | ❌       |\n| `swimlane_mermaid`   | 泳道风格（Mermaid，不需要 Java）| Mermaid | ✅ |\n| `sequence`           | 时序图                  | Mermaid/PlantUML | ✅       |\n| `state`              | 状态图                  | Mermaid         | ✅       |\n| `gantt`              | 甘特图                  | Mermaid         | ✅       |\n| `er`                 | ER 图                  | Mermaid         | ✅       |\n| `class`              | UML 类图                | Mermaid         | ✅       |\n| `journey`            | 用户旅程                 | Mermaid         | ✅       |\n| `pie`                | 饼图                   | Mermaid         | ✅       |\n| `c4_context`          | C4 上下文图（L1）          | Mermaid / **PlantUML** | ✅ |\n| `c4_container`        | C4 容器图（L2）            | Mermaid / **PlantUML** | ✅ |\n| `mindmap`            | 简单思维导图               | Mermaid         | ✅       |\n\n### 1.2 输出格式\n\n| 格式   | 类型   | 说明 |\n|--------|--------|------|\n| `.svg` | 矢量图  | 浏览器直接打开，最推荐（任意缩放不糊） |\n| `.png` | 位图    | **默认 3× 高清**（≈288 DPI 印刷级），适合 PPT / 文档 |\n| `.pdf` | 矢量 PDF | 适合打印；**默认单页自适应不分页** |\n| `.mmd` | Mermaid 源码 | 复制到 [mermaid.live](https://mermaid.live) 编辑 |\n| `.puml` | PlantUML 源码 | 复制到 PlantUML 编辑器 |\n| `.drawio` | **draw.io 源文件** | 用 draw.io 桌面版打开，精美编辑 |\n| `.dot` | Graphviz DOT 源码 | 复杂网络拓扑 |\n\n**`--scale N`（v1.3.3）**：高清倍率，作用于 PNG。默认 `3.0`（≈288 DPI 印刷级）。\n- `1.0` 普通屏（96 DPI，文件最小）\n- `2.0` 视网膜屏（192 DPI）\n- `3.0` 印刷级 / 默认\n- `4.0` 高印刷（≈384 DPI，文件大约 1.5MB+）\n\n底层映射：mmdc 走 `-s SCALE`，PlantUML 走 `-Sdpi=N`，rsvg-convert 走 `-z N`，Graphviz 走 `-Gdpi=N`。\n\n### 1.3 十七种风格（v1.4 扩充到 17 种）\n\n| key | 名称 | 设计范式 | 适用场景 | 中文别名 |\n|------|-----|---------|---------|---------|\n| `modern`      | 现代商务     | Radix Indigo/Slate，浅底 + 靛紫描边 + 琥珀判断       | 默认首选，商务/技术文档        | 现代、商务、linear、vercel |\n| `classic`     | 经典稳重     | 淡蓝卡 + 深蓝字 + 琥珀强调                           | 咨询报告、正式汇报             | 经典、稳重 |\n| `dark`        | 暗色霓虹     | Linear Dark，深底 + 紫霓虹描边 + 青色 accent         | 演示大屏、技术分享             | 暗色、黑色、霓虹、linear-dark |\n| `xiaohongshu` | 小红书暖奶油 | 奶油底 + 粉卡节点 + 玫红描边                         | 种草封面、女性向运营           | 小红书、奶油、xhs |\n| `ocean`       | 海洋蓝       | 浅天蓝节点 + 深蓝字 + 橙色 accent                    | SaaS 产品、技术架构            | 海洋、蓝、蓝色 |\n| `forest`      | 森林绿       | 浅绿卡 + 墨绿字 + 橙色 accent                        | 环保、农业、健康               | 森林、绿、自然 |\n| `sunset`      | 夕阳暖橙     | 浅橙卡 + 赭红字 + 青色 accent                        | 运营活动、温暖叙事             | 夕阳、暖橙、橙 |\n| `minimal`     | 极简素雅     | Notion 风，近白底 + 深灰字 + 单蓝 accent + 细描边    | 学术论文、出版物、技术书稿     | 极简、素雅、学术、论文、黑白、notion |\n| `pastel`      | 马卡龙粉嫩   | 浅紫底 + 深紫字 + 玫粉 accent                        | 儿童教育、女性向               | 马卡龙、粉嫩、粉、儿童 |\n| `github`      | 极客 GitHub  | 浅蓝卡 + 品牌蓝 + 绿色 accent                        | 开源 README、技术文档          | 极客、程序员、gh |\n| `corporate`   | 企业蓝金     | 深海蓝 + 暖金 accent，小圆角高正式感                 | 金融/政府/年报/提案            | 企业、蓝金、金融、政府 |\n| `ink`         | 水墨朱砂     | 米黄宣纸底 + 墨黑节点 + 朱砂 accent                  | 中国风/国学/文化/出版           | 水墨、朱砂、中国风、宣纸 |\n| `neubrutalism`| 新粗野主义   | 亮色硬填 + 2.8px 黑描边 + 4px 硬阴影 + 0 圆角         | 潮流独立站、设计作品集         | 粗野、新粗野、brutalism、潮流 |\n| `duotone`     | 双色调       | 纯白 + 深海蓝 + 珊瑚粉两色极简（Stripe 风）          | 品牌官网、技术 blog            | 双色、stripe、珊瑚 |\n| `editorial` ⭐v1.4 | 编辑杂志 NYT 风  | 米色卡底 + 衬线字 + 报头朱红描边 + 番茄红 accent + 2px 圆角 | NYT/Monocle 杂志风信息图、长篇报道、编辑型品牌、思想类 SaaS  | 编辑、杂志、纽约客、纽约时报、nyt、monocle、editorial |\n| `bauhaus` ⭐v1.4   | 包豪斯       | 红 #D32F2F + 黄 #FFD600 + 蓝 #1565C0 三原色硬填 + 1.8pt 黑描边 + 0 圆角 + Futura 风字体 | 文化机构、艺术展、几何品牌、教育、设计运动主题 | 包豪斯、三原色、几何、bauhaus、primary-colors |\n| `swiss` ⭐v1.4     | 瑞士国际主义 | 纯白底 + Helvetica + 1px 黑描边 + 报头红 accent + 0 圆角 + 网格化 | 网格化信息图、政府公共项目、博物馆展览图、Müller-Brockmann 风学术 | 瑞士、国际主义、swiss、helvetica、grid、müller、brockmann |\n\n**设计共性（所有风格统一遵循）**：\n- 节点：浅色填充 + 彩色描边 + 深色文字，12px 圆角，1.5px 描边\n- 阴影：双层 drop-shadow（近 1/2px + 远 4/12px），模拟 Linear/Vercel 的浮起质感\n- 判断菱形：统一用 `accent_color` 突出，区别于普通节点\n- 数据库圆柱：`secondary_color` 填充，区别于业务节点\n- **终端节点**（shape: stadium）：`primary_border_color` 实填 + 白字，像 START 按钮（v1.3.1）\n- **分类着色**（`category: 1..5`）：按风格 palette 自动分 5 种色调（v1.3.1）\n- 字体：Inter 优先 + PingFang SC/HarmonyOS Sans 回落，节点 `font-weight: 500`，标题 `600`\n- 连线：`basis` 曲线（flowchart/C4）/ `linear`（泳道）/ 端点圆角\n- 边标签：`border-radius: 999px` 圆角胶囊 + 微阴影（v1.3.1）\n- 间距：`nodeSpacing: 60`、`rankSpacing: 80`、`padding: 20`（更透气）\n\n### 1.4 draw.io 精美增强\n\n- 导出 `.drawio` 源文件，用 draw.io 桌面版打开\n- draw.io 支持：渐变填充、投影、圆角、图标嵌入\n- draw.io 支持 Google Fonts（Mermaid 不支持的中文字体）\n- 配合 `--theme` / `--font` / `--shadow` 参数生成精美效果\n\n---\n\n## 二、快速开始\n\n### 2.1 准备渲染器\n\n```bash\n# 方案 A：Mermaid（推荐，覆盖 90% 场景）\nnpm i -g @mermaid-js/mermaid-cli\n\n# 方案 B：PlantUML（C4-PlantUML / 泳道图必须）\nbrew install plantuml        # macOS\n# apt install plantuml       # Ubuntu/Debian\n\n# 方案 C：Graphviz（网络拓扑可选）\nbrew install graphviz\n\n# Python 依赖\npip install pyyaml\n```\n\n### 2.2 最短上手\n\n```bash\n# 从 YAML 规格生成 PNG（默认 modern 风格）\npython3 scripts/create-flow-chart.py \\\n  -i examples/architecture.yaml \\\n  -o /tmp/arch.png\n\n# 泳道图（真·PlantUML）\npython3 scripts/create-flow-chart.py \\\n  -i examples/swimlane.yaml \\\n  -o /tmp/lane.svg\n\n# 导出 draw.io 源文件（精美编辑）\npython3 scripts/create-flow-chart.py \\\n  -i examples/architecture.yaml \\\n  -o /tmp/arch.drawio\n\n# 同时导出多种格式（一键到位）\npython3 scripts/create-flow-chart.py \\\n  -i examples/architecture.yaml \\\n  -o /tmp/arch.png \\\n  --export-formats svg,pdf,mmd,drawio\n\n# 风格色卡清单（终端 ANSI 预览）\npython3 scripts/create-flow-chart.py --list-styles\n\n# 风格画廊：一张图里 14 种风格对比\npython3 scripts/create-flow-chart.py \\\n  -i examples/showcase.yaml --gallery \\\n  -o /tmp/gallery.png --gallery-cols 5\n\n# 高清 PNG（4K 屏 / 印刷级，v1.3.3）\npython3 scripts/create-flow-chart.py \\\n  -i examples/showcase.yaml \\\n  -o /tmp/print.png --style modern --scale 4\n\n# 普通屏 PNG（更小文件）\npython3 scripts/create-flow-chart.py \\\n  -i examples/flowchart.yaml \\\n  -o /tmp/preview.png --scale 1\n\n# draw.io 精美主题（带投影）\npython3 scripts/create-flow-chart.py \\\n  -i examples/architecture.yaml \\\n  -o /tmp/arch.png \\\n  --theme modern --font \"Microsoft YaHei\" --shadow\n\n# C4-PlantUML（专业 C4 图）\npython3 scripts/create-flow-chart.py \\\n  -i examples/c4_context.yaml \\\n  -o /tmp/c4.puml \\\n  --engine plantuml\n```\n\n---\n\n## 三、YAML 规格速查\n\n### 3.1 流程图 `flowchart`\n\n```yaml\ntype: flowchart\ntitle: 用户下单流程\ndirection: TB          # TB | LR | BT | RL\n\nnodes:\n  - { id: start, label: 开始, shape: stadium }\n  - { id: check, label: 是否有商品?, shape: diamond }\n  - { id: pay,   label: 结算付款 }\n\nedges:\n  - { from: start, to: check }\n  - { from: check, to: pay, label: 是 }\n```\n\n**形状**：`rect` / `round` / `stadium` / `diamond`（判断） / `hexagon` / `circle` / `cylinder`（数据库） / `subroutine` / `parallelogram` / `trapezoid`\n\n**边类型**：`solid`（实线）/ `dashed`（虚线）/ `thick`（粗线）/ `dotted`（点线）/ `bidir`（双向）\n\n**语义边（v1.3.2）**：`semantic: success / warning / error / info / neutral` 自动染色。暗色风格下会亮化：\n```yaml\nedges:\n  - { from: check, to: pay,  semantic: success, label: \"通过 ✓\" }\n  - { from: check, to: back, semantic: error,   label: \"失败 ✗\" }\n  - { from: build, to: deploy, semantic: warning, kind: dashed }\n  - { from: audit, to: report, semantic: info }\n```\n\n**节点 emoji 图标（v1.3.2）**：label 里用 `:name:` 语法自动替换：\n```yaml\nnodes:\n  - { id: login, label: \":key: 登录\" }         # 🔑 登录\n  - { id: db,    label: \":db: 订单库\", shape: cylinder }  # 💾 订单库\n  - { id: ship,  label: \":ship: 发货\" }        # 🚚 发货\n```\n已内置图标：user/login/lock/db/cache/cloud/api/mail/cart/pay/order/ship/deploy/rocket/bug/gear/shield/alarm 等 70+ 个，查完整列表见 [flowchart_core.py](scripts/flowchart_core.py) 中的 `_ICON_ALIASES`。\n\n**节点分类（v1.3.1）**：`category: 1..5`（或 `c1..c5`）自动分色，按当前风格的 palette 配色。\n\n### 3.2 系统架构图 `architecture`（支持 Tier 分层）\n\n**方式一：groups 分组**\n```yaml\ntype: architecture\ntitle: 火一五 SaaS 系统架构\ngroups:\n  - { id: frontend, label: 前端层,  children: [web, mobile] }\n  - { id: backend,  label: 业务层,  children: [svc_user, svc_order] }\n  - { id: data,     label: 数据层,  children: [pg, redis] }\nnodes:\n  - { id: web, label: Web 门户 }\n  - { id: pg,  label: PostgreSQL, shape: cylinder }\nedges:\n  - [web, svc_user]\n  - [svc_user, pg]\n```\n\n**方式二：tiers 分层（推荐，层次更清晰）**\n```yaml\ntype: architecture\ntitle: 系统架构（Tier 分层）\ntiers:\n  - { id: edge, label: 边缘层 }\n  - { id: biz,  label: 业务层 }\n  - { id: data, label: 数据层 }\nnodes:\n  - { id: cdn,   label: CDN,       tier: edge }\n  - { id: api,   label: API 网关,   tier: biz }\n  - { id: pg,    label: PostgreSQL, tier: data, shape: cylinder }\nedges:\n  - [cdn, api]\n  - [api, pg]\n```\n\n### 3.3 泳道图 `swimlane`（真·PlantUML）\n\n```yaml\ntype: swimlane\ntitle: 采购审批流程\nlanes:\n  - name: 申请人\n    steps:\n      - { id: A1, label: 填写采购申请 }\n      - { id: A2, label: 提交审批 }\n  - name: 部门经理\n    steps:\n      - { id: B1, label: 初审 }\nedges:\n  - [A1, A2]\n  - [A2, B1]\n```\n\n### 3.4 时序图 `sequence`\n\n```yaml\ntype: sequence\ntitle: 用户登录\nauto_number: true\nnodes:\n  - { id: U,  label: 用户,   shape: actor }\n  - { id: FE, label: 前端 }\n  - { id: BE, label: 后端 }\nedges:\n  - { from: U,  to: FE, label: 点击登录 }\n  - { from: FE, to: BE, label: POST /login }\n  - { from: BE, to: FE, label: JWT token, kind: dashed }\nnotes:\n  - { position: over, over: BE, text: \"首次登录自动建账\" }\n```\n\n### 3.5 状态图 `state`\n\n```yaml\ntype: state\ntitle: 订单状态机\ndirection: LR\nnodes:\n  - { id: Pending, label: 待付款 }\n  - { id: Paid,    label: 已付款 }\nedges:\n  - { from: \"[*]\", to: Pending, label: 下单 }\n  - { from: Pending, to: Paid, label: 付款 }\n```\n\n### 3.6 甘特图 `gantt`\n\n```yaml\ntype: gantt\ntitle: Q2 路线图\ndateFormat: YYYY-MM-DD\naxisFormat: \"%m-%d\"\nsections:\n  - name: 基建\n    tasks:\n      - { name: 服务器扩容, id: i1, status: done,   start: 2026-04-01, duration: 5d }\n      - { name: 监控升级,   id: i2, status: active, start: 2026-04-06, duration: 10d }\n```\n\n状态值：`done` / `active` / `crit`（关键路径红）/ `milestone`（里程碑）/ 留空即未开始。\n\n### 3.7 C4 架构图 `c4_context` / `c4_container`\n\n**Mermaid 引擎（默认）**\n```yaml\ntype: c4_context\ntitle: 火一五 SaaS 上下文图\nnodes:\n  - { id: customer, label: 企业客户\\n使用 SaaS,  shape: person }\n  - { id: huo15,    label: 火一五 SaaS\\n企业数字化平台,  shape: system }\n  - { id: wecom,    label: 企业微信\\nIM,               shape: system_ext }\nedges:\n  - { from: customer, to: huo15, label: 使用 }\n  - { from: huo15,    to: wecom, label: OAuth }\n```\n\n**PlantUML 引擎（C4-PlantUML，更专业）**\n```bash\npython3 scripts/create-flow-chart.py \\\n  -i examples/c4_context.yaml \\\n  -o /tmp/c4.puml \\\n  --engine plantuml\n```\n\nC4 shape：`person` / `person_ext` / `system` / `system_ext` / `container` / `container_db` / `component`。\n\n### 3.8 ER 图 / UML 类图 / 用户旅程 / 饼图\n\n- `er` — ER 图，label 用 `\\n` 分隔字段\n- `class` — UML 类图，edge kind 支持 `extends` / `implements` / `composition` / `aggregation` / `dependency`\n- `journey` — 用户旅程，用 `sections[].tasks[]`\n- `pie` — 饼图，用 `items` 数组\n\n---\n\n## 四、命令行参数\n\n| 参数 | 说明 |\n|------|------|\n| `-i, --input` | 输入文件（yaml/json/mmd/puml/dot） |\n| `-o, --output` | 输出路径（.svg/.png/.pdf/.mmd/.puml/.dot/.drawio） |\n| `--export-formats` | 附加输出格式，逗号分隔。如 `svg,pdf,mmd,drawio` |\n| `--export-dir` | 源文件输出目录，默认与主输出同目录 |\n| `--style` | 风格：modern / classic / dark / xiaohongshu / ocean / forest / sunset / minimal / pastel / github / corporate / ink / neubrutalism / duotone / editorial / bauhaus / swiss |\n| `--theme` | draw.io 主题（与 --style 对应，影响 draw.io 导出效果） |\n| `--font` | 字体名称，默认 PingFang SC（Mac）/ Microsoft YaHei（Win） |\n| `--shadow` | 为 draw.io 节点添加投影效果 |\n| `--engine` | 强制渲染引擎：mermaid / plantuml / dot / drawio / auto |\n| `--width, --height` | 输出尺寸（像素） |\n| `--background` | 背景色，默认用 style 的 background |\n| `--dump-source` | 只打印源码到 stdout，不渲染（仅 draw.io 输出时生效） |\n| `--no-pdf-fit` | 取消 PDF 自适应画布（默认自适应，单页输出，不分页）|\n\n---\n\n## 五、Python API\n\n```python\nimport sys; sys.path.insert(0, 'scripts')\n\nfrom flowchart_core import parse, to_mermaid, to_plantuml, to_drawio\nfrom flowchart_render import render\nfrom styles import get_style, to_mermaid_init_directive, to_plantuml_skinparam\n\nfc = parse('spec.yaml')\nstyle = get_style('modern')  # 也可传中文别名：'现代' / 'linear' / 'vercel'\n\n# Mermaid（推荐：同时传 style，自动启用 decision / database classDef）\ninit = to_mermaid_init_directive(style, diagram_type=fc.diagram_type)\ncode = to_mermaid(fc, init, style=style)\nrender(code, '/tmp/out.svg', engine='mermaid')\n\n# PDF 单页自适应（默认开启；传 pdf_fit=False 关闭）\nrender(code, '/tmp/out.pdf', engine='mermaid', pdf_fit=True)\n\n# draw.io（现代风：渐变 + 圆角 + 阴影）\ndrawio_xml = to_drawio(fc, style=style, theme='modern',\n                       font_family='Inter', shadow=True)\nrender(drawio_xml, '/tmp/out.drawio', engine='mermaid')\n\n# C4-PlantUML\npuml = to_plantuml(fc, to_plantuml_skinparam(style))\nrender(puml, '/tmp/out.puml', engine='plantuml')\n```\n\n主要接口：\n\n| 函数 | 说明 |\n|------|------|\n| `parse(path_or_text, hint='auto')` | YAML/JSON/Mermaid/PlantUML/DOT → FlowChart |\n| `to_mermaid(fc, init_directive, style=None)` | → Mermaid 源码；传 style 启用自动 classDef |\n| `to_plantuml(fc, skinparam)` | → PlantUML/C4-PlantUML 源码 |\n| `to_dot(fc, style)` | → Graphviz DOT |\n| `to_drawio(fc, style, theme, font_family, shadow=True)` | → draw.io XML 源码（v1.3 现代风格）|\n| `render(source, out, engine, pdf_fit=True)` | 调用 mmdc/plantuml/dot 渲染，PDF 默认单页自适应 |\n| `get_style(key)` | 获取 Style 对象（中文别名也能识别）|\n| `to_mermaid_init_directive(style, diagram_type='flowchart')` | 返回 `%%{init: ...}%%`；按图类选曲线 |\n| `to_plantuml_skinparam(style)` | 返回 PlantUML skinparam 配色指令 |\n| `decision_classdef(style)` / `database_classdef(style)` | v1.3 新增：生成 classDef 行 |\n\n---\n\n## 六、与其他技能的边界\n\n| 需求 | 用哪个技能 |\n|------|----------|\n| 自由层级的思维导图，要导出 XMind | **huo15-mind-map** |\n| 流程图 / 架构图 / 泳道图 / 时序图 / C4 图 | **huo15-flow-chart**（本技能）|\n| **精美架构图**（渐变/投影/圆角），本地编辑 | **huo15-flow-chart** + draw.io 导出 |\n| 工程制图 / 原型图 | 不在范围内，建议 draw.io / Figma |\n| 数据仪表盘 | 用图表库（Chart.js / ECharts / matplotlib） |\n\n---\n\n## 七、触发词\n\n- 流程图 / 画流程图 / 生成流程图 / 做一张流程图\n- 泳道图 / 跨职能流程图 / swim lane\n- 系统架构图 / 架构图 / C4 图 / C4 上下文 / C4 容器\n- **draw.io 架构图** / 导出 draw.io / draw.io 源文件\n- **C4-PlantUML** / C4 图 PlantUML 格式\n- 时序图 / 序列图 / sequence diagram\n- 状态图 / 状态机 / state diagram\n- ER 图 / 实体关系图\n- 甘特图 / gantt\n- Mermaid / PlantUML\n- **架构分层** / Tier 分层 / 多层架构图\n\n---\n\n## 八、版本历史\n\n- **v1.4.0（当前 · 2026-04-28）** — 三个有性格风格扩展\n  - ✅ 新增 `editorial` 编辑杂志风：米色卡底 `#F5EFE0` + 衬线字（Cheltenham/NYT Imperial/Plantin）+ 报头朱红 `#D0021B` 描边 + 番茄红 `#FF6347` accent + 2px 接近直角的圆角（杂志感）— 用于 NYT/Monocle 风信息图、长篇报道、编辑型品牌、思想类 SaaS。中文别名：编辑、杂志、纽约客、纽约时报、nyt、monocle、editorial、report\n  - ✅ 新增 `bauhaus` 包豪斯风：红 `#D32F2F` + 黄 `#FFD600` + 蓝 `#1565C0` 三原色硬填 + 1.8pt 黑描边 + 0 圆角 + Futura/Avenir Next 字体栈 + bold 模式 category — 用于文化机构、艺术展、几何品牌、教育、设计运动主题。中文别名：包豪斯、三原色、几何、bauhaus、primary-colors\n  - ✅ 新增 `swiss` 瑞士国际主义风：纯白底 + Helvetica/Akzidenz-Grotesk + 1px 黑描边 + 报头红 `#D4181F` accent + 0 圆角 + 极简网格化 — 用于网格化信息图、政府公共项目、博物馆展览图、Müller-Brockmann 风学术。中文别名：瑞士、国际主义、swiss、helvetica、grid、müller、brockmann\n  - ✅ 三个新风格**与软色范式 14 风格反差互补**，专攻\"有性格 / 设计师作品级\"场景；和 design-director v3.0 §二 视觉三元组的 §2.1 #3 Swiss Design / §2.5 #19 Bauhaus / §2.2 #6 NYT 锚点 1:1 对应\n  - ✅ 总风格数 14 → 17，`--list-styles` / `--gallery` / 中英文别名 / 多端导出全套支持\n\n- **v1.3.3** — 高清渲染 默认 3× 印刷级\n  - ✅ **PNG 默认 3× 高清**（≈288 DPI），告别朴素低分辨率，PPT / 印刷直接可用\n  - ✅ **`--scale` 新参数**：1/2/3/4 自由切换，矢量格式（SVG/PDF）不受影响\n  - ✅ **三引擎统一**：mmdc `-s`、PlantUML `-Sdpi`、rsvg-convert `-z`、Graphviz `-Gdpi` 同一抽象\n  - ✅ **gallery 子图同步升级**为 2.5× 渲染，PIL LANCZOS 缩放后细节锐利\n  - ✅ **PDF 矢量字体**通过 rsvg-convert `-z` 进一步细化（PlantUML 路径）\n  - ✅ 实测：1500×5400px / 240KB（3×），4K 屏放大无锯齿\n\n- **v1.3.2** — 预设风格 + 语义边 + emoji 图标\n  - ✅ **新增 4 种风格**：`corporate` 企业蓝金、`ink` 水墨朱砂、`neubrutalism` 新粗野主义、`duotone` 双色调（共 14 种）\n  - ✅ **语义边**：`semantic: success/warning/error/info/neutral` 自动染色（绿/橙/红/蓝/灰）\n    - 支持 `kind: success` 简写\n    - 走 Mermaid `linkStyle N stroke:...,color:...` 指令\n    - 暗色风格下自动切换为亮色系语义色\n  - ✅ **节点 emoji 前缀**：label 里写 `:rocket: 部署` / `:db: 数据库` 自动替换为 emoji，覆盖 70+ 流程图常用图标\n  - ✅ **category_mode 双模式**：\n    - `soft`（默认）→ Linear/Vercel 软色填充\n    - `bold` → Neubrutalism 硬色填充\n  - ✅ **中文别名大扩展**：企业、金融、水墨、朱砂、中国风、宣纸、粗野、brutalism、双色、stripe 等\n\n- **v1.3.1** — 自我迭代 · 终端/分类/画廊\n  - ✅ **终端节点自动高亮**：stadium 形（开始/结束）自动挂 `classDef terminal`，主色实填 + 白字，像 START 按钮\n  - ✅ **五色分类支持**：Node 新增 `category: 1..5` 字段，自动生成 `classDef c1..c5`，按风格 palette 配色，一张图里视觉分层更清\n  - ✅ **边标签 pill 化**：边上文字用 `border-radius: 999px` 圆角胶囊 + 微阴影，替代朴素背景块\n  - ✅ **箭头 / 连线圆润**：`stroke-linecap: round`、`stroke-linejoin: round`，marker overflow 放大\n  - ✅ **Subgraph 标题强化**：字重 700、accent 色、字距 .3px，让分组更像 Linear 的卡片\n  - ✅ **`--gallery` 模式**：同一张规格一键渲染全部 10 种风格并拼成对比大图（`scripts/gallery.py`）\n  - ✅ **`--list-styles` 终端色卡**：Truecolor ANSI 直接在终端显示每套风格的主色 / 描边 / 文字 / palette\n  - ✅ **新增 `examples/showcase.yaml`**：电商订单履约全链路样例，演示终端 + 判定 + 数据库 + 分类 + 分组的组合美学\n  - ✅ **文档 `--help` 扩充**：新增 `--gallery` / `--gallery-styles` / `--gallery-cols` / `--list-styles` 四个开关\n\n- **v1.3.0** — 2026 现代美学大改造\n  - ✅ **十种风格全面重绘**：从\"深色填充 + 白字\"老旧扁平风，升级为 Linear/Vercel/Radix 范式的\"浅色填充 + 彩色描边 + 深色文字\"\n  - ✅ **双层 drop-shadow**：`drop-shadow(0 1px 2px) drop-shadow(0 4px 12px)`，复刻 Linear/Vercel 的浮起质感\n  - ✅ **判断菱形 accent 强调**：自动 `classDef decision`，每套风格独立 accent 色\n  - ✅ **数据库圆柱自动识别**：自动 `classDef database`，用次级色区别于业务节点\n  - ✅ **Mermaid init 优化**：`nodeSpacing: 60` / `rankSpacing: 80` / `padding: 20`，按图类自动切换曲线（flowchart basis、swimlane linear）\n  - ✅ **PDF 自适应画布（默认开启）**：Mermaid 走 `mmdc --pdfFit`，PlantUML 走 `SVG → rsvg-convert → PDF`，单页不分页\n  - ✅ **draw.io 生成器重写**：修复 XML 属性重复 bug、edge 源/目标 id 计算错乱；新增渐变、圆角、正交弧线、容器嵌套\n  - ✅ **PlantUML skinparam 扩充**：圆角 + 阴影 + 时序参与者 + 分组 + dpi:120\n  - ✅ **新 Style 字段**：`accent_text_color`、`accent_border_color`、双层阴影参数、`corner_radius`、`stroke_width`、`node_spacing`、`rank_spacing`、`padding`、`palette`\n  - ✅ **别名扩展**：linear / vercel / notion / linear-dark 等\n\n- **v1.2.0** — draw.io 导出 + C4-PlantUML + Tier 分层\n  - ✅ 新增 `.drawio` 源文件导出（draw.io 桌面版打开，精美编辑）\n  - ✅ 新增 `--theme` / `--font` / `--shadow` 参数（draw.io 精美效果）\n  - ✅ 新增 `--export-formats`（一键导出多种格式，兼容旧名 `--also`）\n  - ✅ 新增 C4-PlantUML 引擎（`--engine plantuml` 输出专业 C4 图）\n  - ✅ 新增 `tiers` 分层字段（architecture 类型专用，层次更清晰）\n  - ✅ 新增 `node.tier` 属性（替代 group 归类，tiers 模式下使用）\n  - ✅ `to_drawio()` Python API（可直接集成到其他工具）\n  - ✅ 修复 `.drawio` 导出时 `return` 缺失 bug\n\n- **v1.1.0** — 扩展 6 种风格\n  - 新增：`ocean` / `forest` / `sunset` / `minimal` / `pastel` / `github`\n\n- **v1.0.0** — 首版\n  - 支持 13 种图表（flowchart / architecture / swimlane / swimlane_mermaid / sequence / state / gantt / er / class / journey / pie / c4_context / c4_container）\n  - 3 种输入（YAML/JSON、Mermaid、PlantUML）、6 种输出（svg/png/pdf/mmd/puml/dot）\n  - 4 种风格：modern / classic / dark / xiaohongshu\n\n---\n\n**技术支持：** 青岛火一五信息科技有限公司\n\nFile v1.4.0:_meta.json\n\n{\n  \"ownerId\": \"kn7byevkn40d6z4p7ghdb097z983tj33\",\n  \"slug\": \"huo15-flow-chart\",\n  \"version\": \"1.4.0\",\n  \"publishedAt\": 1780035052304\n}\n\nFile v1.4.0:skill-card.md\n\n## Description:\n\nGenerates modern flowcharts, swimlane diagrams, architecture diagrams, C4 diagrams, sequence diagrams, state diagrams, ER diagrams, and Gantt charts from YAML, JSON, Mermaid, PlantUML, or DOT inputs.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[zhaobod1](https://clawhub.ai/user/zhaobod1)\n\n### License/Terms of Use:\n\nMIT\n\n## Use Case:\n\nDevelopers, architects, and technical writers use this skill to turn structured diagram specifications or diagram source code into presentation-ready diagrams and editable diagram source files. It is useful for documenting software flows, systems, timelines, and architecture views.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: The security review says the skill can automatically run unpinned external renderers and Docker or Chromium with weak sandboxing.\n\nMitigation: Use only trusted publisher releases, prefer preinstalled pinned renderer binaries, and avoid the automatic npx and Docker fallbacks.\n\nRisk: Rendering untrusted diagram source or writing outputs to user-supplied paths can affect a sensitive machine or working directory.\n\nMitigation: Render only trusted diagram inputs and run the skill in a dedicated working directory with controlled output paths.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/zhaobod1/skills/huo15-flow-chart)\n- [Mermaid Live Editor](https://mermaid.live)\n- [Flowchart core implementation](scripts/flowchart_core.py)\n\n## Skill Output:\n\n**Output Type(s):** [Files, Code, Shell commands, Configuration instructions, Guidance]\n\n**Output Format:** [Markdown guidance with shell commands plus generated SVG, PNG, PDF, Mermaid, PlantUML, DOT, and draw.io files]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [PNG output supports adjustable high-DPI scaling; PDF output defaults to a single fitted page.]\n\n## Skill Version(s):\n\n1.4.0 (source: frontmatter and server release metadata)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.4.0:examples/architecture.yaml\n\ntype: architecture\ntitle: 火一五 SaaS 系统架构\ndirection: TB\n\ngroups:\n  - id: frontend\n    label: 前端层\n    children: [web, mobile, admin]\n  - id: gateway\n    label: 网关层\n    children: [api_gw]\n  - id: backend\n    label: 业务层\n    children: [svc_user, svc_order, svc_content, svc_ai]\n  - id: data\n    label: 数据层\n    children: [pg, redis, minio]\n\nnodes:\n  - { id: web,         label: Web 门户, shape: rect }\n  - { id: mobile,      label: H5 / 小程序, shape: rect }\n  - { id: admin,       label: 管理后台, shape: rect }\n  - { id: api_gw,      label: API 网关\\n(Nginx + Auth), shape: hexagon }\n  - { id: svc_user,    label: 用户服务 }\n  - { id: svc_order,   label: 订单服务 }\n  - { id: svc_content, label: 内容服务 }\n  - { id: svc_ai,      label: AI 服务\\n(龙虾 OpenClaw) }\n  - { id: pg,          label: PostgreSQL, shape: cylinder }\n  - { id: redis,       label: Redis, shape: cylinder }\n  - { id: minio,       label: 对象存储 MinIO, shape: cylinder }\n\nedges:\n  - [web, api_gw]\n  - [mobile, api_gw]\n  - [admin, api_gw]\n  - [api_gw, svc_user]\n  - [api_gw, svc_order]\n  - [api_gw, svc_content]\n  - [api_gw, svc_ai]\n  - [svc_user, pg]\n  - [svc_order, pg]\n  - [svc_order, redis]\n  - [svc_content, pg]\n  - [svc_content, minio]\n  - [svc_ai, redis]\n\nFile v1.4.0:examples/c4_context.yaml\n\ntype: c4_context\ntitle: 火一五 SaaS 上下文图（C4 L1）\n\nnodes:\n  - id: customer\n    label: 企业客户\\n采购/使用 SaaS 的企业\n    shape: person\n  - id: admin\n    label: 火一五运维\\n内部团队\n    shape: person\n  - id: huo15\n    label: 火一五 SaaS\\n企业数字化平台\n    shape: system\n  - id: wecom\n    label: 企业微信\\nIM / 通讯录\n    shape: system_ext\n  - id: odoo\n    label: Odoo ERP\\nCRM / 财务\n    shape: system_ext\n  - id: openai\n    label: OpenAI / 百炼\\n大模型 API\n    shape: system_ext\n\nedges:\n  - { from: customer, to: huo15,  label: 使用 }\n  - { from: admin,    to: huo15,  label: 运维 }\n  - { from: huo15,    to: wecom,  label: OAuth / 消息推送 }\n  - { from: huo15,    to: odoo,   label: XML-RPC }\n  - { from: huo15,    to: openai, label: HTTPS }\n\nFile v1.4.0:examples/flowchart.yaml\n\ntype: flowchart\ntitle: 用户下单流程\ndirection: TB\n\nnodes:\n  - id: n_start\n    label: 开始\n    shape: stadium\n  - id: login\n    label: 用户登录\n  - id: check\n    label: \"是否有商品?\"\n    shape: diamond\n  - id: add\n    label: 选购商品\n  - id: pay\n    label: 结算付款\n  - id: confirm\n    label: 订单确认\n  - id: n_end\n    label: 结束\n    shape: stadium\n\nedges:\n  - { from: n_start, to: login }\n  - { from: login, to: check }\n  - { from: check, to: add, label: 否 }\n  - { from: check, to: pay, label: 是 }\n  - { from: add, to: check }\n  - { from: pay, to: confirm }\n  - { from: confirm, to: n_end }\n\nFile v1.4.0:examples/gantt.yaml\n\ntype: gantt\ntitle: 火一五 Q2 产品路线图\ndateFormat: YYYY-MM-DD\naxisFormat: \"%m-%d\"\n\nsections:\n  - name: 基建\n    tasks:\n      - { name: 服务器扩容,   id: infra1, status: done,    start: 2026-04-01, duration: 5d }\n      - { name: 监控升级,     id: infra2, status: active,  start: 2026-04-06, duration: 10d }\n\n  - name: 功能迭代\n    tasks:\n      - { name: OpenClaw Enhance v2026.4, id: f1, status: done,   start: 2026-04-01, duration: 14d }\n      - { name: 知识库 shared scope,      id: f2, status: active, start: 2026-04-15, duration: 7d }\n      - { name: 小红书选题技能,            id: f3, status: \"\",     start: 2026-04-22, duration: 5d }\n\n  - name: 发布\n    tasks:\n      - { name: v2026.4.11 RC,  id: r1, status: crit, start: 2026-04-18, duration: 3d }\n      - { name: v2026.4.11 GA,  id: r2, status: milestone, start: 2026-04-24, duration: 0d }\n\nFile v1.4.0:examples/sequence.yaml\n\ntype: sequence\ntitle: 用户登录时序图\nauto_number: true\n\nnodes:\n  - { id: U,   label: 用户,        shape: actor }\n  - { id: FE,  label: 前端 Web }\n  - { id: BE,  label: 后端 API }\n  - { id: DB,  label: 数据库 }\n  - { id: WX,  label: 企业微信 }\n\nedges:\n  - { from: U,  to: FE, label: \"点击登录\" }\n  - { from: FE, to: WX, label: \"OAuth 跳转\" }\n  - { from: WX, to: FE, label: \"回调 code\", kind: dashed }\n  - { from: FE, to: BE, label: \"POST /login {code}\" }\n  - { from: BE, to: WX, label: \"exchange code for user_id\" }\n  - { from: WX, to: BE, label: \"user_id\", kind: dashed }\n  - { from: BE, to: DB, label: \"SELECT / INSERT user\" }\n  - { from: DB, to: BE, label: \"user row\", kind: dashed }\n  - { from: BE, to: FE, label: \"JWT token\", kind: dashed }\n  - { from: FE, to: U,  label: \"登录完成\", kind: dashed }\n\nnotes:\n  - { position: over, over: \"BE\", text: \"首次登录自动建账\" }\n\nFile v1.4.0:examples/showcase_v132.yaml\n\ntype: flowchart\ntitle: CI/CD 流水线\ndirection: TB\n\n# v1.3.2 新特性展示：\n# - :icon_name: 图标前缀\n# - semantic 语义边（success/warning/error/info）\n# - category 色系分组\n# - stadium 终端节点 / diamond 判断 / cylinder 数据节点\n\ngroups:\n  - id: g_dev\n    label: 开发阶段\n    children: [n_start, commit, lint, unit]\n  - id: g_build\n    label: 构建 & 测试\n    children: [build, scan, integration]\n  - id: g_deploy\n    label: 发布\n    children: [stage_check, prod, rollback, n_end]\n\nnodes:\n  - { id: n_start, label: \":rocket: 开始\", shape: stadium }\n  - { id: n_end,   label: \":check: 完成\", shape: stadium }\n\n  - { id: commit,  label: \":git: 代码提交\",          category: 1 }\n  - { id: lint,    label: \":tools: 代码规范检查\",    category: 1 }\n  - { id: unit,    label: \":test: 单元测试\",         category: 1 }\n\n  - { id: build,   label: \":build: 构建镜像\",        category: 2 }\n  - { id: scan,    label: \":shield: 安全扫描\",       category: 2 }\n  - { id: integration, label: \":test: 集成测试\",     category: 2 }\n\n  - { id: stage_check, label: \"Staging 通过？\", shape: diamond }\n  - { id: prod,     label: \":deploy: 发布生产\",      category: 3 }\n  - { id: rollback, label: \":alarm: 回滚\",           category: 3 }\n\nedges:\n  - { from: n_start, to: commit,        semantic: info }\n  - { from: commit,  to: lint,          semantic: info }\n  - { from: lint,    to: unit,          semantic: success }\n  - { from: unit,    to: build,         semantic: success }\n  - { from: build,   to: scan,          semantic: info }\n  - { from: scan,    to: integration,   semantic: success }\n  - { from: integration, to: stage_check }\n  - { from: stage_check, to: prod,      semantic: success, label: \"通过 ✓\" }\n  - { from: stage_check, to: rollback,  semantic: error,   label: \"失败 ✗\" }\n  - { from: prod,    to: n_end,         semantic: success }\n  - { from: rollback, to: commit,       semantic: warning, label: \"修复重来\", kind: dashed }\n\nFile v1.4.0:examples/showcase.yaml\n\ntype: flowchart\ntitle: 火一五电商 · 订单履约全链路\ndirection: TB\n\n# 多段 category + 终端 + 判定 + 数据节点 + 分组，展示 v1.3+ 全部美化能力\ngroups:\n  - id: g_user\n    label: 用户旅程\n    children: [n_start, login, browse, cart]\n  - id: g_biz\n    label: 业务处理\n    children: [check_stock, create_order, pay]\n  - id: g_fulfill\n    label: 履约\n    children: [ship, deliver, n_end]\n  - id: g_data\n    label: 数据层\n    children: [db_order, db_user, cache, mq]\n\nnodes:\n  # 终端（开始/结束）→ 自动 terminal classDef\n  - { id: n_start, label: 开始, shape: stadium }\n  - { id: n_end,   label: 完成, shape: stadium }\n\n  # 用户旅程（category: c1 淡紫/主色系）\n  - { id: login,   label: 用户登录,     category: 1 }\n  - { id: browse,  label: 浏览商品,     category: 1 }\n  - { id: cart,    label: 加入购物车,   category: 1 }\n\n  # 业务分支（category: c2 —— 辅色）\n  - { id: check_stock, label: \"库存是否充足?\", shape: diamond }\n  - { id: create_order, label: 创建订单, category: 2 }\n  - { id: pay,          label: 支付,     category: 2 }\n\n  # 履约（category: c3 —— 绿/成功系）\n  - { id: ship,    label: 发货,         category: 3 }\n  - { id: deliver, label: 配送,         category: 3 }\n\n  # 数据层（cylinder → 自动 database classDef）\n  - { id: db_order, label: 订单库 PostgreSQL, shape: cylinder }\n  - { id: db_user,  label: 用户库 PostgreSQL, shape: cylinder }\n  - { id: cache,    label: Redis 缓存,        shape: cylinder }\n  - { id: mq,       label: Kafka 消息队列,    shape: cylinder }\n\nedges:\n  - { from: n_start,      to: login }\n  - { from: login,        to: browse }\n  - { from: login,        to: db_user, kind: dashed, label: 读/写 }\n  - { from: browse,       to: cache,   kind: dashed, label: 商品缓存 }\n  - { from: browse,       to: cart }\n  - { from: cart,         to: check_stock }\n  - { from: check_stock,  to: create_order, label: 是 }\n  - { from: check_stock,  to: browse,       label: 否，补货后重选, kind: dashed }\n  - { from: create_order, to: db_order }\n  - { from: create_order, to: mq,      label: 下单事件 }\n  - { from: create_order, to: pay }\n  - { from: pay,          to: ship }\n  - { from: pay,          to: mq,      label: 支付事件, kind: dashed }\n  - { from: ship,         to: deliver }\n  - { from: deliver,      to: n_end }\n\nFile v1.4.0:examples/state.yaml\n\ntype: state\ntitle: 订单状态机\ndirection: LR\n\nnodes:\n  - { id: Draft,     label: 草稿 }\n  - { id: Pending,   label: 待付款 }\n  - { id: Paid,      label: 已付款 }\n  - { id: Shipping,  label: 配送中 }\n  - { id: Delivered, label: 已送达 }\n  - { id: Cancelled, label: 已取消 }\n\nedges:\n  - { from: \"[*]\",      to: Draft,     label: 下单 }\n  - { from: Draft,      to: Pending,   label: 确认 }\n  - { from: Pending,    to: Paid,      label: 付款 }\n  - { from: Pending,    to: Cancelled, label: 超时 }\n  - { from: Paid,       to: Shipping,  label: 发货 }\n  - { from: Shipping,   to: Delivered, label: 签收 }\n  - { from: Delivered,  to: \"[*]\" }\n  - { from: Cancelled,  to: \"[*]\" }\n\nFile v1.4.0:examples/swimlane_mermaid.yaml\n\ntype: swimlane_mermaid\ntitle: 订单发货流程（Mermaid 泳道，不需要 Java）\ndirection: LR\n\nnodes:\n  - { id: a1, label: 下单,       lane: 客户 }\n  - { id: a2, label: 付款,       lane: 客户 }\n  - { id: b1, label: 核对订单,    lane: 客服 }\n  - { id: b2, label: 分配仓库,    lane: 客服 }\n  - { id: c1, label: 拣货,       lane: 仓库 }\n  - { id: c2, label: 打包发货,    lane: 仓库 }\n  - { id: d1, label: 快递配送,    lane: 快递 }\n  - { id: d2, label: 妥投,       lane: 快递 }\n\nedges:\n  - [a1, a2]\n  - [a2, b1]\n  - [b1, b2]\n  - [b2, c1]\n  - [c1, c2]\n  - [c2, d1]\n  - [d1, d2]\n\nArchive v1.3.0: 15 files, 37846 bytes\n\nFiles: _meta.json (135b), examples/architecture.yaml (1297b), examples/c4_context.yaml (810b), examples/flowchart.yaml (628b), examples/gantt.yaml (883b), examples/sequence.yaml (912b), examples/state.yaml (704b), examples/swimlane_mermaid.yaml (619b), examples/swimlane.yaml (649b), scripts/create-flow-chart.py (7331b), scripts/flowchart_core.py (40033b), scripts/flowchart_render.py (9139b), scripts/styles.py (22151b), skill-card.md (2656b), SKILL.md (18779b)\n\nFile v1.3.0:SKILL.md\n\n---\nname: huo15-flow-chart\ndisplayName: 火一五流程图技能\ndescription: 2026 现代美学的流程图、泳道图、系统架构图、C4 架构图、时序图、状态图、ER 图、甘特图生成。Linear/Vercel/Radix 配色 + 软阴影 + 圆角 + 判断色强调 + 容器分层。输入 YAML/JSON 规格或 Mermaid/PlantUML/DOT 源码，输出 SVG/PNG/PDF/draw.io；PDF 默认单页自适应画布不分页；内置 10 种风格；支持 draw.io 源文件 + C4-PlantUML + 架构 Tier 分层。触发词：流程图、泳道图、时序图、状态图、ER 图、系统架构图、C4 图、画流程图、生成流程图。\nversion: 1.3.0\naliases:\n  - 火一五流程图\n  - 火一五流程图技能\n  - 流程图\n  - 流程图生成\n  - 画流程图\n  - 泳道图\n  - 时序图\n  - 状态图\n  - 甘特图\n  - ER图\n  - 架构图\n  - 系统架构图\n  - C4 架构图\n  - flowchart\n  - flow-chart\n  - diagram\n  - mermaid\n  - draw.io\ndependencies:\n  python-packages:\n    - pyyaml\n  external:\n    - name: \"@mermaid-js/mermaid-cli\"\n      install: \"npm i -g @mermaid-js/mermaid-cli\"\n      notes: \"渲染 Mermaid 时用（mmdc 命令）\"\n    - name: plantuml\n      install: \"brew install plantuml\"\n      notes: \"PlantUML / C4-PlantUML 渲染（泳道图和 C4 图必须）\"\n    - name: graphviz\n      install: \"brew install graphviz\"\n      notes: \"Graphviz DOT 渲染（可选）\"\n---\n\n# 火一五流程图技能 v1.3.0\n\n> 2026 现代美学的流程图 / 架构图 / 泳道图 / C4 架构图 / 时序图生成器 — 青岛火一五信息科技有限公司\n>\n> 设计取向：Linear / Vercel / Radix / Stripe 软色系 + 双层柔和阴影 + 圆角节点 + 判断菱形 accent 强调色 + PDF 单页自适应。\n\n---\n\n## 一、核心能力\n\n### 1.1 支持的图表类型\n\n| type                 | 用途                    | 渲染引擎          | draw.io |\n|---------------------|-----------------------|-----------------|---------|\n| `flowchart`          | 普通流程图                | Mermaid         | ✅       |\n| `architecture`        | 系统架构图（支持 Tier 分层）  | Mermaid         | ✅       |\n| `swimlane`           | 真·泳道图（PlantUML）     | PlantUML        | ❌       |\n| `swimlane_mermaid`   | 泳道风格（Mermaid，不需要 Java）| Mermaid | ✅ |\n| `sequence`           | 时序图                  | Mermaid/PlantUML | ✅       |\n| `state`              | 状态图                  | Mermaid         | ✅       |\n| `gantt`              | 甘特图                  | Mermaid         | ✅       |\n| `er`                 | ER 图                  | Mermaid         | ✅       |\n| `class`              | UML 类图                | Mermaid         | ✅       |\n| `journey`            | 用户旅程                 | Mermaid         | ✅       |\n| `pie`                | 饼图                   | Mermaid         | ✅       |\n| `c4_context`          | C4 上下文图（L1）          | Mermaid / **PlantUML** | ✅ |\n| `c4_container`        | C4 容器图（L2）            | Mermaid / **PlantUML** | ✅ |\n| `mindmap`            | 简单思维导图               | Mermaid         | ✅       |\n\n### 1.2 输出格式\n\n| 格式   | 类型   | 说明 |\n|--------|--------|------|\n| `.svg` | 矢量图  | 浏览器直接打开，最推荐 |\n| `.png` | 位图    | 适合 PPT / 文档 |\n| `.pdf` | 矢量 PDF | 适合打印 |\n| `.mmd` | Mermaid 源码 | 复制到 [mermaid.live](https://mermaid.live) 编辑 |\n| `.puml` | PlantUML 源码 | 复制到 PlantUML 编辑器 |\n| `.drawio` | **draw.io 源文件** | 用 draw.io 桌面版打开，精美编辑 |\n| `.dot` | Graphviz DOT 源码 | 复杂网络拓扑 |\n\n### 1.3 十种风格（v1.3 全面改造为 2026 现代美学）\n\n| key | 名称 | 设计范式 | 适用场景 | 中文别名 |\n|------|-----|---------|---------|---------|\n| `modern`      | 现代商务     | Radix Indigo/Slate，浅底 + 靛紫描边 + 琥珀判断       | 默认首选，商务/技术文档        | 现代、商务、linear、vercel |\n| `classic`     | 经典稳重     | 淡蓝卡 + 深蓝字 + 琥珀强调                           | 咨询报告、正式汇报             | 经典、稳重 |\n| `dark`        | 暗色霓虹     | Linear Dark，深底 + 紫霓虹描边 + 青色 accent         | 演示大屏、技术分享             | 暗色、黑色、霓虹、linear-dark |\n| `xiaohongshu` | 小红书暖奶油 | 奶油底 + 粉卡节点 + 玫红描边                         | 种草封面、女性向运营           | 小红书、奶油、xhs |\n| `ocean`       | 海洋蓝       | 浅天蓝节点 + 深蓝字 + 橙色 accent                    | SaaS 产品、技术架构            | 海洋、蓝、蓝色 |\n| `forest`      | 森林绿       | 浅绿卡 + 墨绿字 + 橙色 accent                        | 环保、农业、健康               | 森林、绿、自然 |\n| `sunset`      | 夕阳暖橙     | 浅橙卡 + 赭红字 + 青色 accent                        | 运营活动、温暖叙事             | 夕阳、暖橙、橙 |\n| `minimal`     | 极简素雅     | Notion 风，近白底 + 深灰字 + 单蓝 accent + 细描边    | 学术论文、出版物、技术书稿     | 极简、素雅、学术、论文、黑白、notion |\n| `pastel`      | 马卡龙粉嫩   | 浅紫底 + 深紫字 + 玫粉 accent                        | 儿童教育、女性向               | 马卡龙、粉嫩、粉、儿童 |\n| `github`      | 极客 GitHub  | 浅蓝卡 + 品牌蓝 + 绿色 accent                        | 开源 README、技术文档          | 极客、程序员、gh |\n\n**设计共性（所有风格统一遵循）**：\n- 节点：浅色填充 + 彩色描边 + 深色文字，12px 圆角，1.5px 描边\n- 阴影：双层 drop-shadow（近 1/2px + 远 4/12px），模拟 Linear/Vercel 的浮起质感\n- 判断菱形：统一用 `accent_color` 突出，区别于普通节点\n- 数据库圆柱：`secondary_color` 填充，区别于业务节点\n- 字体：Inter 优先 + PingFang SC/HarmonyOS Sans 回落，节点 `font-weight: 500`，标题 `600`\n- 连线：`basis` 曲线（flowchart/C4）/ `linear`（泳道）/ 端点圆角\n- 间距：`nodeSpacing: 60`、`rankSpacing: 80`、`padding: 20`（更透气）\n\n### 1.4 draw.io 精美增强\n\n- 导出 `.drawio` 源文件，用 draw.io 桌面版打开\n- draw.io 支持：渐变填充、投影、圆角、图标嵌入\n- draw.io 支持 Google Fonts（Mermaid 不支持的中文字体）\n- 配合 `--theme` / `--font` / `--shadow` 参数生成精美效果\n\n---\n\n## 二、快速开始\n\n### 2.1 准备渲染器\n\n```bash\n# 方案 A：Mermaid（推荐，覆盖 90% 场景）\nnpm i -g @mermaid-js/mermaid-cli\n\n# 方案 B：PlantUML（C4-PlantUML / 泳道图必须）\nbrew install plantuml        # macOS\n# apt install plantuml       # Ubuntu/Debian\n\n# 方案 C：Graphviz（网络拓扑可选）\nbrew install graphviz\n\n# Python 依赖\npip install pyyaml\n```\n\n### 2.2 最短上手\n\n```bash\n# 从 YAML 规格生成 PNG（默认 modern 风格）\npython3 scripts/create-flow-chart.py \\\n  -i examples/architecture.yaml \\\n  -o /tmp/arch.png\n\n# 泳道图（真·PlantUML）\npython3 scripts/create-flow-chart.py \\\n  -i examples/swimlane.yaml \\\n  -o /tmp/lane.svg\n\n# 导出 draw.io 源文件（精美编辑）\npython3 scripts/create-flow-chart.py \\\n  -i examples/architecture.yaml \\\n  -o /tmp/arch.drawio\n\n# 同时导出多种格式（一键到位）\npython3 scripts/create-flow-chart.py \\\n  -i examples/architecture.yaml \\\n  -o /tmp/arch.png \\\n  --export-formats svg,pdf,mmd,drawio\n\n# draw.io 精美主题（带投影）\npython3 scripts/create-flow-chart.py \\\n  -i examples/architecture.yaml \\\n  -o /tmp/arch.png \\\n  --theme modern --font \"Microsoft YaHei\" --shadow\n\n# C4-PlantUML（专业 C4 图）\npython3 scripts/create-flow-chart.py \\\n  -i examples/c4_context.yaml \\\n  -o /tmp/c4.puml \\\n  --engine plantuml\n```\n\n---\n\n## 三、YAML 规格速查\n\n### 3.1 流程图 `flowchart`\n\n```yaml\ntype: flowchart\ntitle: 用户下单流程\ndirection: TB          # TB | LR | BT | RL\n\nnodes:\n  - { id: start, label: 开始, shape: stadium }\n  - { id: check, label: 是否有商品?, shape: diamond }\n  - { id: pay,   label: 结算付款 }\n\nedges:\n  - { from: start, to: check }\n  - { from: check, to: pay, label: 是 }\n```\n\n**形状**：`rect` / `round` / `stadium` / `diamond`（判断） / `hexagon` / `circle` / `cylinder`（数据库） / `subroutine` / `parallelogram` / `trapezoid`\n\n**边类型**：`solid`（实线）/ `dashed`（虚线）/ `thick`（粗线）/ `dotted`（点线）/ `bidir`（双向）\n\n### 3.2 系统架构图 `architecture`（支持 Tier 分层）\n\n**方式一：groups 分组**\n```yaml\ntype: architecture\ntitle: 火一五 SaaS 系统架构\ngroups:\n  - { id: frontend, label: 前端层,  children: [web, mobile] }\n  - { id: backend,  label: 业务层,  children: [svc_user, svc_order] }\n  - { id: data,     label: 数据层,  children: [pg, redis] }\nnodes:\n  - { id: web, label: Web 门户 }\n  - { id: pg,  label: PostgreSQL, shape: cylinder }\nedges:\n  - [web, svc_user]\n  - [svc_user, pg]\n```\n\n**方式二：tiers 分层（推荐，层次更清晰）**\n```yaml\ntype: architecture\ntitle: 系统架构（Tier 分层）\ntiers:\n  - { id: edge, label: 边缘层 }\n  - { id: biz,  label: 业务层 }\n  - { id: data, label: 数据层 }\nnodes:\n  - { id: cdn,   label: CDN,       tier: edge }\n  - { id: api,   label: API 网关,   tier: biz }\n  - { id: pg,    label: PostgreSQL, tier: data, shape: cylinder }\nedges:\n  - [cdn, api]\n  - [api, pg]\n```\n\n### 3.3 泳道图 `swimlane`（真·PlantUML）\n\n```yaml\ntype: swimlane\ntitle: 采购审批流程\nlanes:\n  - name: 申请人\n    steps:\n      - { id: A1, label: 填写采购申请 }\n      - { id: A2, label: 提交审批 }\n  - name: 部门经理\n    steps:\n      - { id: B1, label: 初审 }\nedges:\n  - [A1, A2]\n  - [A2, B1]\n```\n\n### 3.4 时序图 `sequence`\n\n```yaml\ntype: sequence\ntitle: 用户登录\nauto_number: true\nnodes:\n  - { id: U,  label: 用户,   shape: actor }\n  - { id: FE, label: 前端 }\n  - { id: BE, label: 后端 }\nedges:\n  - { from: U,  to: FE, label: 点击登录 }\n  - { from: FE, to: BE, label: POST /login }\n  - { from: BE, to: FE, label: JWT token, kind: dashed }\nnotes:\n  - { position: over, over: BE, text: \"首次登录自动建账\" }\n```\n\n### 3.5 状态图 `state`\n\n```yaml\ntype: state\ntitle: 订单状态机\ndirection: LR\nnodes:\n  - { id: Pending, label: 待付款 }\n  - { id: Paid,    label: 已付款 }\nedges:\n  - { from: \"[*]\", to: Pending, label: 下单 }\n  - { from: Pending, to: Paid, label: 付款 }\n```\n\n### 3.6 甘特图 `gantt`\n\n```yaml\ntype: gantt\ntitle: Q2 路线图\ndateFormat: YYYY-MM-DD\naxisFormat: \"%m-%d\"\nsections:\n  - name: 基建\n    tasks:\n      - { name: 服务器扩容, id: i1, status: done,   start: 2026-04-01, duration: 5d }\n      - { name: 监控升级,   id: i2, status: active, start: 2026-04-06, duration: 10d }\n```\n\n状态值：`done` / `active` / `crit`（关键路径红）/ `milestone`（里程碑）/ 留空即未开始。\n\n### 3.7 C4 架构图 `c4_context` / `c4_container`\n\n**Mermaid 引擎（默认）**\n```yaml\ntype: c4_context\ntitle: 火一五 SaaS 上下文图\nnodes:\n  - { id: customer, label: 企业客户\\n使用 SaaS,  shape: person }\n  - { id: huo15,    label: 火一五 SaaS\\n企业数字化平台,  shape: system }\n  - { id: wecom,    label: 企业微信\\nIM,               shape: system_ext }\nedges:\n  - { from: customer, to: huo15, label: 使用 }\n  - { from: huo15,    to: wecom, label: OAuth }\n```\n\n**PlantUML 引擎（C4-PlantUML，更专业）**\n```bash\npython3 scripts/create-flow-chart.py \\\n  -i examples/c4_context.yaml \\\n  -o /tmp/c4.puml \\\n  --engine plantuml\n```\n\nC4 shape：`person` / `person_ext` / `system` / `system_ext` / `container` / `container_db` / `component`。\n\n### 3.8 ER 图 / UML 类图 / 用户旅程 / 饼图\n\n- `er` — ER 图，label 用 `\\n` 分隔字段\n- `class` — UML 类图，edge kind 支持 `extends` / `implements` / `composition` / `aggregation` / `dependency`\n- `journey` — 用户旅程，用 `sections[].tasks[]`\n- `pie` — 饼图，用 `items` 数组\n\n---\n\n## 四、命令行参数\n\n| 参数 | 说明 |\n|------|------|\n| `-i, --input` | 输入文件（yaml/json/mmd/puml/dot） |\n| `-o, --output` | 输出路径（.svg/.png/.pdf/.mmd/.puml/.dot/.drawio） |\n| `--export-formats` | 附加输出格式，逗号分隔。如 `svg,pdf,mmd,drawio` |\n| `--export-dir` | 源文件输出目录，默认与主输出同目录 |\n| `--style` | 风格：modern/classic/dark/xiaohongshu/ocean/forest/sunset/minimal/pastel/github |\n| `--theme` | draw.io 主题（与 --style 对应，影响 draw.io 导出效果） |\n| `--font` | 字体名称，默认 PingFang SC（Mac）/ Microsoft YaHei（Win） |\n| `--shadow` | 为 draw.io 节点添加投影效果 |\n| `--engine` | 强制渲染引擎：mermaid / plantuml / dot / drawio / auto |\n| `--width, --height` | 输出尺寸（像素） |\n| `--background` | 背景色，默认用 style 的 background |\n| `--dump-source` | 只打印源码到 stdout，不渲染（仅 draw.io 输出时生效） |\n| `--no-pdf-fit` | 取消 PDF 自适应画布（默认自适应，单页输出，不分页）|\n\n---\n\n## 五、Python API\n\n```python\nimport sys; sys.path.insert(0, 'scripts')\n\nfrom flowchart_core import parse, to_mermaid, to_plantuml, to_drawio\nfrom flowchart_render import render\nfrom styles import get_style, to_mermaid_init_directive, to_plantuml_skinparam\n\nfc = parse('spec.yaml')\nstyle = get_style('modern')  # 也可传中文别名：'现代' / 'linear' / 'vercel'\n\n# Mermaid（推荐：同时传 style，自动启用 decision / database classDef）\ninit = to_mermaid_init_directive(style, diagram_type=fc.diagram_type)\ncode = to_mermaid(fc, init, style=style)\nrender(code, '/tmp/out.svg', engine='mermaid')\n\n# PDF 单页自适应（默认开启；传 pdf_fit=False 关闭）\nrender(code, '/tmp/out.pdf', engine='mermaid', pdf_fit=True)\n\n# draw.io（现代风：渐变 + 圆角 + 阴影）\ndrawio_xml = to_drawio(fc, style=style, theme='modern',\n                       font_family='Inter', shadow=True)\nrender(drawio_xml, '/tmp/out.drawio', engine='mermaid')\n\n# C4-PlantUML\npuml = to_plantuml(fc, to_plantuml_skinparam(style))\nrender(puml, '/tmp/out.puml', engine='plantuml')\n```\n\n主要接口：\n\n| 函数 | 说明 |\n|------|------|\n| `parse(path_or_text, hint='auto')` | YAML/JSON/Mermaid/PlantUML/DOT → FlowChart |\n| `to_mermaid(fc, init_directive, style=None)` | → Mermaid 源码；传 style 启用自动 classDef |\n| `to_plantuml(fc, skinparam)` | → PlantUML/C4-PlantUML 源码 |\n| `to_dot(fc, style)` | → Graphviz DOT |\n| `to_drawio(fc, style, theme, font_family, shadow=True)` | → draw.io XML 源码（v1.3 现代风格）|\n| `render(source, out, engine, pdf_fit=True)` | 调用 mmdc/plantuml/dot 渲染，PDF 默认单页自适应 |\n| `get_style(key)` | 获取 Style 对象（中文别名也能识别）|\n| `to_mermaid_init_directive(style, diagram_type='flowchart')` | 返回 `%%{init: ...}%%`；按图类选曲线 |\n| `to_plantuml_skinparam(style)` | 返回 PlantUML skinparam 配色指令 |\n| `decision_classdef(style)` / `database_classdef(style)` | v1.3 新增：生成 classDef 行 |\n\n---\n\n## 六、与其他技能的边界\n\n| 需求 | 用哪个技能 |\n|------|----------|\n| 自由层级的思维导图，要导出 XMind | **huo15-mind-map** |\n| 流程图 / 架构图 / 泳道图 / 时序图 / C4 图 | **huo15-flow-chart**（本技能）|\n| **精美架构图**（渐变/投影/圆角），本地编辑 | **huo15-flow-chart** + draw.io 导出 |\n| 工程制图 / 原型图 | 不在范围内，建议 draw.io / Figma |\n| 数据仪表盘 | 用图表库（Chart.js / ECharts / matplotlib） |\n\n---\n\n## 七、触发词\n\n- 流程图 / 画流程图 / 生成流程图 / 做一张流程图\n- 泳道图 / 跨职能流程图 / swim lane\n- 系统架构图 / 架构图 / C4 图 / C4 上下文 / C4 容器\n- **draw.io 架构图** / 导出 draw.io / draw.io 源文件\n- **C4-PlantUML** / C4 图 PlantUML 格式\n- 时序图 / 序列图 / sequence diagram\n- 状态图 / 状态机 / state diagram\n- ER 图 / 实体关系图\n- 甘特图 / gantt\n- Mermaid / PlantUML\n- **架构分层** / Tier 分层 / 多层架构图\n\n---\n\n## 八、版本历史\n\n- **v1.3.0（当前）** — 2026 现代美学大改造\n  - ✅ **十种风格全面重绘**：从\"深色填充 + 白字\"老旧扁平风，升级为 Linear/Vercel/Radix 范式的\"浅色填充 + 彩色描边 + 深色文字\"\n  - ✅ **双层 drop-shadow**：`drop-shadow(0 1px 2px) drop-shadow(0 4px 12px)`，复刻 Linear/Vercel 的浮起质感\n  - ✅ **判断菱形 accent 强调**：自动 `classDef decision`，每套风格独立 accent 色\n  - ✅ **数据库圆柱自动识别**：自动 `classDef database`，用次级色区别于业务节点\n  - ✅ **Mermaid init 优化**：`nodeSpacing: 60` / `rankSpacing: 80` / `padding: 20`，按图类自动切换曲线（flowchart basis、swimlane linear）\n  - ✅ **PDF 自适应画布（默认开启）**：Mermaid 走 `mmdc --pdfFit`，PlantUML 走 `SVG → rsvg-convert → PDF`，单页不分页\n  - ✅ **draw.io 生成器重写**：修复 XML 属性重复 bug、edge 源/目标 id 计算错乱；新增渐变、圆角、正交弧线、容器嵌套\n  - ✅ **PlantUML skinparam 扩充**：圆角 + 阴影 + 时序参与者 + 分组 + dpi:120\n  - ✅ **新 Style 字段**：`accent_text_color`、`accent_border_color`、双层阴影参数、`corner_radius`、`stroke_width`、`node_spacing`、`rank_spacing`、`padding`、`palette`\n  - ✅ **别名扩展**：linear / vercel / notion / linear-dark 等\n\n- **v1.2.0** — draw.io 导出 + C4-PlantUML + Tier 分层\n  - ✅ 新增 `.drawio` 源文件导出（draw.io 桌面版打开，精美编辑）\n  - ✅ 新增 `--theme` / `--font` / `--shadow` 参数（draw.io 精美效果）\n  - ✅ 新增 `--export-formats`（一键导出多种格式，兼容旧名 `--also`）\n  - ✅ 新增 C4-PlantUML 引擎（`--engine plantuml` 输出专业 C4 图）\n  - ✅ 新增 `tiers` 分层字段（architecture 类型专用，层次更清晰）\n  - ✅ 新增 `node.tier` 属性（替代 group 归类，tiers 模式下使用）\n  - ✅ `to_drawio()` Python API（可直接集成到其他工具）\n  - ✅ 修复 `.drawio` 导出时 `return` 缺失 bug\n\n- **v1.1.0** — 扩展 6 种风格\n  - 新增：`ocean` / `forest` / `sunset` / `minimal` / `pastel` / `github`\n\n- **v1.0.0** — 首版\n  - 支持 13 种图表（flowchart / architecture / swimlane / swimlane_mermaid / sequence / state / gantt / er / class / journey / pie / c4_context / c4_container）\n  - 3 种输入（YAML/JSON、Mermaid、PlantUML）、6 种输出（svg/png/pdf/mmd/puml/dot）\n  - 4 种风格：modern / classic / dark / xiaohongshu\n\n---\n\n**技术支持：** 青岛火一五信息科技有限公司\n\nFile v1.3.0:_meta.json\n\n{\n  \"ownerId\": \"kn7byevkn40d6z4p7ghdb097z983tj33\",\n  \"slug\": \"huo15-flow-chart\",\n  \"version\": \"1.3.0\",\n  \"publishedAt\": 1777004112981\n}\n\nFile v1.3.0:skill-card.md\n\n## Description: <br>\nHuo15 Flow Chart helps agents create modern flowcharts, swimlane diagrams, system architecture diagrams, C4 diagrams, sequence diagrams, state diagrams, ER diagrams, and Gantt charts from YAML, JSON, Mermaid, PlantUML, or DOT sources. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[zhaobod1](https://clawhub.ai/user/zhaobod1) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nDevelopers, engineers, product teams, and documentation authors use this skill to turn structured diagram specifications or existing Mermaid, PlantUML, and DOT source into editable and exportable diagrams for technical documentation, presentations, and architecture reviews. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: The skill can invoke local renderers that may use npx or Docker, which can download or run renderer code during diagram generation. <br>\nMitigation: Use preinstalled trusted renderer binaries where possible and run diagram generation in a low-privilege or sandboxed workspace. <br>\nRisk: Mermaid rendering disables browser sandboxing for Puppeteer compatibility. <br>\nMitigation: Avoid rendering untrusted diagram source and keep the rendering environment isolated from sensitive files and credentials. <br>\nRisk: The release evidence flags unrelated credential, purchase, and crypto permissions as not needed for this skill. <br>\nMitigation: Do not grant OAuth tokens, sensitive credentials, purchase authority, or crypto-related permissions when installing or running this diagram skill. <br>\n\n\n## Reference(s): <br>\n- [ClawHub release page](https://clawhub.ai/zhaobod1/huo15-flow-chart) <br>\n- [Publisher profile](https://clawhub.ai/user/zhaobod1) <br>\n- [Mermaid Live editor](https://mermaid.live) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [Markdown, Code, Shell commands, Configuration, Guidance, Files] <br>\n**Output Format:** [Markdown guidance with YAML, JSON, Mermaid, PlantUML, DOT, and draw.io source examples plus rendered diagram file outputs.] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [Can produce SVG, PNG, PDF, Mermaid, PlantUML, DOT, and draw.io outputs depending on installed local renderers.] <br>\n\n## Skill Version(s): <br>\n1.3.0 (source: frontmatter and server release evidence) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nFile v1.3.0:examples/architecture.yaml\n\ntype: architecture\ntitle: 火一五 SaaS 系统架构\ndirection: TB\n\ngroups:\n  - id: frontend\n    label: 前端层\n    children: [web, mobile, admin]\n  - id: gateway\n    label: 网关层\n    children: [api_gw]\n  - id: backend\n    label: 业务层\n    children: [svc_user, svc_order, svc_content, svc_ai]\n  - id: data\n    label: 数据层\n    children: [pg, redis, minio]\n\nnodes:\n  - { id: web,         label: Web 门户, shape: rect }\n  - { id: mobile,      label: H5 / 小程序, shape: rect }\n  - { id: admin,       label: 管理后台, shape: rect }\n  - { id: api_gw,      label: API 网关\\n(Nginx + Auth), shape: hexagon }\n  - { id: svc_user,    label: 用户服务 }\n  - { id: svc_order,   label: 订单服务 }\n  - { id: svc_content, label: 内容服务 }\n  - { id: svc_ai,      label: AI 服务\\n(龙虾 OpenClaw) }\n  - { id: pg,          label: PostgreSQL, shape: cylinder }\n  - { id: redis,       label: Redis, shape: cylinder }\n  - { id: minio,       label: 对象存储 MinIO, shape: cylinder }\n\nedges:\n  - [web, api_gw]\n  - [mobile, api_gw]\n  - [admin, api_gw]\n  - [api_gw, svc_user]\n  - [api_gw, svc_order]\n  - [api_gw, svc_content]\n  - [api_gw, svc_ai]\n  - [svc_user, pg]\n  - [svc_order, pg]\n  - [svc_order, redis]\n  - [svc_content, pg]\n  - [svc_content, minio]\n  - [svc_ai, redis]\n\nFile v1.3.0:examples/c4_context.yaml\n\ntype: c4_context\ntitle: 火一五 SaaS 上下文图（C4 L1）\n\nnodes:\n  - id: customer\n    label: 企业客户\\n采购/使用 SaaS 的企业\n    shape: person\n  - id: admin\n    label: 火一五运维\\n内部团队\n    shape: person\n  - id: huo15\n    label: 火一五 SaaS\\n企业数字化平台\n    shape: system\n  - id: wecom\n    label: 企业微信\\nIM / 通讯录\n    shape: system_ext\n  - id: odoo\n    label: Odoo ERP\\nCRM / 财务\n    shape: system_ext\n  - id: openai\n    label: OpenAI / 百炼\\n大模型 API\n    shape: system_ext\n\nedges:\n  - { from: customer, to: huo15,  label: 使用 }\n  - { from: admin,    to: huo15,  label: 运维 }\n  - { from: huo15,    to: wecom,  label: OAuth / 消息推送 }\n  - { from: huo15,    to: odoo,   label: XML-RPC }\n  - { from: huo15,    to: openai, label: HTTPS }\n\nFile v1.3.0:examples/flowchart.yaml\n\ntype: flowchart\ntitle: 用户下单流程\ndirection: TB\n\nnodes:\n  - id: n_start\n    label: 开始\n    shape: stadium\n  - id: login\n    label: 用户登录\n  - id: check\n    label: \"是否有商品?\"\n    shape: diamond\n  - id: add\n    label: 选购商品\n  - id: pay\n    label: 结算付款\n  - id: confirm\n    label: 订单确认\n  - id: n_end\n    label: 结束\n    shape: stadium\n\nedges:\n  - { from: n_start, to: login }\n  - { from: login, to: check }\n  - { from: check, to: add, label: 否 }\n  - { from: check, to: pay, label: 是 }\n  - { from: add, to: check }\n  - { from: pay, to: confirm }\n  - { from: confirm, to: n_end }\n\nFile v1.3.0:examples/gantt.yaml\n\ntype: gantt\ntitle: 火一五 Q2 产品路线图\ndateFormat: YYYY-MM-DD\naxisFormat: \"%m-%d\"\n\nsections:\n  - name: 基建\n    tasks:\n      - { name: 服务器扩容,   id: infra1, status: done,    start: 2026-04-01, duration: 5d }\n      - { name: 监控升级,     id: infra2, status: active,  start: 2026-04-06, duration: 10d }\n\n  - name: 功能迭代\n    tasks:\n      - { name: OpenClaw Enhance v2026.4, id: f1, status: done,   start: 2026-04-01, duration: 14d }\n      - { name: 知识库 shared scope,      id: f2, status: active, start: 2026-04-15, duration: 7d }\n      - { name: 小红书选题技能,            id: f3, status: \"\",     start: 2026-04-22, duration: 5d }\n\n  - name: 发布\n    tasks:\n      - { name: v2026.4.11 RC,  id: r1, status: crit, start: 2026-04-18, duration: 3d }\n      - { name: v2026.4.11 GA,  id: r2, status: milestone, start: 2026-04-24, duration: 0d }\n\nFile v1.3.0:examples/sequence.yaml\n\ntype: sequence\ntitle: 用户登录时序图\nauto_number: true\n\nnodes:\n  - { id: U,   label: 用户,        shape: actor }\n  - { id: FE,  label: 前端 Web }\n  - { id: BE,  label: 后端 API }\n  - { id: DB,  label: 数据库 }\n  - { id: WX,  label: 企业微信 }\n\nedges:\n  - { from: U,  to: FE, label: \"点击登录\" }\n  - { from: FE, to: WX, label: \"OAuth 跳转\" }\n  - { from: WX, to: FE, label: \"回调 code\", kind: dashed }\n  - { from: FE, to: BE, label: \"POST /login {code}\" }\n  - { from: BE, to: WX, label: \"exchange code for user_id\" }\n  - { from: WX, to: BE, label: \"user_id\", kind: dashed }\n  - { from: BE, to: DB, label: \"SELECT / INSERT user\" }\n  - { from: DB, to: BE, label: \"user row\", kind: dashed }\n  - { from: BE, to: FE, label: \"JWT token\", kind: dashed }\n  - { from: FE, to: U,  label: \"登录完成\", kind: dashed }\n\nnotes:\n  - { position: over, over: \"BE\", text: \"首次登录自动建账\" }\n\nFile v1.3.0:examples/state.yaml\n\ntype: state\ntitle: 订单状态机\ndirection: LR\n\nnodes:\n  - { id: Draft,     label: 草稿 }\n  - { id: Pending,   label: 待付款 }\n  - { id: Paid,      label: 已付款 }\n  - { id: Shipping,  label: 配送中 }\n  - { id: Delivered, label: 已送达 }\n  - { id: Cancelled, label: 已取消 }\n\nedges:\n  - { from: \"[*]\",      to: Draft,     label: 下单 }\n  - { from: Draft,      to: Pending,   label: 确认 }\n  - { from: Pending,    to: Paid,      label: 付款 }\n  - { from: Pending,    to: Cancelled, label: 超时 }\n  - { from: Paid,       to: Shipping,  label: 发货 }\n  - { from: Shipping,   to: Delivered, label: 签收 }\n  - { from: Delivered,  to: \"[*]\" }\n  - { from: Cancelled,  to: \"[*]\" }\n\nFile v1.3.0:examples/swimlane_mermaid.yaml\n\ntype: swimlane_mermaid\ntitle: 订单发货流程（Mermaid 泳道，不需要 Java）\ndirection: LR\n\nnodes:\n  - { id: a1, label: 下单,       lane: 客户 }\n  - { id: a2, label: 付款,       lane: 客户 }\n  - { id: b1, label: 核对订单,    lane: 客服 }\n  - { id: b2, label: 分配仓库,    lane: 客服 }\n  - { id: c1, label: 拣货,       lane: 仓库 }\n  - { id: c2, label: 打包发货,    lane: 仓库 }\n  - { id: d1, label: 快递配送,    lane: 快递 }\n  - { id: d2, label: 妥投,       lane: 快递 }\n\nedges:\n  - [a1, a2]\n  - [a2, b1]\n  - [b1, b2]\n  - [b2, c1]\n  - [c1, c2]\n  - [c2, d1]\n  - [d1, d2]\n\nFile v1.3.0:examples/swimlane.yaml\n\ntype: swimlane\ntitle: 采购审批流程（泳道图，PlantUML）\n\nlanes:\n  - name: 申请人\n    steps:\n      - { id: A1, label: 填写采购申请 }\n      - { id: A2, label: 提交审批 }\n\n  - name: 部门经理\n    steps:\n      - { id: B1, label: 初审 }\n      - { id: B2, label: \"是否 1 万以上?\", shape: diamond }\n\n  - name: 财务\n    steps:\n      - { id: C1, label: 预算复核 }\n\n  - name: 总经理\n    steps:\n      - { id: D1, label: 终审批准 }\n\n  - name: 系统\n    steps:\n      - { id: E1, label: 自动下单 }\n\nedges:\n  - [A1, A2]\n  - [A2, B1]\n  - [B1, B2]\n  - [B2, C1, \"是\"]\n  - [B2, E1, \"否\"]\n  - [C1, D1]\n  - [D1, E1]\n\nArchive v1.2.0: 14 files, 28733 bytes\n\nFiles: _meta.json (135b), examples/architecture.yaml (1297b), examples/c4_context.yaml (810b), examples/flowchart.yaml (628b), examples/gantt.yaml (883b), examples/sequence.yaml (912b), examples/state.yaml (704b), examples/swimlane_mermaid.yaml (619b), examples/swimlane.yaml (649b), scripts/create-flow-chart.py (7158b), scripts/flowchart_core.py (33827b), scripts/flowchart_render.py (7173b), scripts/styles.py (8688b), SKILL.md (15092b)\n\nFile v1.2.0:SKILL.md\n\n---\nname: huo15-flow-chart\ndisplayName: 火一五流程图技能\ndescription: 规范 + 时尚的流程图、泳道图、系统架构图、C4 架构图、时序图、状态图、ER 图、甘特图生成。输入 YAML/JSON 规格或直接 Mermaid/PlantUML/DOT 源码，输出 SVG/PNG/PDF/draw.io；内置 10 种风格；支持 draw.io 源文件导出 + C4-PlantUML + 架构分层 Tier。触发词：流程图、泳道图、时序图、状态图、ER 图、系统架构图、C4 图、画流程图、生成流程图。\nversion: 1.2.0\naliases:\n  - 火一五流程图\n  - 火一五流程图技能\n  - 流程图\n  - 流程图生成\n  - 画流程图\n  - 泳道图\n  - 时序图\n  - 状态图\n  - 甘特图\n  - ER图\n  - 架构图\n  - 系统架构图\n  - C4 架构图\n  - flowchart\n  - flow-chart\n  - diagram\n  - mermaid\n  - draw.io\ndependencies:\n  python-packages:\n    - pyyaml\n  external:\n    - name: \"@mermaid-js/mermaid-cli\"\n      install: \"npm i -g @mermaid-js/mermaid-cli\"\n      notes: \"渲染 Mermaid 时用（mmdc 命令）\"\n    - name: plantuml\n      install: \"brew install plantuml\"\n      notes: \"PlantUML / C4-PlantUML 渲染（泳道图和 C4 图必须）\"\n    - name: graphviz\n      install: \"brew install graphviz\"\n      notes: \"Graphviz DOT 渲染（可选）\"\n---\n\n# 火一五流程图技能 v1.2.0\n\n> 规范 + 时尚的流程图 / 架构图 / 泳道图 / C4 架构图 / 时序图生成器 — 青岛火一五信息科技有限公司\n\n---\n\n## 一、核心能力\n\n### 1.1 支持的图表类型\n\n| type                 | 用途                    | 渲染引擎          | draw.io |\n|---------------------|-----------------------|-----------------|---------|\n| `flowchart`          | 普通流程图                | Mermaid         | ✅       |\n| `architecture`        | 系统架构图（支持 Tier 分层）  | Mermaid         | ✅       |\n| `swimlane`           | 真·泳道图（PlantUML）     | PlantUML        | ❌       |\n| `swimlane_mermaid`   | 泳道风格（Mermaid，不需要 Java）| Mermaid | ✅ |\n| `sequence`           | 时序图                  | Mermaid/PlantUML | ✅       |\n| `state`              | 状态图                  | Mermaid         | ✅       |\n| `gantt`              | 甘特图                  | Mermaid         | ✅       |\n| `er`                 | ER 图                  | Mermaid         | ✅       |\n| `class`              | UML 类图                | Mermaid         | ✅       |\n| `journey`            | 用户旅程                 | Mermaid         | ✅       |\n| `pie`                | 饼图                   | Mermaid         | ✅       |\n| `c4_context`          | C4 上下文图（L1）          | Mermaid / **PlantUML** | ✅ |\n| `c4_container`        | C4 容器图（L2）            | Mermaid / **PlantUML** | ✅ |\n| `mindmap`            | 简单思维导图               | Mermaid         | ✅       |\n\n### 1.2 输出格式\n\n| 格式   | 类型   | 说明 |\n|--------|--------|------|\n| `.svg` | 矢量图  | 浏览器直接打开，最推荐 |\n| `.png` | 位图    | 适合 PPT / 文档 |\n| `.pdf` | 矢量 PDF | 适合打印 |\n| `.mmd` | Mermaid 源码 | 复制到 [mermaid.live](https://mermaid.live) 编辑 |\n| `.puml` | PlantUML 源码 | 复制到 PlantUML 编辑器 |\n| `.drawio` | **draw.io 源文件** | 用 draw.io 桌面版打开，精美编辑 |\n| `.dot` | Graphviz DOT 源码 | 复杂网络拓扑 |\n\n### 1.3 十种风格\n\n| key | 名称 | 色调 | 适用场景 | 中文别名 |\n|------|-----|------|---------|---------|\n| `modern`      | 现代商务   | 深蓝灰 + 橙 | 日常文档、PPT | 现代、商务 |\n| `classic`     | 经典稳重   | 蓝紫 + 杏黄 | 正式汇报、咨询 | 经典、稳重 |\n| `dark`        | 暗色霓虹   | 深底 + 青粉 | 演示大屏、技术分享 | 暗色、黑色、霓虹 |\n| `xiaohongshu` | 小红书暖奶油 | 红 + 米白   | 小红书封面、种草图 | 小红书、奶油、xhs |\n| `ocean`       | 海洋蓝     | 天蓝 + 橙 | SaaS 产品、技术架构 | 海洋、蓝、蓝色 |\n| `forest`      | 森林绿     | 墨绿 + 琥珀 | 环保、农业、健康 | 森林、绿、自然 |\n| `sunset`      | 夕阳暖橙   | 赤橙 + 青 | 运营活动、温暖叙事 | 夕阳、暖橙、橙 |\n| `minimal`     | 极简素雅   | 纯黑白灰 | 学术论文、出版物 | 极简、素雅、学术、论文、黑白 |\n| `pastel`      | 马卡龙粉嫩 | 粉蓝紫 | 儿童教育、女性向 | 马卡龙、粉嫩、粉、儿童 |\n| `github`      | 极客 GitHub | 黑白 + 强调蓝绿 | 开源文档、README | 极客、程序员、gh |\n\n### 1.4 draw.io 精美增强\n\n- 导出 `.drawio` 源文件，用 draw.io 桌面版打开\n- draw.io 支持：渐变填充、投影、圆角、图标嵌入\n- draw.io 支持 Google Fonts（Mermaid 不支持的中文字体）\n- 配合 `--theme` / `--font` / `--shadow` 参数生成精美效果\n\n---\n\n## 二、快速开始\n\n### 2.1 准备渲染器\n\n```bash\n# 方案 A：Mermaid（推荐，覆盖 90% 场景）\nnpm i -g @mermaid-js/mermaid-cli\n\n# 方案 B：PlantUML（C4-PlantUML / 泳道图必须）\nbrew install plantuml        # macOS\n# apt install plantuml       # Ubuntu/Debian\n\n# 方案 C：Graphviz（网络拓扑可选）\nbrew install graphviz\n\n# Python 依赖\npip install pyyaml\n```\n\n### 2.2 最短上手\n\n```bash\n# 从 YAML 规格生成 PNG（默认 modern 风格）\npython3 scripts/create-flow-chart.py \\\n  -i examples/architecture.yaml \\\n  -o /tmp/arch.png\n\n# 泳道图（真·PlantUML）\npython3 scripts/create-flow-chart.py \\\n  -i examples/swimlane.yaml \\\n  -o /tmp/lane.svg\n\n# 导出 draw.io 源文件（精美编辑）\npython3 scripts/create-flow-chart.py \\\n  -i examples/architecture.yaml \\\n  -o /tmp/arch.drawio\n\n# 同时导出多种格式（一键到位）\npython3 scripts/create-flow-chart.py \\\n  -i examples/architecture.yaml \\\n  -o /tmp/arch.png \\\n  --export-formats svg,pdf,mmd,drawio\n\n# draw.io 精美主题（带投影）\npython3 scripts/create-flow-chart.py \\\n  -i examples/architecture.yaml \\\n  -o /tmp/arch.png \\\n  --theme modern --font \"Microsoft YaHei\" --shadow\n\n# C4-PlantUML（专业 C4 图）\npython3 scripts/create-flow-chart.py \\\n  -i examples/c4_context.yaml \\\n  -o /tmp/c4.puml \\\n  --engine plantuml\n```\n\n---\n\n## 三、YAML 规格速查\n\n### 3.1 流程图 `flowchart`\n\n```yaml\ntype: flowchart\ntitle: 用户下单流程\ndirection: TB          # TB | LR | BT | RL\n\nnodes:\n  - { id: start, label: 开始, shape: stadium }\n  - { id: check, label: 是否有商品?, shape: diamond }\n  - { id: pay,   label: 结算付款 }\n\nedges:\n  - { from: start, to: check }\n  - { from: check, to: pay, label: 是 }\n```\n\n**形状**：`rect` / `round` / `stadium` / `diamond`（判断） / `hexagon` / `circle` / `cylinder`（数据库） / `subroutine` / `parallelogram` / `trapezoid`\n\n**边类型**：`solid`（实线）/ `dashed`（虚线）/ `thick`（粗线）/ `dotted`（点线）/ `bidir`（双向）\n\n### 3.2 系统架构图 `architecture`（支持 Tier 分层）\n\n**方式一：groups 分组**\n```yaml\ntype: architecture\ntitle: 火一五 SaaS 系统架构\ngroups:\n  - { id: frontend, label: 前端层,  children: [web, mobile] }\n  - { id: backend,  label: 业务层,  children: [svc_user, svc_order] }\n  - { id: data,     label: 数据层,  children: [pg, redis] }\nnodes:\n  - { id: web, label: Web 门户 }\n  - { id: pg,  label: PostgreSQL, shape: cylinder }\nedges:\n  - [web, svc_user]\n  - [svc_user, pg]\n```\n\n**方式二：tiers 分层（推荐，层次更清晰）**\n```yaml\ntype: architecture\ntitle: 系统架构（Tier 分层）\ntiers:\n  - { id: edge, label: 边缘层 }\n  - { id: biz,  label: 业务层 }\n  - { id: data, label: 数据层 }\nnodes:\n  - { id: cdn,   label: CDN,       tier: edge }\n  - { id: api,   label: API 网关,   tier: biz }\n  - { id: pg,    label: PostgreSQL, tier: data, shape: cylinder }\nedges:\n  - [cdn, api]\n  - [api, pg]\n```\n\n### 3.3 泳道图 `swimlane`（真·PlantUML）\n\n```yaml\ntype: swimlane\ntitle: 采购审批流程\nlanes:\n  - name: 申请人\n    steps:\n      - { id: A1, label: 填写采购申请 }\n      - { id: A2, label: 提交审批 }\n  - name: 部门经理\n    steps:\n      - { id: B1, label: 初审 }\nedges:\n  - [A1, A2]\n  - [A2, B1]\n```\n\n### 3.4 时序图 `sequence`\n\n```yaml\ntype: sequence\ntitle: 用户登录\nauto_number: true\nnodes:\n  - { id: U,  label: 用户,   shape: actor }\n  - { id: FE, label: 前端 }\n  - { id: BE, label: 后端 }\nedges:\n  - { from: U,  to: FE, label: 点击登录 }\n  - { from: FE, to: BE, label: POST /login }\n  - { from: BE, to: FE, label: JWT token, kind: dashed }\nnotes:\n  - { position: over, over: BE, text: \"首次登录自动建账\" }\n```\n\n### 3.5 状态图 `state`\n\n```yaml\ntype: state\ntitle: 订单状态机\ndirection: LR\nnodes:\n  - { id: Pending, label: 待付款 }\n  - { id: Paid,    label: 已付款 }\nedges:\n  - { from: \"[*]\", to: Pending, label: 下单 }\n  - { from: Pending, to: Paid, label: 付款 }\n```\n\n### 3.6 甘特图 `gantt`\n\n```yaml\ntype: gantt\ntitle: Q2 路线图\ndateFormat: YYYY-MM-DD\naxisFormat: \"%m-%d\"\nsections:\n  - name: 基建\n    tasks:\n      - { name: 服务器扩容, id: i1, status: done,   start: 2026-04-01, duration: 5d }\n      - { name: 监控升级,   id: i2, status: active, start: 2026-04-06, duration: 10d }\n```\n\n状态值：`done` / `active` / `crit`（关键路径红）/ `milestone`（里程碑）/ 留空即未开始。\n\n### 3.7 C4 架构图 `c4_context` / `c4_container`\n\n**Mermaid 引擎（默认）**\n```yaml\ntype: c4_context\ntitle: 火一五 SaaS 上下文图\nnodes:\n  - { id: customer, label: 企业客户\\n使用 SaaS,  shape: person }\n  - { id: huo15,    label: 火一五 SaaS\\n企业数字化平台,  shape: system }\n  - { id: wecom,    label: 企业微信\\nIM,               shape: system_ext }\nedges:\n  - { from: customer, to: huo15, label: 使用 }\n  - { from: huo15,    to: wecom, label: OAuth }\n```\n\n**PlantUML 引擎（C4-PlantUML，更专业）**\n```bash\npython3 scripts/create-flow-chart.py \\\n  -i examples/c4_context.yaml \\\n  -o /tmp/c4.puml \\\n  --engine plantuml\n```\n\nC4 shape：`person` / `person_ext` / `system` / `system_ext` / `container` / `container_db` / `component`。\n\n### 3.8 ER 图 / UML 类图 / 用户旅程 / 饼图\n\n- `er` — ER 图，label 用 `\\n` 分隔字段\n- `class` — UML 类图，edge kind 支持 `extends` / `implements` / `composition` / `aggregation` / `dependency`\n- `journey` — 用户旅程，用 `sections[].tasks[]`\n- `pie` — 饼图，用 `items` 数组\n\n---\n\n## 四、命令行参数\n\n| 参数 | 说明 |\n|------|------|\n| `-i, --input` | 输入文件（yaml/json/mmd/puml/dot） |\n| `-o, --output` | 输出路径（.svg/.png/.pdf/.mmd/.puml/.dot/.drawio） |\n| `--export-formats` | 附加输出格式，逗号分隔。如 `svg,pdf,mmd,drawio` |\n| `--export-dir` | 源文件输出目录，默认与主输出同目录 |\n| `--style` | 风格：modern/classic/dark/xiaohongshu/ocean/forest/sunset/minimal/pastel/github |\n| `--theme` | draw.io 主题（与 --style 对应，影响 draw.io 导出效果） |\n| `--font` | 字体名称，默认 PingFang SC（Mac）/ Microsoft YaHei（Win） |\n| `--shadow` | 为 draw.io 节点添加投影效果 |\n| `--engine` | 强制渲染引擎：mermaid / plantuml / dot / drawio / auto |\n| `--width, --height` | 输出尺寸（像素） |\n| `--background` | 背景色，默认用 style 的 background |\n| `--dump-source` | 只打印源码到 stdout，不渲染（仅 draw.io 输出时生效） |\n\n---\n\n## 五、Python API\n\n```python\nimport sys; sys.path.insert(0, 'scripts')\n\nfrom flowchart_core import parse, to_mermaid, to_plantuml, to_drawio\nfrom flowchart_render import render\nfrom styles import get_style, to_mermaid_init_directive, to_plantuml_skinparam\n\nfc = parse('spec.yaml')\nstyle = get_style('xiaohongshu')\n\n# Mermaid\ncode = to_mermaid(fc, to_mermaid_init_directive(style))\nrender(code, '/tmp/out.svg', engine='mermaid')\n\n# draw.io（精美源文件）\ndrawio_xml = to_drawio(fc, style=style, theme='xiaohongshu', font_family='Microsoft YaHei')\nrender(drawio_xml, '/tmp/out.drawio', engine='mermaid')\n\n# C4-PlantUML\npuml = to_plantuml(fc, to_plantuml_skinparam(style))\nrender(puml, '/tmp/out.puml', engine='plantuml')\n```\n\n主要接口：\n\n| 函数 | 说明 |\n|------|------|\n| `parse(path_or_text, hint='auto')` | YAML/JSON/Mermaid/PlantUML/DOT → FlowChart |\n| `to_mermaid(fc, init_directive)` | → Mermaid 源码 |\n| `to_plantuml(fc, skinparam)` | → PlantUML/C4-PlantUML 源码 |\n| `to_dot(fc, style)` | → Graphviz DOT |\n| `to_drawio(fc, style, theme, font_family)` | → draw.io XML 源码（v1.2.0 新增）|\n| `render(source, out, engine)` | 调用 mmdc/plantuml/dot 渲染 |\n| `get_style(key)` | 获取 Style 对象（中文别名也能识别）|\n| `to_mermaid_init_directive(style)` | 返回 `%%{init: ...}%%` 行 |\n| `to_plantuml_skinparam(style)` | 返回 PlantUML skinparam 配色指令 |\n\n---\n\n## 六、与其他技能的边界\n\n| 需求 | 用哪个技能 |\n|------|----------|\n| 自由层级的思维导图，要导出 XMind | **huo15-mind-map** |\n| 流程图 / 架构图 / 泳道图 / 时序图 / C4 图 | **huo15-flow-chart**（本技能）|\n| **精美架构图**（渐变/投影/圆角），本地编辑 | **huo15-flow-chart** + draw.io 导出 |\n| 工程制图 / 原型图 | 不在范围内，建议 draw.io / Figma |\n| 数据仪表盘 | 用图表库（Chart.js / ECharts / matplotlib） |\n\n---\n\n## 七、触发词\n\n- 流程图 / 画流程图 / 生成流程图 / 做一张流程图\n- 泳道图 / 跨职能流程图 / swim lane\n- 系统架构图 / 架构图 / C4 图 / C4 上下文 / C4 容器\n- **draw.io 架构图** / 导出 draw.io / draw.io 源文件\n- **C4-PlantUML** / C4 图 PlantUML 格式\n- 时序图 / 序列图 / sequence diagram\n- 状态图 / 状态机 / state diagram\n- ER 图 / 实体关系图\n- 甘特图 / gantt\n- Mermaid / PlantUML\n- **架构分层** / Tier 分层 / 多层架构图\n\n---\n\n## 八、版本历史\n\n- **v1.2.0（当前）** — draw.io 导出 + C4-PlantUML + Tier 分层\n  - ✅ 新增 `.drawio` 源文件导出（draw.io 桌面版打开，精美编辑）\n  - ✅ 新增 `--theme` / `--font` / `--shadow` 参数（draw.io 精美效果）\n  - ✅ 新增 `--export-formats`（一键导出多种格式，兼容旧名 `--also`）\n  - ✅ 新增 C4-PlantUML 引擎（`--engine plantuml` 输出专业 C4 图）\n  - ✅ 新增 `tiers` 分层字段（architecture 类型专用，层次更清晰）\n  - ✅ 新增 `node.tier` 属性（替代 group 归类，tiers 模式下使用）\n  - ✅ `to_drawio()` Python API（可直接集成到其他工具）\n  - ✅ 修复 `.drawio` 导出时 `return` 缺失 bug\n\n- **v1.1.0** — 扩展 6 种风格\n  - 新增：`ocean` / `forest` / `sunset` / `minimal` / `pastel` / `github`\n\n- **v1.0.0** — 首版\n  - 支持 13 种图表（flowchart / architecture / swimlane / swimlane_mermaid / sequence / state / gantt / er / class / journey / pie / c4_context / c4_container）\n  - 3 种输入（YAML/JSON、Mermaid、PlantUML）、6 种输出（svg/png/pdf/mmd/puml/dot）\n  - 4 种风格：modern / classic / dark / xiaohongshu\n\n---\n\n**技术支持：** 青岛火一五信息科技有限公司\n\nFile v1.2.0:_meta.json\n\n{\n  \"ownerId\": \"kn7byevkn40d6z4p7ghdb097z983tj33\",\n  \"slug\": \"huo15-flow-chart\",\n  \"version\": \"1.2.0\",\n  \"publishedAt\": 1776959804598\n}\n\nFile v1.2.0:examples/architecture.yaml\n\ntype: architecture\ntitle: 火一五 SaaS 系统架构\ndirection: TB\n\ngroups:\n  - id: frontend\n    label: 前端层\n    children: [web, mobile, admin]\n  - id: gateway\n    label: 网关层\n    children: [api_gw]\n  - id: backend\n    label: 业务层\n    children: [svc_user, svc_order, svc_content, svc_ai]\n  - id: data\n    label: 数据层\n    children: [pg, redis, minio]\n\nnodes:\n  - { id: web,         label: Web 门户, shape: rect }\n  - { id: mobile,      label: H5 / 小程序, shape: rect }\n  - { id: admin,       label: 管理后台, shape: rect }\n  - { id: api_gw,      label: API 网关\\n(Nginx + Auth), shape: hexagon }\n  - { id: svc_user,    label: 用户服务 }\n  - { id: svc_order,   label: 订单服务 }\n  - { id: svc_content, label: 内容服务 }\n  - { id: svc_ai,      label: AI 服务\\n(龙虾 OpenClaw) }\n  - { id: pg,          label: PostgreSQL, shape: cylinder }\n  - { id: redis,       label: Redis, shape: cylinder }\n  - { id: minio,       label: 对象存储 MinIO, shape: cylinder }\n\nedges:\n  - [web, api_gw]\n  - [mobile, api_gw]\n  - [admin, api_gw]\n  - [api_gw, svc_user]\n  - [api_gw, svc_order]\n  - [api_gw, svc_content]\n  - [api_gw, svc_ai]\n  - [svc_user, pg]\n  - [svc_order, pg]\n  - [svc_order, redis]\n  - [svc_content, pg]\n  - [svc_content, minio]\n  - [svc_ai, redis]\n\nFile v1.2.0:examples/c4_context.yaml\n\ntype: c4_context\ntitle: 火一五 SaaS 上下文图（C4 L1）\n\nnodes:\n  - id: customer\n    label: 企业客户\\n采购/使用 SaaS 的企业\n    shape: person\n  - id: admin\n    label: 火一五运维\\n内部团队\n    shape: person\n  - id: huo15\n    label: 火一五 SaaS\\n企业数字化平台\n    shape: system\n  - id: wecom\n    label: 企业微信\\nIM / 通讯录\n    shape: system_ext\n  - id: odoo\n    label: Odoo ERP\\nCRM / 财务\n    shape: system_ext\n  - id: openai\n    label: OpenAI / 百炼\\n大模型 API\n    shape: system_ext\n\nedges:\n  - { from: customer, to: huo15,  label: 使用 }\n  - { from: admin,    to: huo15,  label: 运维 }\n  - { from: huo15,    to: wecom,  label: OAuth / 消息推送 }\n  - { from: huo15,    to: odoo,   label: XML-RPC }\n  - { from: huo15,    to: openai, label: HTTPS }\n\nFile v1.2.0:examples/flowchart.yaml\n\ntype: flowchart\ntitle: 用户下单流程\ndirection: TB\n\nnodes:\n  - id: n_start\n    label: 开始\n    shape: stadium\n  - id: login\n    label: 用户登录\n  - id: check\n    label: \"是否有商品?\"\n    shape: diamond\n  - id: add\n    label: 选购商品\n  - id: pay\n    label: 结算付款\n  - id: confirm\n    label: 订单确认\n  - id: n_end\n    label: 结束\n    shape: stadium\n\nedges:\n  - { from: n_start, to: login }\n  - { from: login, to: check }\n  - { from: check, to: add, label: 否 }\n  - { from: check, to: pay, label: 是 }\n  - { from: add, to: check }\n  - { from: pay, to: confirm }\n  - { from: confirm, to: n_end }\n\nFile v1.2.0:examples/gantt.yaml\n\ntype: gantt\ntitle: 火一五 Q2 产品路线图\ndateFormat: YYYY-MM-DD\naxisFormat: \"%m-%d\"\n\nsections:\n  - name: 基建\n    tasks:\n      - { name: 服务器扩容,   id: infra1, status: done,    start: 2026-04-01, duration: 5d }\n      - { name: 监控升级,     id: infra2, status: active,  start: 2026-04-06, duration: 10d }\n\n  - name: 功能迭代\n    tasks:\n      - { name: OpenClaw Enhance v2026.4, id: f1, status: done,   start: 2026-04-01, duration: 14d }\n      - { name: 知识库 shared scope,      id: f2, status: active, start: 2026-04-15, duration: 7d }\n      - { name: 小红书选题技能,            id: f3, status: \"\",     start: 2026-04-22, duration: 5d }\n\n  - name: 发布\n    tasks:\n      - { name: v2026.4.11 RC,  id: r1, status: crit, start: 2026-04-18, duration: 3d }\n      - { name: v2026.4.11 GA,  id: r2, status: milestone, start: 2026-04-24, duration: 0d }\n\nFile v1.2.0:examples/sequence.yaml\n\ntype: sequence\ntitle: 用户登录时序图\nauto_number: true\n\nnodes:\n  - { id: U,   label: 用户,        shape: actor }\n  - { id: FE,  label: 前端 Web }\n  - { id: BE,  label: 后端 API }\n  - { id: DB,  label: 数据库 }\n  - { id: WX,  label: 企业微信 }\n\nedges:\n  - { from: U,  to: FE, label: \"点击登录\" }\n  - { from: FE, to: WX, label: \"OAuth 跳转\" }\n  - { from: WX, to: FE, label: \"回调 code\", kind: dashed }\n  - { from: FE, to: BE, label: \"POST /login {code}\" }\n  - { from: BE, to: WX, label: \"exchange code for user_id\" }\n  - { from: WX, to: BE, label: \"user_id\", kind: dashed }\n  - { from: BE, to: DB, label: \"SELECT / INSERT user\" }\n  - { from: DB, to: BE, label: \"user row\", kind: dashed }\n  - { from: BE, to: FE, label: \"JWT token\", kind: dashed }\n  - { from: FE, to: U,  label: \"登录完成\", kind: dashed }\n\nnotes:\n  - { position: over, over: \"BE\", text: \"首次登录自动建账\" }\n\nFile v1.2.0:examples/state.yaml\n\ntype: state\ntitle: 订单状态机\ndirection: LR\n\nnodes:\n  - { id: Draft,     label: 草稿 }\n  - { id: Pending,   label: 待付款 }\n  - { id: Paid,      label: 已付款 }\n  - { id: Shipping,  label: 配送中 }\n  - { id: Delivered, label: 已送达 }\n  - { id: Cancelled, label: 已取消 }\n\nedges:\n  - { from: \"[*]\",      to: Draft,     label: 下单 }\n  - { from: Draft,      to: Pending,   label: 确认 }\n  - { from: Pending,    to: Paid,      label: 付款 }\n  - { from: Pending,    to: Cancelled, label: 超时 }\n  - { from: Paid,       to: Shipping,  label: 发货 }\n  - { from: Shipping,   to: Delivered, label: 签收 }\n  - { from: Delivered,  to: \"[*]\" }\n  - { from: Cancelled,  to: \"[*]\" }\n\nFile v1.2.0:examples/swimlane_mermaid.yaml\n\ntype: swimlane_mermaid\ntitle: 订单发货流程（Mermaid 泳道，不需要 Java）\ndirection: LR\n\nnodes:\n  - { id: a1, label: 下单,       lane: 客户 }\n  - { id: a2, label: 付款,       lane: 客户 }\n  - { id: b1, label: 核对订单,    lane: 客服 }\n  - { id: b2, label: 分配仓库,    lane: 客服 }\n  - { id: c1, label: 拣货,       lane: 仓库 }\n  - { id: c2, label: 打包发货,    lane: 仓库 }\n  - { id: d1, label: 快递配送,    lane: 快递 }\n  - { id: d2, label: 妥投,       lane: 快递 }\n\nedges:\n  - [a1, a2]\n  - [a2, b1]\n  - [b1, b2]\n  - [b2, c1]\n  - [c1, c2]\n  - [c2, d1]\n  - [d1, d2]\n\nFile v1.2.0:examples/swimlane.yaml\n\ntype: swimlane\ntitle: 采购审批流程（泳道图，PlantUML）\n\nlanes:\n  - name: 申请人\n    steps:\n      - { id: A1, label: 填写采购申请 }\n      - { id: A2, label: 提交审批 }\n\n  - name: 部门经理\n    steps:\n      - { id: B1, label: 初审 }\n      - { id: B2, label: \"是否 1 万以上?\", shape: diamond }\n\n  - name: 财务\n    steps:\n      - { id: C1, label: 预算复核 }\n\n  - name: 总经理\n    steps:\n      - { id: D1, label: 终审批准 }\n\n  - name: 系统\n    steps:\n      - { id: E1, label: 自动下单 }\n\nedges:\n  - [A1, A2]\n  - [A2, B1]\n  - [B1, B2]\n  - [B2, C1, \"是\"]\n  - [B2, E1, \"否\"]\n  - [C1, D1]\n  - [D1, E1]\n\nArchive v1.1.0: 14 files, 24465 bytes\n\nFiles: _meta.json (135b), examples/architecture.yaml (1297b), examples/c4_context.yaml (810b), examples/flowchart.yaml (628b), examples/gantt.yaml (883b), examples/sequence.yaml (912b), examples/state.yaml (704b), examples/swimlane_mermaid.yaml (619b), examples/swimlane.yaml (649b), scripts/create-flow-chart.py (4855b), scripts/flowchart_core.py (23762b), scripts/flowchart_render.py (7064b), scripts/styles.py (8688b), SKILL.md (11936b)\n\nFile v1.1.0:SKILL.md\n\n---\nname: huo15-flow-chart\ndisplayName: 火一五流程图技能\ndescription: 规范 + 时尚的流程图、泳道图、系统架构图、C4 架构图、时序图、状态图、ER 图、甘特图生成。输入 YAML/JSON 规格或直接 Mermaid/PlantUML/DOT 源码，输出 SVG/PNG/PDF；内置 10 种风格（modern / classic / dark / xiaohongshu / ocean / forest / sunset / minimal / pastel / github）。触发词：流程图、泳道图、时序图、状态图、ER 图、系统架构图、C4 图、画流程图、生成流程图。\nversion: 1.1.0\naliases:\n  - 火一五流程图\n  - 火一五流程图技能\n  - 流程图\n  - 流程图生成\n  - 画流程图\n  - 泳道图\n  - 时序图\n  - 状态图\n  - 甘特图\n  - ER图\n  - 架构图\n  - 系统架构图\n  - C4 架构图\n  - flowchart\n  - flow-chart\n  - diagram\n  - mermaid\ndependencies:\n  python-packages:\n    - pyyaml\n  external:\n    - name: \"@mermaid-js/mermaid-cli\"\n      install: \"npm i -g @mermaid-js/mermaid-cli\"\n      notes: \"渲染 Mermaid 时用\"\n    - name: plantuml\n      install: \"brew install plantuml\"\n      notes: \"只在 type=swimlane 真·泳道图时用\"\n    - name: graphviz\n      install: \"brew install graphviz\"\n      notes: \"复杂网络拓扑可选\"\n---\n\n# 火一五流程图技能 v1.0\n\n> 规范 + 时尚的流程图 / 架构图 / 泳道图 / 时序图 / 状态图生成器 — 青岛火一五信息科技有限公司\n\n---\n\n## 一、核心能力\n\n1. **十三种图表** —\n   | type                 | 用途                               | 渲染引擎 |\n   |---------------------|-----------------------------------|---------|\n   | `flowchart`          | 普通流程图                         | Mermaid |\n   | `architecture`       | 系统架构图（分层 + 分组）           | Mermaid |\n   | `swimlane`           | 真·泳道图（PlantUML `\\|lane\\|`）    | PlantUML |\n   | `swimlane_mermaid`   | 泳道风格（不需要 Java）             | Mermaid |\n   | `sequence`           | 时序图                             | Mermaid / PlantUML |\n   | `state`              | 状态图                             | Mermaid |\n   | `gantt`              | 甘特图                             | Mermaid |\n   | `er`                 | ER 图                              | Mermaid |\n   | `class`              | UML 类图                           | Mermaid |\n   | `journey`            | 用户旅程                           | Mermaid |\n   | `pie`                | 饼图                               | Mermaid |\n   | `c4_context`         | C4 上下文图（L1）                   | Mermaid |\n   | `c4_container`       | C4 容器图（L2）                     | Mermaid |\n\n2. **十种风格** —\n   | key | 名称 | 色调 | 适用场景 | 中文别名 |\n   |------|-----|------|---------|---------|\n   | `modern`      | 现代商务   | 深蓝灰 + 橙 | 日常文档、PPT | 现代、商务 |\n   | `classic`     | 经典稳重   | 蓝紫 + 杏黄 | 正式汇报、咨询 | 经典、稳重 |\n   | `dark`        | 暗色霓虹   | 深底 + 青粉 | 演示大屏、技术分享 | 暗色、黑色、霓虹 |\n   | `xiaohongshu` | 小红书暖奶油 | 红 + 米白   | 小红书封面、种草图 | 小红书、奶油、xhs |\n   | `ocean`       | 海洋蓝     | 天蓝 + 橙 | SaaS 产品、技术架构 | 海洋、蓝、蓝色 |\n   | `forest`      | 森林绿     | 墨绿 + 琥珀 | 环保、农业、健康 | 森林、绿、自然 |\n   | `sunset`      | 夕阳暖橙   | 赤橙 + 青 | 运营活动、温暖叙事 | 夕阳、暖橙、橙 |\n   | `minimal`     | 极简素雅   | 纯黑白灰 | 学术论文、出版物 | 极简、素雅、学术、论文、黑白 |\n   | `pastel`      | 马卡龙粉嫩 | 粉蓝紫 | 儿童教育、女性向 | 马卡龙、粉嫩、粉、儿童 |\n   | `github`      | 极客 GitHub | 黑白 + 强调蓝绿 | 开源文档、README | 极客、程序员、gh |\n\n3. **三种输入** —\n   - **YAML/JSON 规格**（推荐，可读性好）\n   - **Mermaid 源码**（`.mmd`）直接传入，加 style 注入\n   - **PlantUML 源码**（`.puml`）直接传入\n\n4. **四种输出** — `.svg` / `.png` / `.pdf`（调渲染器）；`.mmd` / `.puml` / `.dot`（只导出源码，自己复制到在线编辑器）。\n\n5. **中文友好** — 内置 PingFang SC / Microsoft YaHei / Noto Sans CJK 字体栈。\n\n---\n\n## 二、快速开始\n\n### 2.1 准备渲染器（任选）\n\n```bash\n# 方案 A：Mermaid（推荐，覆盖 90% 场景）\nnpm i -g @mermaid-js/mermaid-cli\n\n# 方案 B：PlantUML（泳道图必须）\nbrew install plantuml        # macOS\n# apt install plantuml       # Debian/Ubuntu\n\n# 方案 C：Graphviz（网络拓扑可选）\nbrew install graphviz\n\n# Python 依赖\npip install pyyaml\n```\n\n### 2.2 最短上手\n\n```bash\n# 从 YAML 规格生成系统架构图 PNG\npython3 scripts/create-flow-chart.py \\\n  -i examples/architecture.yaml \\\n  -o /tmp/arch.png \\\n  --style modern\n\n# 泳道图（真·PlantUML）\npython3 scripts/create-flow-chart.py \\\n  -i examples/swimlane.yaml \\\n  -o /tmp/lane.svg\n\n# Mermaid 源码直接渲染\npython3 scripts/create-flow-chart.py \\\n  -i flow.mmd \\\n  -o /tmp/flow.pdf \\\n  --style xiaohongshu\n\n# 同时导出多种格式\npython3 scripts/create-flow-chart.py \\\n  -i examples/gantt.yaml \\\n  -o /tmp/gantt.png \\\n  --also svg,pdf,mmd\n\n# 只看生成的源码（不渲染，用于在线编辑器）\npython3 scripts/create-flow-chart.py \\\n  -i examples/c4_context.yaml \\\n  -o /dev/null --dump-source\n```\n\n---\n\n## 三、YAML 规格速查\n\n### 3.1 流程图 `flowchart`\n\n```yaml\ntype: flowchart\ntitle: 用户下单流程\ndirection: TB          # TB | LR | BT | RL\n\nnodes:\n  - { id: start, label: 开始, shape: stadium }\n  - { id: check, label: 是否有商品?, shape: diamond }\n  - { id: pay,   label: 结算付款 }\n\nedges:\n  - { from: start, to: check }\n  - { from: check, to: pay, label: 是 }\n```\n\n**形状一览**：`rect`（默认）/ `round` / `stadium` / `diamond`（菱形判断）/ `hexagon` / `circle` / `cylinder`（数据库）/ `subroutine` / `parallelogram` / `trapezoid`。\n\n**边类型（`kind`）**：`solid`（默认实线）/ `dashed` / `thick` / `dotted` / `bidir`（双向）。\n\n### 3.2 系统架构图 `architecture`\n\n用 `groups` 分层 + `nodes.group` 归组：\n\n```yaml\ntype: architecture\ntitle: 火一五 SaaS 系统架构\ngroups:\n  - { id: frontend, label: 前端层,  children: [web, mobile] }\n  - { id: backend,  label: 业务层,  children: [svc_user, svc_order] }\n  - { id: data,     label: 数据层,  children: [pg, redis] }\nnodes:\n  - { id: web, label: Web 门户 }\n  - { id: pg,  label: PostgreSQL, shape: cylinder }\n  # ...\nedges:\n  - [web, svc_user]\n  - [svc_user, pg]\n```\n\n### 3.3 泳道图 `swimlane`（真·PlantUML）\n\n```yaml\ntype: swimlane\ntitle: 采购审批流程\nlanes:\n  - name: 申请人\n    steps:\n      - { id: A1, label: 填写采购申请 }\n      - { id: A2, label: 提交审批 }\n  - name: 部门经理\n    steps:\n      - { id: B1, label: 初审 }\nedges:\n  - [A1, A2]\n  - [A2, B1]\n```\n\n> 需要 `plantuml` 命令；如无 Java 环境可用 `type: swimlane_mermaid` 替代。\n\n### 3.4 时序图 `sequence`\n\n```yaml\ntype: sequence\ntitle: 用户登录\nauto_number: true\nnodes:\n  - { id: U,  label: 用户,   shape: actor }\n  - { id: FE, label: 前端 }\n  - { id: BE, label: 后端 }\nedges:\n  - { from: U,  to: FE, label: 点击登录 }\n  - { from: FE, to: BE, label: POST /login }\n  - { from: BE, to: FE, label: JWT token, kind: dashed }\nnotes:\n  - { position: over, over: BE, text: \"首次登录自动建账\" }\n```\n\n### 3.5 状态图 `state`\n\n```yaml\ntype: state\ntitle: 订单状态机\ndirection: LR\nnodes:\n  - { id: Pending, label: 待付款 }\n  - { id: Paid,    label: 已付款 }\nedges:\n  - { from: \"[*]\", to: Pending, label: 下单 }\n  - { from: Pending, to: Paid, label: 付款 }\n```\n\n### 3.6 甘特图 `gantt`\n\n```yaml\ntype: gantt\ntitle: Q2 路线图\ndateFormat: YYYY-MM-DD\naxisFormat: \"%m-%d\"\nsections:\n  - name: 基建\n    tasks:\n      - { name: 服务器扩容, id: i1, status: done,   start: 2026-04-01, duration: 5d }\n      - { name: 监控升级,   id: i2, status: active, start: 2026-04-06, duration: 10d }\n```\n\n状态值：`done` / `active` / `crit`（关键路径红）/ `milestone`（里程碑）/ 留空即未开始。\n\n### 3.7 C4 架构图 `c4_context` / `c4_container`\n\n```yaml\ntype: c4_context\ntitle: 火一五 SaaS 上下文图\nnodes:\n  - { id: customer, label: 企业客户\\n使用 SaaS 的企业,  shape: person }\n  - { id: huo15,    label: 火一五 SaaS\\n企业数字化平台,  shape: system }\n  - { id: wecom,    label: 企业微信\\nIM,               shape: system_ext }\nedges:\n  - { from: customer, to: huo15, label: 使用 }\n  - { from: huo15,    to: wecom, label: OAuth }\n```\n\nC4 shape：`person` / `person_ext` / `system` / `system_ext` / `container` / `container_db`（数据库）/ `component`。\n\n### 3.8 其他\n\n- `er` — ER 图，label 用 `\\n` 分隔字段\n- `class` — UML 类图，edge kind 支持 `extends` / `implements` / `composition` / `aggregation` / `dependency` / `association`\n- `journey` — 用户旅程，用 `sections[].tasks[]`，每个 task 有 score (1-5) 和 actors\n- `pie` — 饼图，用 `items` 数组\n\n---\n\n## 四、Python API\n\n```python\nimport sys; sys.path.insert(0, 'scripts')\n\nfrom flowchart_core import parse, to_mermaid, to_plantuml\nfrom flowchart_render import render\nfrom styles import get_style, to_mermaid_init_directive\n\nfc = parse('spec.yaml')\nstyle = get_style('xiaohongshu')\ncode = to_mermaid(fc, to_mermaid_init_directive(style))\nrender(code, '/tmp/out.svg', engine='mermaid')\n```\n\n主要接口：\n\n| 函数                              | 说明 |\n|---------------------------------|------|\n| `parse(path_or_text, hint='auto')` | YAML/JSON/Mermaid/PlantUML/DOT → FlowChart |\n| `to_mermaid(fc, init_directive)`   | → Mermaid 源码 |\n| `to_plantuml(fc, skin)`            | → PlantUML 源码（只支持 swimlane/sequence）|\n| `to_dot(fc, style)`                | → Graphviz DOT |\n| `render(source, out, engine)`      | 调用 mmdc/plantuml/dot 渲染 |\n| `get_style(key)`                   | 获取 Style 对象（中文别名也能识别）|\n| `to_mermaid_init_directive(style)` | 返回 `%%{init: ...}%%` 行 |\n| `to_plantuml_skinparam(style)`     | 返回 PlantUML skinparam |\n\n---\n\n## 五、与其他技能的边界\n\n| 需求 | 用哪个技能 |\n|------|----------|\n| 自由层级的思维导图，要导出 XMind | **huo15-mind-map** |\n| 流程图 / 架构图 / 泳道图 / 时序图 | **huo15-flow-chart**（本技能）|\n| 工程制图 / 原型图 | 不在范围内，建议 drawio / Figma |\n| 数据仪表盘 | 用图表库（Chart.js / ECharts / matplotlib） |\n\n---\n\n## 六、触发词\n\n- 流程图 / 画流程图 / 生成流程图 / 做一张流程图\n- 泳道图 / 跨职能流程图 / swim lane\n- 系统架构图 / 架构图 / C4 图 / C4 上下文 / C4 容器\n- 时序图 / 序列图 / sequence diagram\n- 状态图 / 状态机 / state diagram\n- ER 图 / 实体关系图\n- 甘特图 / gantt\n- Mermaid / PlantUML\n\n---\n\n## 七、版本历史\n\n- **v1.1.0（当前）** — 扩展 6 种风格。\n  - 新增：`ocean`（海洋蓝）/ `forest`（森林绿）/ `sunset`（夕阳暖橙）/ `minimal`（极简素雅）/ `pastel`（马卡龙粉嫩）/ `github`（极客 GitHub）\n  - 更完善的中文别名映射：海洋/森林/夕阳/极简/马卡龙/极客 等均可识别\n\n- **v1.0.0** — 首版。\n  - 支持 13 种图表（flowchart / architecture / swimlane / swimlane_mermaid / sequence / state / gantt / er / class / journey / pie / c4_context / c4_container）\n  - 3 种输入（YAML/JSON、Mermaid、PlantUML）、6 种输出（svg/png/pdf/mmd/puml/dot）\n  - 4 种风格：modern / classic / dark / xiaohongshu（带中文别名）\n  - 渲染器自动探测：mmdc > npx > docker（Mermaid）；plantuml > java+jar > docker（PlantUML）；dot（Graphviz）\n\n---\n\n**技术支持：** 青岛火一五信息科技有限公司\n\nFile v1.1.0:_meta.json\n\n{\n  \"ownerId\": \"kn7byevkn40d6z4p7ghdb097z983tj33\",\n  \"slug\": \"huo15-flow-chart\",\n  \"version\": \"1.1.0\",\n  \"publishedAt\": 1776922842751\n}\n\nFile v1.1.0:examples/architecture.yaml\n\ntype: architecture\ntitle: 火一五 SaaS 系统架构\ndirection: TB\n\ngroups:\n  - id: frontend\n    label: 前端层\n    children: [web, mobile, admin]\n  - id: gateway\n    label: 网关层\n    children: [api_gw]\n  - id: backend\n    label: 业务层\n    children: [svc_user, svc_order, svc_content, svc_ai]\n  - id: data\n    label: 数据层\n    children: [pg, redis, minio]\n\nnodes:\n  - { id: web,         label: Web 门户, shape: rect }\n  - { id: mobile,      label: H5 / 小程序, shape: rect }\n  - { id: admin,       label: 管理后台, shape: rect }\n  - { id: api_gw,      label: API 网关\\n(Nginx + Auth), shape: hexagon }\n  - { id: svc_user,    label: 用户服务 }\n  - { id: svc_order,   label: 订单服务 }\n  - { id: svc_content, label: 内容服务 }\n  - { id: svc_ai,      label: AI 服务\\n(龙虾 OpenClaw) }\n  - { id: pg,          label: PostgreSQL, shape: cylinder }\n  - { id: redis,       label: Redis, shape: cylinder }\n  - { id: minio,       label: 对象存储 MinIO, shape: cylinder }\n\nedges:\n  - [web, api_gw]\n  - [mobile, api_gw]\n  - [admin, api_gw]\n  - [api_gw, svc_user]\n  - [api_gw, svc_order]\n  - [api_gw, svc_content]\n  - [api_gw, svc_ai]\n  - [svc_user, pg]\n  - [svc_order, pg]\n  - [svc_order, redis]\n  - [svc_content, pg]\n  - [svc_content, minio]\n  - [svc_ai, redis]\n\nFile v1.1.0:examples/c4_context.yaml\n\ntype: c4_context\ntitle: 火一五 SaaS 上下文图（C4 L1）\n\nnodes:\n  - id: customer\n    label: 企业客户\\n采购/使用 SaaS 的企业\n    shape: person\n  - id: admin\n    label: 火一五运维\\n内部团队\n    shape: person\n  - id: huo15\n    label: 火一五 SaaS\\n企业数字化平台\n    shape: system\n  - id: wecom\n    label: 企业微信\\nIM / 通讯录\n    shape: system_ext\n  - id: odoo\n    label: Odoo ERP\\nCRM / 财务\n    shape: system_ext\n  - id: openai\n    label: OpenAI / 百炼\\n大模型 API\n    shape: system_ext\n\nedges:\n  - { from: customer, to: huo15,  label: 使用 }\n  - { from: admin,    to: huo15,  label: 运维 }\n  - { from: huo15,    to: wecom,  label: OAuth / 消息推送 }\n  - { from: huo15,    to: odoo,   label: XML-RPC }\n  - { from: huo15,    to: openai, label: HTTPS }\n\nFile v1.1.0:examples/flowchart.yaml\n\ntype: flowchart\ntitle: 用户下单流程\ndirection: TB\n\nnodes:\n  - id: n_start\n    label: 开始\n    shape: stadium\n  - id: login\n    label: 用户登录\n  - id: check\n    label: \"是否有商品?\"\n    shape: diamond\n  - id: add\n    label: 选购商品\n  - id: pay\n    label: 结算付款\n  - id: confirm\n    label: 订单确认\n  - id: n_end\n    label: 结束\n    shape: stadium\n\nedges:\n  - { from: n_start, to: login }\n  - { from: login, to: check }\n  - { from: check, to: add, label: 否 }\n  - { from: check, to: pay, label: 是 }\n  - { from: add, to: check }\n  - { from: pay, to: confirm }\n  - { from: confirm, to: n_end }\n\nFile v1.1.0:examples/gantt.yaml\n\ntype: gantt\ntitle: 火一五 Q2 产品路线图\ndateFormat: YYYY-MM-DD\naxisFormat: \"%m-%d\"\n\nsections:\n  - name: 基建\n    tasks:\n      - { name: 服务器扩容,   id: infra1, status: done,    start: 2026-04-01, duration: 5d }\n      - { name: 监控升级,     id: infra2, status: active,  start: 2026-04-06, duration: 10d }\n\n  - name: 功能迭代\n    tasks:\n      - { name: OpenClaw Enhance v2026.4, id: f1, status: done,   start: 2026-04-01, duration: 14d }\n      - { name: 知识库 shared scope,      id: f2, status: active, start: 2026-04-15, duration: 7d }\n      - { name: 小红书选题技能,            id: f3, status: \"\",     start: 2026-04-22, duration: 5d }\n\n  - name: 发布\n    tasks:\n      - { name: v2026.4.11 RC,  id: r1, status: crit, start: 2026-04-18, duration: 3d }\n      - { name: v2026.4.11 GA,  id: r2, status: milestone, start: 2026-04-24, duration: 0d }\n\nFile v1.1.0:examples/sequence.yaml\n\ntype: sequence\ntitle: 用户登录时序图\nauto_number: true\n\nnodes:\n  - { id: U,   label: 用户,        shape: actor }\n  - { id: FE,  label: 前端 Web }\n  - { id: BE,  label: 后端 API }\n  - { id: DB,  label: 数据库 }\n  - { id: WX,  label: 企业微信 }\n\nedges:\n  - { from: U,  to: FE, label: \"点击登录\" }\n  - { from: FE, to: WX, label: \"OAuth 跳转\" }\n  - { from: WX, to: FE, label: \"回调 code\", kind: dashed }\n  - { from: FE, to: BE, label: \"POST /login {code}\" }\n  - { from: BE, to: WX, label: \"exchange code for user_id\" }\n  - { from: WX, to: BE, label: \"user_id\", kind: dashed }\n  - { from: BE, to: DB, label: \"SELECT / INSERT user\" }\n  - { from: DB, to: BE, label: \"user row\", kind: dashed }\n  - { from: BE, to: FE, label: \"JWT token\", kind: dashed }\n  - { from: FE, to: U,  label: \"登录完成\", kind: dashed }\n\nnotes:\n  - { position: over, over: \"BE\", text: \"首次登录自动建账\" }\n\nFile v1.1.0:examples/state.yaml\n\ntype: state\ntitle: 订单状态机\ndirection: LR\n\nnodes:\n  - { id: Draft,     label: 草稿 }\n  - { id: Pending,   label: 待付款 }\n  - { id: Paid,      label: 已付款 }\n  - { id: Shipping,  label: 配送中 }\n  - { id: Delivered, label: 已送达 }\n  - { id: Cancelled, label: 已取消 }\n\nedges:\n  - { from: \"[*]\",      to: Draft,     label: 下单 }\n  - { from: Draft,      to: Pending,   label: 确认 }\n  - { from: Pending,    to: Paid,      label: 付款 }\n  - { from: Pending,    to: Cancelled, label: 超时 }\n  - { from: Paid,       to: Shipping,  label: 发货 }\n  - { from: Shipping,   to: Delivered, label: 签收 }\n  - { from: Delivered,  to: \"[*]\" }\n  - { from: Cancelled,  to: \"[*]\" }\n\nFile v1.1.0:examples/swimlane_mermaid.yaml\n\ntype: swimlane_mermaid\ntitle: 订单发货流程（Mermaid 泳道，不需要 Java）\ndirection: LR\n\nnodes:\n  - { id: a1, label: 下单,       lane: 客户 }\n  - { id: a2, label: 付款,       lane: 客户 }\n  - { id: b1, label: 核对订单,    lane: 客服 }\n  - { id: b2, label: 分配仓库,    lane: 客服 }\n  - { id: c1, label: 拣货,       lane: 仓库 }\n  - { id: c2, label: 打包发货,    lane: 仓库 }\n  - { id: d1, label: 快递配送,    lane: 快递 }\n  - { id: d2, label: 妥投,       lane: 快递 }\n\nedges:\n  - [a1, a2]\n  - [a2, b1]\n  - [b1, b2]\n  - [b2, c1]\n  - [c1, c2]\n  - [c2, d1]\n  - [d1, d2]\n\nFile v1.1.0:examples/swimlane.yaml\n\ntype: swimlane\ntitle: 采购审批流程（泳道图，PlantUML）\n\nlanes:\n  - name: 申请人\n    steps:\n      - { id: A1, label: 填写采购申请 }\n      - { id: A2, label: 提交审批 }\n\n  - name: 部门经理\n    steps:\n      - { id: B1, label: 初审 }\n      - { id: B2, label: \"是否 1 万以上?\", shape: diamond }\n\n  - name: 财务\n    steps:\n      - { id: C1, label: 预算复核 }\n\n  - name: 总经理\n    steps:\n      - { id: D1, label: 终审批准 }\n\n  - name: 系统\n    steps:\n      - { id: E1, label: 自动下单 }\n\nedges:\n  - [A1, A2]\n  - [A2, B1]\n  - [B1, B2]\n  - [B2, C1, \"是\"]\n  - [B2, E1, \"否\"]\n  - [C1, D1]\n  - [D1, E1]\n\nArchive v1.0.0: 14 files, 23067 bytes\n\nFiles: _meta.json (135b), examples/architecture.yaml (1297b), examples/c4_context.yaml (810b), examples/flowchart.yaml (628b), examples/gantt.yaml (883b), examples/sequence.yaml (912b), examples/state.yaml (704b), examples/swimlane_mermaid.yaml (619b), examples/swimlane.yaml (649b), scripts/create-flow-chart.py (4855b), scripts/flowchart_core.py (23762b), scripts/flowchart_render.py (7064b), scripts/styles.py (5616b), SKILL.md (10545b)\n\nFile v1.0.0:SKILL.md\n\n---\nname: huo15-flow-chart\ndisplayName: 火一五流程图技能\ndescription: 规范 + 时尚的流程图、泳道图、系统架构图、C4 架构图、时序图、状态图、ER 图、甘特图生成。输入 YAML/JSON 规格或直接 Mermaid/PlantUML/DOT 源码，输出 SVG/PNG/PDF；内置 modern / classic / dark / xiaohongshu 四种风格。触发词：流程图、泳道图、时序图、状态图、ER 图、系统架构图、C4 图、画流程图、生成流程图。\nversion: 1.0.0\naliases:\n  - 火一五流程图\n  - 火一五流程图技能\n  - 流程图\n  - 流程图生成\n  - 画流程图\n  - 泳道图\n  - 时序图\n  - 状态图\n  - 甘特图\n  - ER图\n  - 架构图\n  - 系统架构图\n  - C4 架构图\n  - flowchart\n  - flow-chart\n  - diagram\n  - mermaid\ndependencies:\n  python-packages:\n    - pyyaml\n  external:\n    - name: \"@mermaid-js/mermaid-cli\"\n      install: \"npm i -g @mermaid-js/mermaid-cli\"\n      notes: \"渲染 Mermaid 时用\"\n    - name: plantuml\n      install: \"brew install plantuml\"\n      notes: \"只在 type=swimlane 真·泳道图时用\"\n    - name: graphviz\n      install: \"brew install graphviz\"\n      notes: \"复杂网络拓扑可选\"\n---\n\n# 火一五流程图技能 v1.0\n\n> 规范 + 时尚的流程图 / 架构图 / 泳道图 / 时序图 / 状态图生成器 — 青岛火一五信息科技有限公司\n\n---\n\n## 一、核心能力\n\n1. **十三种图表** —\n   | type                 | 用途                               | 渲染引擎 |\n   |---------------------|-----------------------------------|---------|\n   | `flowchart`          | 普通流程图                         | Mermaid |\n   | `architecture`       | 系统架构图（分层 + 分组）           | Mermaid |\n   | `swimlane`           | 真·泳道图（PlantUML `\\|lane\\|`）    | PlantUML |\n   | `swimlane_mermaid`   | 泳道风格（不需要 Java）             | Mermaid |\n   | `sequence`           | 时序图                             | Mermaid / PlantUML |\n   | `state`              | 状态图                             | Mermaid |\n   | `gantt`              | 甘特图                             | Mermaid |\n   | `er`                 | ER 图                              | Mermaid |\n   | `class`              | UML 类图                           | Mermaid |\n   | `journey`            | 用户旅程                           | Mermaid |\n   | `pie`                | 饼图                               | Mermaid |\n   | `c4_context`         | C4 上下文图（L1）                   | Mermaid |\n   | `c4_container`       | C4 容器图（L2）                     | Mermaid |\n\n2. **四种风格** — `modern`（现代商务）/ `classic`（经典稳重）/ `dark`（暗色霓虹）/ `xiaohongshu`（小红书暖奶油）。中文别名：现代、经典、暗色、小红书。\n\n3. **三种输入** —\n   - **YAML/JSON 规格**（推荐，可读性好）\n   - **Mermaid 源码**（`.mmd`）直接传入，加 style 注入\n   - **PlantUML 源码**（`.puml`）直接传入\n\n4. **四种输出** — `.svg` / `.png` / `.pdf`（调渲染器）；`.mmd` / `.puml` / `.dot`（只导出源码，自己复制到在线编辑器）。\n\n5. **中文友好** — 内置 PingFang SC / Microsoft YaHei / Noto Sans CJK 字体栈。\n\n---\n\n## 二、快速开始\n\n### 2.1 准备渲染器（任选）\n\n```bash\n# 方案 A：Mermaid（推荐，覆盖 90% 场景）\nnpm i -g @mermaid-js/mermaid-cli\n\n# 方案 B：PlantUML（泳道图必须）\nbrew install plantuml        # macOS\n# apt install plantuml       # Debian/Ubuntu\n\n# 方案 C：Graphviz（网络拓扑可选）\nbrew install graphviz\n\n# Python 依赖\npip install pyyaml\n```\n\n### 2.2 最短上手\n\n```bash\n# 从 YAML 规格生成系统架构图 PNG\npython3 scripts/create-flow-chart.py \\\n  -i examples/architecture.yaml \\\n  -o /tmp/arch.png \\\n  --style modern\n\n# 泳道图（真·PlantUML）\npython3 scripts/create-flow-chart.py \\\n  -i examples/swimlane.yaml \\\n  -o /tmp/lane.svg\n\n# Mermaid 源码直接渲染\npython3 scripts/create-flow-chart.py \\\n  -i flow.mmd \\\n  -o /tmp/flow.pdf \\\n  --style xiaohongshu\n\n# 同时导出多种格式\npython3 scripts/create-flow-chart.py \\\n  -i examples/gantt.yaml \\\n  -o /tmp/gantt.png \\\n  --also svg,pdf,mmd\n\n# 只看生成的源码（不渲染，用于在线编辑器）\npython3 scripts/create-flow-chart.py \\\n  -i examples/c4_context.yaml \\\n  -o /dev/null --dump-source\n```\n\n---\n\n## 三、YAML 规格速查\n\n### 3.1 流程图 `flowchart`\n\n```yaml\ntype: flowchart\ntitle: 用户下单流程\ndirection: TB          # TB | LR | BT | RL\n\nnodes:\n  - { id: start, label: 开始, shape: stadium }\n  - { id: check, label: 是否有商品?, shape: diamond }\n  - { id: pay,   label: 结算付款 }\n\nedges:\n  - { from: start, to: check }\n  - { from: check, to: pay, label: 是 }\n```\n\n**形状一览**：`rect`（默认）/ `round` / `stadium` / `diamond`（菱形判断）/ `hexagon` / `circle` / `cylinder`（数据库）/ `subroutine` / `parallelogram` / `trapezoid`。\n\n**边类型（`kind`）**：`solid`（默认实线）/ `dashed` / `thick` / `dotted` / `bidir`（双向）。\n\n### 3.2 系统架构图 `architecture`\n\n用 `groups` 分层 + `nodes.group` 归组：\n\n```yaml\ntype: architecture\ntitle: 火一五 SaaS 系统架构\ngroups:\n  - { id: frontend, label: 前端层,  children: [web, mobile] }\n  - { id: backend,  label: 业务层,  children: [svc_user, svc_order] }\n  - { id: data,     label: 数据层,  children: [pg, redis] }\nnodes:\n  - { id: web, label: Web 门户 }\n  - { id: pg,  label: PostgreSQL, shape: cylinder }\n  # ...\nedges:\n  - [web, svc_user]\n  - [svc_user, pg]\n```\n\n### 3.3 泳道图 `swimlane`（真·PlantUML）\n\n```yaml\ntype: swimlane\ntitle: 采购审批流程\nlanes:\n  - name: 申请人\n    steps:\n      - { id: A1, label: 填写采购申请 }\n      - { id: A2, label: 提交审批 }\n  - name: 部门经理\n    steps:\n      - { id: B1, label: 初审 }\nedges:\n  - [A1, A2]\n  - [A2, B1]\n```\n\n> 需要 `plantuml` 命令；如无 Java 环境可用 `type: swimlane_mermaid` 替代。\n\n### 3.4 时序图 `sequence`\n\n```yaml\ntype: sequence\ntitle: 用户登录\nauto_number: true\nnodes:\n  - { id: U,  label: 用户,   shape: actor }\n  - { id: FE, label: 前端 }\n  - { id: BE, label: 后端 }\nedges:\n  - { from: U,  to: FE, label: 点击登录 }\n  - { from: FE, to: BE, label: POST /login }\n  - { from: BE, to: FE, label: JWT token, kind: dashed }\nnotes:\n  - { position: over, over: BE, text: \"首次登录自动建账\" }\n```\n\n### 3.5 状态图 `state`\n\n```yaml\ntype: state\ntitle: 订单状态机\ndirection: LR\nnodes:\n  - { id: Pending, label: 待付款 }\n  - { id: Paid,    label: 已付款 }\nedges:\n  - { from: \"[*]\", to: Pending, label: 下单 }\n  - { from: Pending, to: Paid, label: 付款 }\n```\n\n### 3.6 甘特图 `gantt`\n\n```yaml\ntype: gantt\ntitle: Q2 路线图\ndateFormat: YYYY-MM-DD\naxisFormat: \"%m-%d\"\nsections:\n  - name: 基建\n    tasks:\n      - { name: 服务器扩容, id: i1, status: done,   start: 2026-04-01, duration: 5d }\n      - { name: 监控升级,   id: i2, status: active, start: 2026-04-06, duration: 10d }\n```\n\n状态值：`done` / `active` / `crit`（关键路径红）/ `milestone`（里程碑）/ 留空即未开始。\n\n### 3.7 C4 架构图 `c4_context` / `c4_container`\n\n```yaml\ntype: c4_context\ntitle: 火一五 SaaS 上下文图\nnodes:\n  - { id: customer, label: 企业客户\\n使用 SaaS 的企业,  shape: person }\n  - { id: huo15,    label: 火一五 SaaS\\n企业数字化平台,  shape: system }\n  - { id: wecom,    label: 企业微信\\nIM,               shape: system_ext }\nedges:\n  - { from: customer, to: huo15, label: 使用 }\n  - { from: huo15,    to: wecom, label: OAuth }\n```\n\nC4 shape：`person` / `person_ext` / `system` / `system_ext` / `container` / `container_db`（数据库）/ `component`。\n\n### 3.8 其他\n\n- `er` — ER 图，label 用 `\\n` 分隔字段\n- `class` — UML 类图，edge kind 支持 `extends` / `implements` / `composition` / `aggregation` / `dependency` / `association`\n- `journey` — 用户旅程，用 `sections[].tasks[]`，每个 task 有 score (1-5) 和 actors\n- `pie` — 饼图，用 `items` 数组\n\n---\n\n## 四、Python API\n\n```python\nimport sys; sys.path.insert(0, 'scripts')\n\nfrom flowchart_core import parse, to_mermaid, to_plantuml\nfrom flowchart_render import render\nfrom styles import get_style, to_mermaid_init_directive\n\nfc = parse('spec.yaml')\nstyle = get_style('xiaohongshu')\ncode = to_mermaid(fc, to_mermaid_init_directive(style))\nrender(code, '/tmp/out.svg', engine='mermaid')\n```\n\n主要接口：\n\n| 函数                              | 说明 |\n|---------------------------------|------|\n| `parse(path_or_text, hint='auto')` | YAML/JSON/Mermaid/PlantUML/DOT → FlowChart |\n| `to_mermaid(fc, init_directive)`   | → Mermaid 源码 |\n| `to_plantuml(fc, skin)`            | → PlantUML 源码（只支持 swimlane/sequence）|\n| `to_dot(fc, style)`                | → Graphviz DOT |\n| `render(source, out, engine)`      | 调用 mmdc/plantuml/dot 渲染 |\n| `get_style(key)`                   | 获取 Style 对象（中文别名也能识别）|\n| `to_mermaid_init_directive(style)` | 返回 `%%{init: ...}%%` 行 |\n| `to_plantuml_skinparam(style)`     | 返回 PlantUML skinparam |\n\n---\n\n## 五、与其他技能的边界\n\n| 需求 | 用哪个技能 |\n|------|----------|\n| 自由层级的思维导图，要导出 XMind | **huo15-mind-map** |\n| 流程图 / 架构图 / 泳道图 / 时序图 | **huo15-flow-chart**（本技能）|\n| 工程制图 / 原型图 | 不在范围内，建议 drawio / Figma |\n| 数据仪表盘 | 用图表库（Chart.js / ECharts / matplotlib） |\n\n---\n\n## 六、触发词\n\n- 流程图 / 画流程图 / 生成流程图 / 做一张流程图\n- 泳道图 / 跨职能流程图 / swim lane\n- 系统架构图 / 架构图 / C4 图 / C4 上下文 / C4 容器\n- 时序图 / 序列图 / sequence diagram\n- 状态图 / 状态机 / state diagram\n- ER 图 / 实体关系图\n- 甘特图 / gantt\n- Mermaid / PlantUML\n\n---\n\n## 七、版本历史\n\n- **v1.0.0（当前）** — 首版。\n  - 支持 13 种图表（flowchart / architecture / swimlane / swimlane_mermaid / sequence / state / gantt / er / class / journey / pie / c4_context / c4_container）\n  - 3 种输入（YAML/JSON、Mermaid、PlantUML）、6 种输出（svg/png/pdf/mmd/puml/dot）\n  - 4 种风格：modern / classic / dark / xiaohongshu（带中文别名）\n  - 渲染器自动探测：mmdc > npx > docker（Mermaid）；plantuml > java+jar > docker（PlantUML）；dot（Graphviz）\n\n---\n\n**技术支持：** 青岛火一五信息科技有限公司\n\nFile v1.0.0:_meta.json\n\n{\n  \"ownerId\": \"kn7byevkn40d6z4p7ghdb097z983tj33\",\n  \"slug\": \"huo15-flow-chart\",\n  \"version\": \"1.0.0\",\n  \"publishedAt\": 1776922671683\n}\n\nFile v1.0.0:examples/architecture.yaml\n\ntype: architecture\ntitle: 火一五 SaaS 系统架构\ndirection: TB\n\ngroups:\n  - id: frontend\n    label: 前端层\n    children: [web, mobile, admin]\n  - id: gateway\n    label: 网关层\n    children: [api_gw]\n  - id: backend\n    label: 业务层\n    children: [svc_user, svc_order, svc_content, svc_ai]\n  - id: data\n    label: 数据层\n    children: [pg, redis, minio]\n\nnodes:\n  - { id: web,         label: Web 门户, shape: rect }\n  - { id: mobile,      label: H5 / 小程序, shape: rect }\n  - { id: admin,       label: 管理后台, shape: rect }\n  - { id: api_gw,      label: API 网关\\n(Nginx + Auth), shape: hexagon }\n  - { id: svc_user,    label: 用户服务 }\n  - { id: svc_order,   label: 订单服务 }\n  - { id: svc_content, label: 内容服务 }\n  - { id: svc_ai,      label: AI 服务\\n(龙虾 OpenClaw) }\n  - { id: pg,          label: PostgreSQL, shape: cylinder }\n  - { id: redis,       label: Redis, shape: cylinder }\n  - { id: minio,       label: 对象存储 MinIO, shape: cylinder }\n\nedges:\n  - [web, api_gw]\n  - [mobile, api_gw]\n  - [admin, api_gw]\n  - [api_gw, svc_user]\n  - [api_gw, svc_order]\n  - [api_gw, svc_content]\n  - [api_gw, svc_ai]\n  - [svc_user, pg]\n  - [svc_order, pg]\n  - [svc_order, redis]\n  - [svc_content, pg]\n  - [svc_content, minio]\n  - [svc_ai, redis]\n\nFile v1.0.0:examples/c4_context.yaml\n\ntype: c4_context\ntitle: 火一五 SaaS 上下文图（C4 L1）\n\nnodes:\n  - id: customer\n    label: 企业客户\\n采购/使用 SaaS 的企业\n    shape: person\n  - id: admin\n    label: 火一五运维\\n内部团队\n    shape: person\n  - id: huo15\n    label: 火一五 SaaS\\n企业数字化平台\n    shape: system\n  - id: wecom\n    label: 企业微信\\nIM / 通讯录\n    shape: system_ext\n  - id: odoo\n    label: Odoo ERP\\nCRM / 财务\n    shape: system_ext\n  - id: openai\n    label: OpenAI / 百炼\\n大模型 API\n    shape: system_ext\n\nedges:\n  - { from: customer, to: huo15,  label: 使用 }\n  - { from: admin,    to: huo15,  label: 运维 }\n  - { from: huo15,    to: wecom,  label: OAuth / 消息推送 }\n  - { from: huo15,    to: odoo,   label: XML-RPC }\n  - { from: huo15,    to: openai, label: HTTPS }\n\nFile v1.0.0:examples/flowchart.yaml\n\ntype: flowchart\ntitle: 用户下单流程\ndirection: TB\n\nnodes:\n  - id: n_start\n    label: 开始\n    shape: stadium\n  - id: login\n    label: 用户登录\n  - id: check\n    label: \"是否有商品?\"\n    shape: diamond\n  - id: add\n    label: 选购商品\n  - id: pay\n    label: 结算付款\n  - id: confirm\n    label: 订单确认\n  - id: n_end\n    label: 结束\n    shape: stadium\n\nedges:\n  - { from: n_start, to: login }\n  - { from: login, to: check }\n  - { from: check, to: add, label: 否 }\n  - { from: check, to: pay, label: 是 }\n  - { from: add, to: check }\n  - { from: pay, to: confirm }\n  - { from: confirm, to: n_end }\n\nFile v1.0.0:examples/gantt.yaml\n\ntype: gantt\ntitle: 火一五 Q2 产品路线图\ndateFormat: YYYY-MM-DD\naxisFormat: \"%m-%d\"\n\nsections:\n  - name: 基建\n    tasks:\n      - { name: 服务器扩容,   id: infra1, status: done,    start: 2026-04-01, duration: 5d }\n      - { name: 监控升级,     id: infra2, status: active,  start: 2026-04-06, duration: 10d }\n\n  - name: 功能迭代\n    tasks:\n      - { name: OpenClaw Enhance v2026.4, id: f1, status: done,   start: 2026-04-01, duration: 14d }\n      - { name: 知识库 shared scope,      id: f2, status: active, start: 2026-04-15, duration: 7d }\n      - { name: 小红书选题技能,            id: f3, status: \"\",     start: 2026-04-22, duration: 5d }\n\n  - name: 发布\n    tasks:\n      - { name: v2026.4.11 RC,  id: r1, status: crit, start: 2026-04-18, duration: 3d }\n      - { name: v2026.4.11 GA,  id: r2, status: milestone, start: 2026-04-24, duration: 0d }\n\nFile v1.0.0:examples/sequence.yaml\n\ntype: sequence\ntitle: 用户登录时序图\nauto_number: true\n\nnodes:\n  - { id: U,   label: 用户,        shape: actor }\n  - { id: FE,  label: 前端 Web }\n  - { id: BE,  label: 后端 API }\n  - { id: DB,  label: 数据库 }\n  - { id: WX,  label: 企业微信 }\n\nedges:\n  - { from: U,  to: FE, label: \"点击登录\" }\n  - { from: FE, to: WX, label: \"OAuth 跳转\" }\n  - { from: WX, to: FE, label: \"回调 code\", kind: dashed }\n  - { from: FE, to: BE, label: \"POST /login {code}\" }\n  - { from: BE, to: WX, label: \"exchange code for user_id\" }\n  - { from: WX, to: BE, label: \"user_id\", kind: dashed }\n  - { from: BE, to: DB, label: \"SELECT / INSERT user\" }\n  - { from: DB, to: BE, label: \"user row\", kind: dashed }\n  - { from: BE, to: FE, label: \"JWT token\", kind: dashed }\n  - { from: FE, to: U,  label: \"登录完成\", kind: dashed }\n\nnotes:\n  - { position: over, over: \"BE\", text: \"首次登录自动建账\" }\n\nFile v1.0.0:examples/state.yaml\n\ntype: state\ntitle: 订单状态机\ndirection: LR\n\nnodes:\n  - { id: Draft,     label: 草稿 }\n  - { id: Pending,   label: 待付款 }\n  - { id: Paid,      label: 已付款 }\n  - { id: Shipping,  label: 配送中 }\n  - { id: Delivered, label: 已送达 }\n  - { id: Cancelled, label: 已取消 }\n\nedges:\n  - { from: \"[*]\",      to: Draft,     label: 下单 }\n  - { from: Draft,      to: Pending,   label: 确认 }\n  - { from: Pending,    to: Paid,      label: 付款 }\n  - { from: Pending,    to: Cancelled, label: 超时 }\n  - { from: Paid,       to: Shipping,  label: 发货 }\n  - { from: Shipping,   to: Delivered, label: 签收 }\n  - { from: Delivered,  to: \"[*]\" }\n  - { from: Cancelled,  to: \"[*]\" }\n\nFile v1.0.0:examples/swimlane_mermaid.yaml\n\ntype: swimlane_mermaid\ntitle: 订单发货流程（Mermaid 泳道，不需要 Java）\ndirection: LR\n\nnodes:\n  - { id: a1, label: 下单,       lane: 客户 }\n  - { id: a2, label: 付款,       lane: 客户 }\n  - { id: b1, label: 核对订单,    lane: 客服 }\n  - { id: b2, label: 分配仓库,    lane: 客服 }\n  - { id: c1, label: 拣货,       lane: 仓库 }\n  - { id: c2, label: 打包发货,    lane: 仓库 }\n  - { id: d1, label: 快递配送,    lane: 快递 }\n  - { id: d2, label: 妥投,       lane: 快递 }\n\nedges:\n  - [a1, a2]\n  - [a2, b1]\n  - [b1, b2]\n  - [b2, c1]\n  - [c1, c2]\n  - [c2, d1]\n  - [d1, d2]\n\nFile v1.0.0:examples/swimlane.yaml\n\ntype: swimlane\ntitle: 采购审批流程（泳道图，PlantUML）\n\nlanes:\n  - name: 申请人\n    steps:\n      - { id: A1, label: 填写采购申请 }\n      - { id: A2, label: 提交审批 }\n\n  - name: 部门经理\n    steps:\n      - { id: B1, label: 初审 }\n      - { id: B2, label: \"是否 1 万以上?\", shape: diamond }\n\n  - name: 财务\n    steps:\n      - { id: C1, label: 预算复核 }\n\n  - name: 总经理\n    steps:\n      - { id: D1, label: 终审批准 }\n\n  - name: 系统\n    steps:\n      - { id: E1, label: 自动下单 }\n\nedges:\n  - [A1, A2]\n  - [A2, B1]\n  - [B1, B2]\n  - [B2, C1, \"是\"]\n  - [B2, E1, \"否\"]\n  - [C1, D1]\n  - [D1, E1]","readmeExcerpt":"Skill: Huo15 Flow Chart Owner: zhaobod1 Summary: 2026 现代美学的流程图、泳道图、系统架构图、C4 架构图、时序图、状态图、ER 图、甘特图生成。Linear/Vercel/Radix 配色 + 软阴影 + 圆角 + 判断色强调 + 容器分层。输入 YAML/JSON 规格或 Mermaid/PlantUML/DOT 源码，输出 SVG/PNG/PDF/dr... Tags: latest:1.4.0 Version history: v1.4.0 | 2026-05-29T06:10:52.304Z | auto huo15-flow-chart v1.4.0 - Added 3 new modern design styles: editorial (NYT magazine style), bauhaus (red-yellow-blue geometric), swis","codeSnippets":[],"executableExamples":[{"language":"bash","snippet":"# 方案 A：Mermaid（推荐，覆盖 90% 场景）\nnpm i -g @mermaid-js/mermaid-cli\n\n# 方案 B：PlantUML（C4-PlantUML / 泳道图必须）\nbrew install plantuml        # macOS\n# apt install plantuml       # Ubuntu/Debian\n\n# 方案 C：Graphviz（网络拓扑可选）\nbrew install graphviz\n\n# Python 依赖\npip install pyyaml"},{"language":"bash","snippet":"# 从 YAML 规格生成 PNG（默认 modern 风格）\npython3 scripts/create-flow-chart.py \\\n  -i examples/architecture.yaml \\\n  -o /tmp/arch.png\n\n# 泳道图（真·PlantUML）\npython3 scripts/create-flow-chart.py \\\n  -i examples/swimlane.yaml \\\n  -o /tmp/lane.svg\n\n# 导出 draw.io 源文件（精美编辑）\npython3 scripts/create-flow-chart.py \\\n  -i examples/architecture.yaml \\\n  -o /tmp/arch.drawio\n\n# 同时导出多种格式（一键到位）\npython3 scripts/create-flow-chart.py \\\n  -i examples/architecture.yaml \\\n  -o /tmp/arch.png \\\n  --export-formats svg,pdf,mmd,drawio\n\n# 风格色卡清单（终端 ANSI 预览）\npython3 scripts/create-flow-chart.py --list-styles\n\n# 风格画廊：一张图里 14 种风格对比\npython3 scripts/create-flow-chart.py \\\n  -i examples/showcase.yaml --gallery \\\n  -o /tmp/gallery.png --gallery-cols 5\n\n# 高清 PNG（4K 屏 / 印刷级，v1.3.3）\npython3 scripts/create-flow-chart.py \\\n  -i examples/showcase.yaml \\\n  -o /tmp/print.png --style modern --scale 4\n\n# 普通屏 PNG（更小文件）\npython3 scripts/create-flow-chart.py \\\n  -i examples/flowchart.yaml \\\n  -o /tmp/preview.png --scale 1\n\n# draw.io 精美主题（带投影）\npython3 scripts/create-flow-chart.py \\\n  -i examples/architecture.yaml \\\n  -o /tmp/arch.png \\\n  --theme modern --font \"Microsoft YaHei\" --shadow\n\n# C4-PlantUML（专业 C4 图）\npython3 scripts/create-flow-chart.py \\\n  -i examples/c4_context.yaml \\\n  -o /tmp/c4.puml \\\n  --engine plantuml"},{"language":"yaml","snippet":"type: flowchart\ntitle: 用户下单流程\ndirection: TB          # TB | LR | BT | RL\n\nnodes:\n  - { id: start, label: 开始, shape: stadium }\n  - { id: check, label: 是否有商品?, shape: diamond }\n  - { id: pay,   label: 结算付款 }\n\nedges:\n  - { from: start, to: check }\n  - { from: check, to: pay, label: 是 }"},{"language":"yaml","snippet":"edges:\n  - { from: check, to: pay,  semantic: success, label: \"通过 ✓\" }\n  - { from: check, to: back, semantic: error,   label: \"失败 ✗\" }\n  - { from: build, to: deploy, semantic: warning, kind: dashed }\n  - { from: audit, to: report, semantic: info }"},{"language":"yaml","snippet":"nodes:\n  - { id: login, label: \":key: 登录\" }         # 🔑 登录\n  - { id: db,    label: \":db: 订单库\", shape: cylinder }  # 💾 订单库\n  - { id: ship,  label: \":ship: 发货\" }        # 🚚 发货"},{"language":"yaml","snippet":"type: architecture\ntitle: 火一五 SaaS 系统架构\ngroups:\n  - { id: frontend, label: 前端层,  children: [web, mobile] }\n  - { id: backend,  label: 业务层,  children: [svc_user, svc_order] }\n  - { id: data,     label: 数据层,  children: [pg, redis] }\nnodes:\n  - { id: web, label: Web 门户 }\n  - { id: pg,  label: PostgreSQL, shape: cylinder }\nedges:\n  - [web, svc_user]\n  - [svc_user, pg]"}],"parameters":null,"dependencies":[],"permissions":[],"extractedFiles":[{"path":"SKILL.md","content":"---\nname: huo15-flow-chart\ndisplayName: 火一五流程图技能\ndescription: 2026 现代美学的流程图、泳道图、系统架构图、C4 架构图、时序图、状态图、ER 图、甘特图生成。Linear/Vercel/Radix 配色 + 软阴影 + 圆角 + 判断色强调 + 容器分层。输入 YAML/JSON 规格或 Mermaid/PlantUML/DOT 源码，输出 SVG/PNG/PDF/draw.io；PDF 默认单页自适应画布不分页；内置 17 种风格（含 v1.4 新增 editorial NYT 杂志 / bauhaus 红黄蓝几何 / swiss 国际主义 Helvetica 网格 三个有性格风格）；支持 draw.io 源文件 + C4-PlantUML + 架构 Tier 分层。触发词：流程图、泳道图、时序图、状态图、ER 图、系统架构图、C4 图、画流程图、生成流程图、编辑杂志风、纽约客、NYT、Monocle、包豪斯、三原色、瑞士国际主义、Helvetica 网格、Müller-Brockmann。\nversion: 1.4.0\naliases:\n  - 火一五流程图\n  - 火一五流程图技能\n  - 流程图\n  - 流程图生成\n  - 画流程图\n  - 泳道图\n  - 时序图\n  - 状态图\n  - 甘特图\n  - ER图\n  - 架构图\n  - 系统架构图\n  - C4 架构图\n  - flowchart\n  - flow-chart\n  - diagram\n  - mermaid\n  - draw.io\ndependencies:\n  python-packages:\n    - pyyaml\n  external:\n    - name: \"@mermaid-js/mermaid-cli\"\n      install: \"npm i -g @mermaid-js/mermaid-cli\"\n      notes: \"渲染 Mermaid 时用（mmdc 命令）\"\n    - name: plantuml\n      install: \"brew install plantuml\"\n      notes: \"PlantUML / C4-PlantUML 渲染（泳道图和 C4 图必须）\"\n    - name: graphviz\n      install: \"brew install graphviz\"\n      notes: \"Graphviz DOT 渲染（可选）\"\n---\n\n# 火一五流程图技能 v1.3.3\n\n> 2026 现代美学的流程图 / 架构图 / 泳道图 / C4 架构图 / 时序图生成器 — 青岛火一五信息科技有限公司\n>\n> 设计取向：Linear / Vercel / Radix / Stripe 软色系 + 双层柔和阴影 + 圆角节点 + 判断菱形 accent 强调色 + PDF 单页自适应。\n\n---\n\n## 一、核心能力\n\n### 1.1 支持的图表类型\n\n| type                 | 用途                    | 渲染引擎          | draw.io |\n|---------------------|-----------------------|-----------------|---------|\n| `flowchart`          | 普通流程图                | Mermaid         | ✅       |\n| `architecture`        | 系统架构图（支持 Tier 分层）  | Mermaid         | ✅       |\n| `swimlane`           | 真·泳道图（PlantUML）     | PlantUML        | ❌       |\n| `swimlane_mermaid`   | 泳道风格（Mermaid，不需要 Java）| Mermaid | ✅ |\n| `sequence`           | 时序图                  | Mermaid/PlantUML | ✅       |\n| `state`              | 状态图                  | Mermaid         | ✅       |\n| `gantt`              | 甘特图                  | Mermaid         | ✅       |\n| `er`                 | ER 图                  | Mermaid         | ✅       |\n| `class`              | UML 类图                | Mermaid         | ✅       |\n| `journey`            | 用户旅程                 | Mermaid         | ✅       |\n| `pie`                | 饼图                   | Mermaid         | ✅       |\n| `c4_context`          | C4 上下文图（L1）          | Mermaid / **PlantUML** | ✅ |\n| `c4_container`        | C4 容器图（L2）            | Mermaid / **PlantUML** | ✅ |\n| `mindmap`            | 简单思维导图               | Mermaid         | ✅       |\n\n### 1.2 输出格式\n\n| 格式   | 类型   | 说明 |\n|--------|--------|------|\n| `.svg` | 矢量图  | 浏览器直接打开，最推荐（任意缩放不糊） |\n| `.png` | 位图    | **默认 3× 高清**（≈288 DPI 印刷级），适合 PPT / 文档 |\n| `.pdf` | 矢量 PDF | 适合打印；**默认单页自适应不分页** |\n| `.mmd` | Mermaid 源码 | 复制到 [mermaid.live](https://mermaid.live) 编辑 |\n| `.puml` | PlantUML 源码 | 复制到 PlantUML 编辑器 |\n| `.drawio` | **draw.io 源文件** | 用 draw.io 桌面版打开，精美编辑 |\n| `.dot` | Graphviz DOT 源码 | 复杂网络拓扑 |\n\n**`--scale N`（v1.3.3）**：高清倍率，作用于 PNG。默认 `3.0`（≈288 DPI 印刷级）。\n- `1.0` 普通屏（96 "},{"path":"_meta.json","content":"{\n  \"ownerId\": \"kn7byevkn40d6z4p7ghdb097z983tj33\",\n  \"slug\": \"huo15-flow-chart\",\n  \"version\": \"1.4.0\",\n  \"publishedAt\": 1780035052304\n}"},{"path":"skill-card.md","content":"## Description:\n\nGenerates modern flowcharts, swimlane diagrams, architecture diagrams, C4 diagrams, sequence diagrams, state diagrams, ER diagrams, and Gantt charts from YAML, JSON, Mermaid, PlantUML, or DOT inputs.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[zhaobod1](https://clawhub.ai/user/zhaobod1)\n\n### License/Terms of Use:\n\nMIT\n\n## Use Case:\n\nDevelopers, architects, and technical writers use this skill to turn structured diagram specifications or diagram source code into presentation-ready diagrams and editable diagram source files. It is useful for documenting software flows, systems, timelines, and architecture views.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: The security review says the skill can automatically run unpinned external renderers and Docker or Chromium with weak sandboxing.\n\nMitigation: Use only trusted publisher releases, prefer preinstalled pinned renderer binaries, and avoid the automatic npx and Docker fallbacks.\n\nRisk: Rendering untrusted diagram source or writing outputs to user-supplied paths can affect a sensitive machine or working directory.\n\nMitigation: Render only trusted diagram inputs and run the skill in a dedicated working directory with controlled output paths.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/zhaobod1/skills/huo15-flow-chart)\n- [Mermaid Live Editor](https://mermaid.live)\n- [Flowchart core implementation](scripts/flowchart_core.py)\n\n## Skill Output:\n\n**Output Type(s):** [Files, Code, Shell commands, Configuration instructions, Guidance]\n\n**Output Format:** [Markdown guidance with shell commands plus generated SVG, PNG, PDF, Mermaid, PlantUML, DOT, and draw.io files]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [PNG output supports adjustable high-DPI scaling; PDF output defaults to a single fitted page.]\n\n## Skill Version(s):\n\n1.4.0 (source: frontmatter and server release metadata)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment."},{"path":"examples/architecture.yaml","content":"type: architecture\ntitle: 火一五 SaaS 系统架构\ndirection: TB\n\ngroups:\n  - id: frontend\n    label: 前端层\n    children: [web, mobile, admin]\n  - id: gateway\n    label: 网关层\n    children: [api_gw]\n  - id: backend\n    label: 业务层\n    children: [svc_user, svc_order, svc_content, svc_ai]\n  - id: data\n    label: 数据层\n    children: [pg, redis, minio]\n\nnodes:\n  - { id: web,         label: Web 门户, shape: rect }\n  - { id: mobile,      label: H5 / 小程序, shape: rect }\n  - { id: admin,       label: 管理后台, shape: rect }\n  - { id: api_gw,      label: API 网关\\n(Nginx + Auth), shape: hexagon }\n  - { id: svc_user,    label: 用户服务 }\n  - { id: svc_order,   label: 订单服务 }\n  - { id: svc_content, label: 内容服务 }\n  - { id: svc_ai,      label: AI 服务\\n(龙虾 OpenClaw) }\n  - { id: pg,          label: PostgreSQL, shape: cylinder }\n  - { id: redis,       label: Redis, shape: cylinder }\n  - { id: minio,       label: 对象存储 MinIO, shape: cylinder }\n\nedges:\n  - [web, api_gw]\n  - [mobile, api_gw]\n  - [admin, api_gw]\n  - [api_gw, svc_user]\n  - [api_gw, svc_order]\n  - [api_gw, svc_content]\n  - [api_gw, svc_ai]\n  - [svc_user, pg]\n  - [svc_order, pg]\n  - [svc_order, redis]\n  - [svc_content, pg]\n  - [svc_content, minio]\n  - [svc_ai, redis]"},{"path":"examples/c4_context.yaml","content":"type: c4_context\ntitle: 火一五 SaaS 上下文图（C4 L1）\n\nnodes:\n  - id: customer\n    label: 企业客户\\n采购/使用 SaaS 的企业\n    shape: person\n  - id: admin\n    label: 火一五运维\\n内部团队\n    shape: person\n  - id: huo15\n    label: 火一五 SaaS\\n企业数字化平台\n    shape: system\n  - id: wecom\n    label: 企业微信\\nIM / 通讯录\n    shape: system_ext\n  - id: odoo\n    label: Odoo ERP\\nCRM / 财务\n    shape: system_ext\n  - id: openai\n    label: OpenAI / 百炼\\n大模型 API\n    shape: system_ext\n\nedges:\n  - { from: customer, to: huo15,  label: 使用 }\n  - { from: admin,    to: huo15,  label: 运维 }\n  - { from: huo15,    to: wecom,  label: OAuth / 消息推送 }\n  - { from: huo15,    to: odoo,   label: XML-RPC }\n  - { from: huo15,    to: openai, label: HTTPS }"}],"languages":[],"docsSourceLabel":"CLAWHUB","editorialOverview":"2026 现代美学的流程图、泳道图、系统架构图、C4 架构图、时序图、状态图、ER 图、甘特图生成。Linear/Vercel/Radix 配色 + 软阴影 + 圆角 + 判断色强调 + 容器分层。输入 YAML/JSON 规格或 Mermaid/PlantUML/DOT 源码，输出 SVG/PNG/PDF/dr... Skill: Huo15 Flow Chart Owner: zhaobod1 Summary: 2026 现代美学的流程图、泳道图、系统架构图、C4 架构图、时序图、状态图、ER 图、甘特图生成。Linear/Vercel/Radix 配色 + 软阴影 + 圆角 + 判断色强调 + 容器分层。输入 YAML/JSON 规格或 Mermaid/PlantUML/DOT 源码，输出 SVG/PNG/PDF/dr... Tags: latest:1.4.0 Version history: v1.4.0 | 2026-05-29T06:10:52.304Z | auto huo15-flow-chart v1.4.0 - Added 3 new modern design styles: editorial (NYT magazine style), bauhaus (red-yellow-blue geometric), swis","editorialQuality":{"score":100,"threshold":65,"status":"ready","wordCount":1226,"uniquenessScore":48,"reasons":[]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-10-10T13:58:27.201Z","emptyReason":"No screenshots, media assets, or demo links are available."},"primaryImageUrl":null,"mediaAssetCount":0,"assets":[],"demoUrl":null},"ownerResources":{"evidence":{"source":"unclaimed","verified":false,"confidence":"low","updatedAt":"2026-10-10T13:58:27.201Z","emptyReason":"This page has not been claimed by the agent owner."},"hasCustomPage":false,"customPageUpdatedAt":null,"customLinks":[],"structuredLinks":{"docsUrl":null,"demoUrl":null,"supportUrl":null,"pricingUrl":null,"statusUrl":null},"customPage":null},"relatedAgents":{"evidence":{"source":"protocol-neighbors","verified":false,"confidence":"medium","updatedAt":"2026-10-10T17:37:31.667Z","emptyReason":null},"items":[{"id":"8ebccd8e-3863-4187-8355-c3f14e1f9edf","entityType":"agent","canonicalPath":"/agent/iofficeai-aionui","slug":"iofficeai-aionui","name":"AionUi","description":"Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!","url":"https://github.com/iOfficeAI/AionUi","homepage":"https://www.aionui.com","source":"GITHUB_REPOS","protocols":["MCP","OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-10-09T19:11:12.944Z","createdAt":"2026-02-25T03:38:16.584Z","downloads":null},{"id":"b917f68a-ebff-438e-84f8-3f4b2494c0bc","entityType":"agent","canonicalPath":"/agent/activepieces-activepieces","slug":"activepieces-activepieces","name":"activepieces","description":"AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents","url":"https://github.com/activepieces/activepieces","homepage":"https://www.activepieces.com","source":"GITHUB_REPOS","protocols":["OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-04-15T02:22:12.426Z","createdAt":"2026-02-25T03:38:12.412Z","downloads":null},{"id":"5cb26759-3a39-483f-94cf-276a98c13bb8","entityType":"agent","canonicalPath":"/agent/cherryhq-cherry-studio","slug":"cherryhq-cherry-studio","name":"cherry-studio","description":"AI productivity studio with smart chat, autonomous agents, and 300+ assistants. Unified access to frontier LLMs","url":"https://github.com/CherryHQ/cherry-studio","homepage":"https://cherry-ai.com","source":"GITHUB_REPOS","protocols":["MCP","OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-04-11T14:38:40.986Z","createdAt":"2026-02-25T03:38:19.379Z","downloads":null},{"id":"6f6582d0-5d76-4f0f-b81d-86520247950b","entityType":"agent","canonicalPath":"/agent/copilotkit-copilotkit","slug":"copilotkit-copilotkit","name":"CopilotKit","description":"The Frontend for Agents & Generative UI. React + Angular","url":"https://github.com/CopilotKit/CopilotKit","homepage":"https://docs.copilotkit.ai","source":"GITHUB_REPOS","protocols":["OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-03-25T09:50:57.846Z","createdAt":"2026-02-25T03:39:14.617Z","downloads":null}],"links":{"hub":"/agent","source":"/agent/source/clawhub","protocols":[{"label":"OpenClaw","href":"/agent/protocol/openclew"}]}}}