Huo15 Flow Chart

v1.3.0

2026 现代美学的流程图、泳道图、系统架构图、C4 架构图、时序图、状态图、ER 图、甘特图生成。Linear/Vercel/Radix 配色 + 软阴影 + 圆角 + 判断色强调 + 容器分层。输入 YAML/JSON 规格或 Mermaid/PlantUML/DOT 源码,输出 SVG/PNG/PDF/dr...

0· 149·0 current·0 all-time
byJob Zhao@zhaobod1

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for zhaobod1/huo15-flow-chart.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Huo15 Flow Chart" (zhaobod1/huo15-flow-chart) from ClawHub.
Skill page: https://clawhub.ai/zhaobod1/huo15-flow-chart
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install huo15-flow-chart

ClawHub CLI

Package manager switcher

npx clawhub@latest install huo15-flow-chart
Security Scan
Capability signals
CryptoCan make purchasesRequires OAuth tokenRequires sensitive credentials
These labels describe what authority the skill may exercise. They are separate from suspicious or malicious moderation verdicts.
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description match the included parsers and renderers. The code implements parsing YAML/JSON and generating Mermaid/PlantUML/DOT/draw.io sources and invoking renderers — all coherent with a diagram-generation skill.
Instruction Scope
Runtime instructions tell the agent to parse given input files and call local rendering tools (mmdc/npx/docker, plantuml, dot). The instructions do not access unrelated environment variables or external endpoints beyond standard renderer invocation, but they do allow use of docker and npx which will access the current working directory and may pull images/packages from the network.
Install Mechanism
No install spec is bundled, but SKILL.md recommends installing third-party renderers via npm/brew/apt. The renderer fallback paths may invoke npx (which downloads and runs packages) or docker (pulls images). These are expected for on-demand rendering but introduce normal supply-chain/network pulls if used.
Credentials
The skill declares no required environment variables or credentials and the code does not read secrets. It only checks local executables (shutil.which) and uses os.getuid()/getgid() when running docker. No disproportionate credential requests are present.
Persistence & Privilege
The skill does not request permanent presence (always: false) and does not modify other skills or system-wide agent settings. It writes temporary files and may write fallback source files (e.g., .mmd/.puml/.dot) to the working directory when renderers are unavailable, which is expected behavior.
Assessment
This skill appears coherent and implements a local diagram generator. Before using it: 1) Only run rendering commands in directories you trust because the tool may invoke docker containers that mount your current working directory. 2) Be aware that the mermaid path can use npx or docker which will pull code/images from the network (normal but a supply-chain risk); prefer a locally installed mmdc/plantuml/dot if you want to avoid on-the-fly downloads. 3) No credentials are requested by the skill. If you need higher assurance, review the included Python scripts locally and run them in a sandbox or isolated environment.

Like a lobster shell, security has layers — review code before you run it.

latestvk970f2z3hbnc156z9w6kq7y0hs85ebyb
149downloads
0stars
4versions
Updated 4d ago
v1.3.0
MIT-0

火一五流程图技能 v1.3.0

2026 现代美学的流程图 / 架构图 / 泳道图 / C4 架构图 / 时序图生成器 — 青岛火一五信息科技有限公司

设计取向:Linear / Vercel / Radix / Stripe 软色系 + 双层柔和阴影 + 圆角节点 + 判断菱形 accent 强调色 + PDF 单页自适应。


一、核心能力

1.1 支持的图表类型

type用途渲染引擎draw.io
flowchart普通流程图Mermaid
architecture系统架构图(支持 Tier 分层)Mermaid
swimlane真·泳道图(PlantUML)PlantUML
swimlane_mermaid泳道风格(Mermaid,不需要 Java)Mermaid
sequence时序图Mermaid/PlantUML
state状态图Mermaid
gantt甘特图Mermaid
erER 图Mermaid
classUML 类图Mermaid
journey用户旅程Mermaid
pie饼图Mermaid
c4_contextC4 上下文图(L1)Mermaid / PlantUML
c4_containerC4 容器图(L2)Mermaid / PlantUML
mindmap简单思维导图Mermaid

1.2 输出格式

格式类型说明
.svg矢量图浏览器直接打开,最推荐
.png位图适合 PPT / 文档
.pdf矢量 PDF适合打印
.mmdMermaid 源码复制到 mermaid.live 编辑
.pumlPlantUML 源码复制到 PlantUML 编辑器
.drawiodraw.io 源文件用 draw.io 桌面版打开,精美编辑
.dotGraphviz DOT 源码复杂网络拓扑

1.3 十种风格(v1.3 全面改造为 2026 现代美学)

key名称设计范式适用场景中文别名
modern现代商务Radix Indigo/Slate,浅底 + 靛紫描边 + 琥珀判断默认首选,商务/技术文档现代、商务、linear、vercel
classic经典稳重淡蓝卡 + 深蓝字 + 琥珀强调咨询报告、正式汇报经典、稳重
dark暗色霓虹Linear Dark,深底 + 紫霓虹描边 + 青色 accent演示大屏、技术分享暗色、黑色、霓虹、linear-dark
xiaohongshu小红书暖奶油奶油底 + 粉卡节点 + 玫红描边种草封面、女性向运营小红书、奶油、xhs
ocean海洋蓝浅天蓝节点 + 深蓝字 + 橙色 accentSaaS 产品、技术架构海洋、蓝、蓝色
forest森林绿浅绿卡 + 墨绿字 + 橙色 accent环保、农业、健康森林、绿、自然
sunset夕阳暖橙浅橙卡 + 赭红字 + 青色 accent运营活动、温暖叙事夕阳、暖橙、橙
minimal极简素雅Notion 风,近白底 + 深灰字 + 单蓝 accent + 细描边学术论文、出版物、技术书稿极简、素雅、学术、论文、黑白、notion
pastel马卡龙粉嫩浅紫底 + 深紫字 + 玫粉 accent儿童教育、女性向马卡龙、粉嫩、粉、儿童
github极客 GitHub浅蓝卡 + 品牌蓝 + 绿色 accent开源 README、技术文档极客、程序员、gh

设计共性(所有风格统一遵循)

  • 节点:浅色填充 + 彩色描边 + 深色文字,12px 圆角,1.5px 描边
  • 阴影:双层 drop-shadow(近 1/2px + 远 4/12px),模拟 Linear/Vercel 的浮起质感
  • 判断菱形:统一用 accent_color 突出,区别于普通节点
  • 数据库圆柱:secondary_color 填充,区别于业务节点
  • 字体:Inter 优先 + PingFang SC/HarmonyOS Sans 回落,节点 font-weight: 500,标题 600
  • 连线:basis 曲线(flowchart/C4)/ linear(泳道)/ 端点圆角
  • 间距:nodeSpacing: 60rankSpacing: 80padding: 20(更透气)

1.4 draw.io 精美增强

  • 导出 .drawio 源文件,用 draw.io 桌面版打开
  • draw.io 支持:渐变填充、投影、圆角、图标嵌入
  • draw.io 支持 Google Fonts(Mermaid 不支持的中文字体)
  • 配合 --theme / --font / --shadow 参数生成精美效果

二、快速开始

2.1 准备渲染器

# 方案 A:Mermaid(推荐,覆盖 90% 场景)
npm i -g @mermaid-js/mermaid-cli

# 方案 B:PlantUML(C4-PlantUML / 泳道图必须)
brew install plantuml        # macOS
# apt install plantuml       # Ubuntu/Debian

# 方案 C:Graphviz(网络拓扑可选)
brew install graphviz

# Python 依赖
pip install pyyaml

2.2 最短上手

# 从 YAML 规格生成 PNG(默认 modern 风格)
python3 scripts/create-flow-chart.py \
  -i examples/architecture.yaml \
  -o /tmp/arch.png

# 泳道图(真·PlantUML)
python3 scripts/create-flow-chart.py \
  -i examples/swimlane.yaml \
  -o /tmp/lane.svg

# 导出 draw.io 源文件(精美编辑)
python3 scripts/create-flow-chart.py \
  -i examples/architecture.yaml \
  -o /tmp/arch.drawio

# 同时导出多种格式(一键到位)
python3 scripts/create-flow-chart.py \
  -i examples/architecture.yaml \
  -o /tmp/arch.png \
  --export-formats svg,pdf,mmd,drawio

# draw.io 精美主题(带投影)
python3 scripts/create-flow-chart.py \
  -i examples/architecture.yaml \
  -o /tmp/arch.png \
  --theme modern --font "Microsoft YaHei" --shadow

# C4-PlantUML(专业 C4 图)
python3 scripts/create-flow-chart.py \
  -i examples/c4_context.yaml \
  -o /tmp/c4.puml \
  --engine plantuml

三、YAML 规格速查

3.1 流程图 flowchart

type: flowchart
title: 用户下单流程
direction: TB          # TB | LR | BT | RL

nodes:
  - { id: start, label: 开始, shape: stadium }
  - { id: check, label: 是否有商品?, shape: diamond }
  - { id: pay,   label: 结算付款 }

edges:
  - { from: start, to: check }
  - { from: check, to: pay, label: 是 }

形状rect / round / stadium / diamond(判断) / hexagon / circle / cylinder(数据库) / subroutine / parallelogram / trapezoid

边类型solid(实线)/ dashed(虚线)/ thick(粗线)/ dotted(点线)/ bidir(双向)

3.2 系统架构图 architecture(支持 Tier 分层)

方式一:groups 分组

type: architecture
title: 火一五 SaaS 系统架构
groups:
  - { id: frontend, label: 前端层,  children: [web, mobile] }
  - { id: backend,  label: 业务层,  children: [svc_user, svc_order] }
  - { id: data,     label: 数据层,  children: [pg, redis] }
nodes:
  - { id: web, label: Web 门户 }
  - { id: pg,  label: PostgreSQL, shape: cylinder }
edges:
  - [web, svc_user]
  - [svc_user, pg]

方式二:tiers 分层(推荐,层次更清晰)

type: architecture
title: 系统架构(Tier 分层)
tiers:
  - { id: edge, label: 边缘层 }
  - { id: biz,  label: 业务层 }
  - { id: data, label: 数据层 }
nodes:
  - { id: cdn,   label: CDN,       tier: edge }
  - { id: api,   label: API 网关,   tier: biz }
  - { id: pg,    label: PostgreSQL, tier: data, shape: cylinder }
edges:
  - [cdn, api]
  - [api, pg]

3.3 泳道图 swimlane(真·PlantUML)

type: swimlane
title: 采购审批流程
lanes:
  - name: 申请人
    steps:
      - { id: A1, label: 填写采购申请 }
      - { id: A2, label: 提交审批 }
  - name: 部门经理
    steps:
      - { id: B1, label: 初审 }
edges:
  - [A1, A2]
  - [A2, B1]

3.4 时序图 sequence

type: sequence
title: 用户登录
auto_number: true
nodes:
  - { id: U,  label: 用户,   shape: actor }
  - { id: FE, label: 前端 }
  - { id: BE, label: 后端 }
edges:
  - { from: U,  to: FE, label: 点击登录 }
  - { from: FE, to: BE, label: POST /login }
  - { from: BE, to: FE, label: JWT token, kind: dashed }
notes:
  - { position: over, over: BE, text: "首次登录自动建账" }

3.5 状态图 state

type: state
title: 订单状态机
direction: LR
nodes:
  - { id: Pending, label: 待付款 }
  - { id: Paid,    label: 已付款 }
edges:
  - { from: "[*]", to: Pending, label: 下单 }
  - { from: Pending, to: Paid, label: 付款 }

3.6 甘特图 gantt

type: gantt
title: Q2 路线图
dateFormat: YYYY-MM-DD
axisFormat: "%m-%d"
sections:
  - name: 基建
    tasks:
      - { name: 服务器扩容, id: i1, status: done,   start: 2026-04-01, duration: 5d }
      - { name: 监控升级,   id: i2, status: active, start: 2026-04-06, duration: 10d }

状态值:done / active / crit(关键路径红)/ milestone(里程碑)/ 留空即未开始。

3.7 C4 架构图 c4_context / c4_container

Mermaid 引擎(默认)

type: c4_context
title: 火一五 SaaS 上下文图
nodes:
  - { id: customer, label: 企业客户\n使用 SaaS,  shape: person }
  - { id: huo15,    label: 火一五 SaaS\n企业数字化平台,  shape: system }
  - { id: wecom,    label: 企业微信\nIM,               shape: system_ext }
edges:
  - { from: customer, to: huo15, label: 使用 }
  - { from: huo15,    to: wecom, label: OAuth }

PlantUML 引擎(C4-PlantUML,更专业)

python3 scripts/create-flow-chart.py \
  -i examples/c4_context.yaml \
  -o /tmp/c4.puml \
  --engine plantuml

C4 shape:person / person_ext / system / system_ext / container / container_db / component

3.8 ER 图 / UML 类图 / 用户旅程 / 饼图

  • er — ER 图,label 用 \n 分隔字段
  • class — UML 类图,edge kind 支持 extends / implements / composition / aggregation / dependency
  • journey — 用户旅程,用 sections[].tasks[]
  • pie — 饼图,用 items 数组

四、命令行参数

参数说明
-i, --input输入文件(yaml/json/mmd/puml/dot)
-o, --output输出路径(.svg/.png/.pdf/.mmd/.puml/.dot/.drawio)
--export-formats附加输出格式,逗号分隔。如 svg,pdf,mmd,drawio
--export-dir源文件输出目录,默认与主输出同目录
--style风格:modern/classic/dark/xiaohongshu/ocean/forest/sunset/minimal/pastel/github
--themedraw.io 主题(与 --style 对应,影响 draw.io 导出效果)
--font字体名称,默认 PingFang SC(Mac)/ Microsoft YaHei(Win)
--shadow为 draw.io 节点添加投影效果
--engine强制渲染引擎:mermaid / plantuml / dot / drawio / auto
--width, --height输出尺寸(像素)
--background背景色,默认用 style 的 background
--dump-source只打印源码到 stdout,不渲染(仅 draw.io 输出时生效)
--no-pdf-fit取消 PDF 自适应画布(默认自适应,单页输出,不分页)

五、Python API

import sys; sys.path.insert(0, 'scripts')

from flowchart_core import parse, to_mermaid, to_plantuml, to_drawio
from flowchart_render import render
from styles import get_style, to_mermaid_init_directive, to_plantuml_skinparam

fc = parse('spec.yaml')
style = get_style('modern')  # 也可传中文别名:'现代' / 'linear' / 'vercel'

# Mermaid(推荐:同时传 style,自动启用 decision / database classDef)
init = to_mermaid_init_directive(style, diagram_type=fc.diagram_type)
code = to_mermaid(fc, init, style=style)
render(code, '/tmp/out.svg', engine='mermaid')

# PDF 单页自适应(默认开启;传 pdf_fit=False 关闭)
render(code, '/tmp/out.pdf', engine='mermaid', pdf_fit=True)

# draw.io(现代风:渐变 + 圆角 + 阴影)
drawio_xml = to_drawio(fc, style=style, theme='modern',
                       font_family='Inter', shadow=True)
render(drawio_xml, '/tmp/out.drawio', engine='mermaid')

# C4-PlantUML
puml = to_plantuml(fc, to_plantuml_skinparam(style))
render(puml, '/tmp/out.puml', engine='plantuml')

主要接口:

函数说明
parse(path_or_text, hint='auto')YAML/JSON/Mermaid/PlantUML/DOT → FlowChart
to_mermaid(fc, init_directive, style=None)→ Mermaid 源码;传 style 启用自动 classDef
to_plantuml(fc, skinparam)→ PlantUML/C4-PlantUML 源码
to_dot(fc, style)→ Graphviz DOT
to_drawio(fc, style, theme, font_family, shadow=True)→ draw.io XML 源码(v1.3 现代风格)
render(source, out, engine, pdf_fit=True)调用 mmdc/plantuml/dot 渲染,PDF 默认单页自适应
get_style(key)获取 Style 对象(中文别名也能识别)
to_mermaid_init_directive(style, diagram_type='flowchart')返回 %%{init: ...}%%;按图类选曲线
to_plantuml_skinparam(style)返回 PlantUML skinparam 配色指令
decision_classdef(style) / database_classdef(style)v1.3 新增:生成 classDef 行

六、与其他技能的边界

需求用哪个技能
自由层级的思维导图,要导出 XMindhuo15-mind-map
流程图 / 架构图 / 泳道图 / 时序图 / C4 图huo15-flow-chart(本技能)
精美架构图(渐变/投影/圆角),本地编辑huo15-flow-chart + draw.io 导出
工程制图 / 原型图不在范围内,建议 draw.io / Figma
数据仪表盘用图表库(Chart.js / ECharts / matplotlib)

七、触发词

  • 流程图 / 画流程图 / 生成流程图 / 做一张流程图
  • 泳道图 / 跨职能流程图 / swim lane
  • 系统架构图 / 架构图 / C4 图 / C4 上下文 / C4 容器
  • draw.io 架构图 / 导出 draw.io / draw.io 源文件
  • C4-PlantUML / C4 图 PlantUML 格式
  • 时序图 / 序列图 / sequence diagram
  • 状态图 / 状态机 / state diagram
  • ER 图 / 实体关系图
  • 甘特图 / gantt
  • Mermaid / PlantUML
  • 架构分层 / Tier 分层 / 多层架构图

八、版本历史

  • v1.3.0(当前) — 2026 现代美学大改造

    • 十种风格全面重绘:从"深色填充 + 白字"老旧扁平风,升级为 Linear/Vercel/Radix 范式的"浅色填充 + 彩色描边 + 深色文字"
    • 双层 drop-shadowdrop-shadow(0 1px 2px) drop-shadow(0 4px 12px),复刻 Linear/Vercel 的浮起质感
    • 判断菱形 accent 强调:自动 classDef decision,每套风格独立 accent 色
    • 数据库圆柱自动识别:自动 classDef database,用次级色区别于业务节点
    • Mermaid init 优化nodeSpacing: 60 / rankSpacing: 80 / padding: 20,按图类自动切换曲线(flowchart basis、swimlane linear)
    • PDF 自适应画布(默认开启):Mermaid 走 mmdc --pdfFit,PlantUML 走 SVG → rsvg-convert → PDF,单页不分页
    • draw.io 生成器重写:修复 XML 属性重复 bug、edge 源/目标 id 计算错乱;新增渐变、圆角、正交弧线、容器嵌套
    • PlantUML skinparam 扩充:圆角 + 阴影 + 时序参与者 + 分组 + dpi:120
    • 新 Style 字段accent_text_coloraccent_border_color、双层阴影参数、corner_radiusstroke_widthnode_spacingrank_spacingpaddingpalette
    • 别名扩展:linear / vercel / notion / linear-dark 等
  • v1.2.0 — draw.io 导出 + C4-PlantUML + Tier 分层

    • ✅ 新增 .drawio 源文件导出(draw.io 桌面版打开,精美编辑)
    • ✅ 新增 --theme / --font / --shadow 参数(draw.io 精美效果)
    • ✅ 新增 --export-formats(一键导出多种格式,兼容旧名 --also
    • ✅ 新增 C4-PlantUML 引擎(--engine plantuml 输出专业 C4 图)
    • ✅ 新增 tiers 分层字段(architecture 类型专用,层次更清晰)
    • ✅ 新增 node.tier 属性(替代 group 归类,tiers 模式下使用)
    • to_drawio() Python API(可直接集成到其他工具)
    • ✅ 修复 .drawio 导出时 return 缺失 bug
  • v1.1.0 — 扩展 6 种风格

    • 新增:ocean / forest / sunset / minimal / pastel / github
  • v1.0.0 — 首版

    • 支持 13 种图表(flowchart / architecture / swimlane / swimlane_mermaid / sequence / state / gantt / er / class / journey / pie / c4_context / c4_container)
    • 3 种输入(YAML/JSON、Mermaid、PlantUML)、6 种输出(svg/png/pdf/mmd/puml/dot)
    • 4 种风格:modern / classic / dark / xiaohongshu

技术支持: 青岛火一五信息科技有限公司

Comments

Loading comments...