ProcessOn Diagram Generator

v2.3.1

A fast diagramming tool developed by ProcessOn that allows you to quickly create beautiful, editable visual diagrams such as flowcharts, swimlane diagrams, s...

1· 268·1 current·1 all-time
byying zhang @po@leilizhang

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for leilizhang/processon-diagramgen.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "ProcessOn Diagram Generator" (leilizhang/processon-diagramgen) from ClawHub.
Skill page: https://clawhub.ai/leilizhang/processon-diagramgen
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

Canonical install target

openclaw skills install leilizhang/processon-diagramgen

ClawHub CLI

Package manager switcher

npx clawhub@latest install processon-diagramgen
Security Scan
Capability signals
Requires 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
medium confidence
Purpose & Capability
Name/description claim a ProcessOn diagram generator and the skill includes a Python client that talks to smart.processon.com and requires a PROCESSON_API_KEY — this is consistent and proportionate to the stated purpose.
Instruction Scope
SKILL.md explicitly instructs the agent to (a) extract/optimize prompts and (b) when generating architecture diagrams to read entry files, routes, core config and key modules. Reading project files is coherent for producing architecture diagrams, but it means local source/config may be sent to ProcessOn's APIs as part of the prompt/DSL — a potential privacy/exfiltration risk that users should be aware of.
Install Mechanism
No install spec; code is included as a script in the skill. No remote downloads or archive extraction are used by the skill itself, so installation risk is low.
Credentials
Only one credential is required (PROCESSON_API_KEY), which matches the described external API use. However, because the skill instructs the agent to read local project/config files and sends content to an external API, granting the API key can enable uploading potentially sensitive local data to ProcessOn.
Persistence & Privilege
Skill is not always-enabled, does not request additional system privileges, and does not modify other skills. It does save rendered images to ./outputs/processon, which is scoped to the user's working directory.
Assessment
This skill appears to do what it says: it calls ProcessOn endpoints and needs PROCESSON_API_KEY. Before installing, confirm you trust smart.processon.com with any project text or config you may allow the skill to read. Avoid feeding secrets (API keys, private keys, database credentials, or other sensitive configs) into prompts or letting the agent auto-collect files you don't want uploaded. If you only want a local DSL (no network rendering), use the provided --no-render mode or review the generated DSL before triggering rendering. Note that images are saved under ./outputs/processon by default. If you need higher assurance, inspect the full script locally to confirm what data it sends, or run the script in an isolated environment.

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

latestvk974h50ggbvr3c196vs0gkrcgn84ynpf
268downloads
1stars
6versions
Updated 1w ago
v2.3.1
MIT-0

processon-diagram-generator

将用户意图、代码关系或草图转换为专业图形。默认跟随用户当前语言输出提示、澄清问题、优化 Prompt 和最终结果。

何时触发

  • 支持:流程图、业务流程图、泳道图、流程地图、标准流程图、时序图、软件架构图、系统架构图、云架构图、ER 图、组织结构图、时间轴、信息图、金字塔图、草图重绘。
  • 英文表达同样触发,例如:create a diagramdraw a diagramgenerate a flowchartmake a flowchartvisualize a processcreate a sequence diagramdraw a system architecturesoftware architecture diagramcloud architecture diagramER diagramorg charttimelineinfographicredraw this sketchProcessOn
  • 如果用户只说“画个图”之类的模糊请求,先确认图形类型。
  • 如果用户上传图片并要求“重绘”或“转成图”,先识别图片中的节点、文字和连接关系,再生成结构化输入。

工作方式

0. 安装后首次引导与状态检查

当用户询问如何使用本技能、技能是否安装成功,或直接询问“怎么配置”时,你应该:

  1. 主动检查环境:告知用户你已准备好提供 ProcessOn 智能绘图服务,但前提是需要配置 PROCESSON_API_KEY
  2. 提供指引:明确告知用户前往 https://smart.processon.com/user 获取 Key,并根据其操作系统提供 export PROCESSON_API_KEY="..." 的设置命令。
  3. 特别提醒:务必提醒用户该环境变量必须在当前运行 Agent 的终端中设置,否则 Agent 无法读取到配置。

1. 先补关键信息

不要在关系不清、流程断层或结构缺失时直接生成。

信息不足时按这个顺序处理:

  1. 指出缺少什么。
  2. 给出合理默认方案或行业常见做法供用户确认。
  3. 用户确认后再继续。

2. 优化 Prompt,但不要改写用户语言

在用户原始需求上补充专业约束:

  • 通用:专业风格、布局清晰、颜色协调、避免线条交叉。
  • 流程图:明确开始/结束节点,决策点用标准菱形。
  • 时序图:参与者清晰,调用消息明确。
  • 架构图:按层次组织,标注关键通信关系。
  • ER 图:标注主外键关系和字段类型。

优化后的 Prompt 默认保持与用户一致的语言。

3. 架构分析画关系,不画目录树

当用户要求分析项目架构时,重点提取模块边界、依赖关系、调用链路和数据流向。优先阅读入口文件、路由、核心配置和关键模块,不要把结果退化成文件夹树。

执行顺序

  1. 先在聊天里说明正在使用 processon-diagram-generator 技能处理当前请求。
  2. 识别图形类型,提取关键实体、动作、判断条件,构建优化后的 Prompt。
  3. 生成依赖 PROCESSON_API_KEY。如果缺失,明确告诉用户如何配置,并附上获取地址 https://smart.processon.com/user必须强调在当前运行 Agent 的终端设置环境变量。
  4. 单脚本全流程自动执行逻辑:
    • 调用 scripts/processon_api_client.py 启动生成任务。
    • 脚本会自动流式生成 DSL,并在完成后立即自动触发图片渲染(除非指定 --no-render)。
    • 立即展示中间结果: 第一阶段 DSL 生成完成后,必须立即在回复中完整展示生成的 DSL 和编辑链接 https://smart.processon.com/editor
    • 自动输出渲染结果: 脚本渲染完成后,会自动输出图片原始链接。你必须确保这些内容都呈现在最终回复中。
    • 硬性闸门: 只有在 DSL、编辑链接、“可复制粘贴渲染和二次编辑”提示语、以及(如果成功)图片链接全部输出完毕后,才允许结束当前任务。
  5. 禁止使用富文本语法: 在任何阶段,严禁输出 <img> 等 HTML 标签,也严禁使用 Markdown 图片语法 ![]() 或链接语法 []()。所有图片链接和编辑链接必须以原始 URL 纯文本形式直接展示。
  6. 结果呈现:
    • 如果图片生成成功,最终回复中必须同时保留完整 DSL、编辑链接和图片原始链接。
    • 如果图片生成失败,告知用户原因,并引导用户使用已展示的 DSL 去编辑链接手动渲染。

结果呈现

关键结果必须在 assistant 正文里以纯文本形式可见。

  • DSL 展示规范: 优先使用代码块展示 DSL,并紧跟原始编辑链接。
  • 链接展示规范: 严禁使用任何 Markdown 或 HTML 包装。必须直接输出 https://... 这种可识别的原始 URL。并在链接旁明确说明:“你可以复制上方 DSL 数据到此链接进行渲染和二次编辑”
  • 全自动流程: 默认情况下,脚本会一次性完成从 DSL 生成到图片渲染的所有步骤,无需手动干预。
  • 最终回复保留规则: 即使图片已经成功生成,最后一条回复也必须再次包含 DSL 代码块、编辑链接和图片链接,防止中间态在收尾时丢失。
  • 失败处理: 如果渲染失败,不要删除或隐藏已经生成的 DSL。

输出前自检

在发送任何最终回复前,必须逐项自检,四项全部满足才允许发送:

  1. assistant 正文里已经完整贴出 DSL,且不是摘要或省略版。
  2. assistant 正文里已经贴出原始编辑链接 https://smart.processon.com/editor
  3. assistant 正文里已经明确写出“你可以复制上方 DSL 数据到此链接进行渲染和二次编辑”这一层含义。
  4. 如果图片已生成,assistant 正文里同时包含图片原始链接;如果图片未生成,明确说明失败原因。

只要以上任一项不满足,就不能结束当前回复。

最终回复格式示例

第一阶段输出(中间态):

语义分析:用户需要一个...流程图。

图表 DSL (可编辑):

graph TD
  A[开始] --> B[处理]
  B --> C[结束]

在线编辑链接 (复制上方 DSL 数据并在此链接中粘贴进行渲染和编辑): https://smart.processon.com/editor (提示:如果下方图片渲染失败,可手动将上述代码粘贴至此链接)

第二阶段输出(最终态):

图片预览链接: https://ai-smart.ks3-cn-beijing.ksyuncs.com/gallery/...png

配置提示

API Key 配置

重要提示:请务必在当前运行 Agent 的终端中设置环境变量。

export PROCESSON_API_KEY="<your-processon-api-key>"

获取地址:ProcessOn 开发者中心

命令行调用参考

# 全自动生成:DSL + 图片渲染
python3 scripts/processon_api_client.py "请生成一张专业流程图"

# 仅生成 DSL (不渲染图片)
python3 scripts/processon_api_client.py --no-render "请生成一张专业流程图"

示例优化 Prompt

用户意图:帮我画一个登录流程。 优化后:请生成一张专业的流程图,描述用户登录注册流程。包含:前端校验、后端鉴权、数据库查询、Token 发放。要求:布局清晰,使用标准流程图符号,明确开始和结束节点,配色协调。

User intent: Draw a user login flow. Optimized prompt: Please generate a professional flowchart for the user login and registration flow. Include frontend validation, backend authentication, database lookup, and token issuance. Use a clean layout, standard flowchart symbols, clear start and end nodes, and a polished color palette.

Comments

Loading comments...