360 Secure SkillHub
360 安全技能中心

Diagram Generator

该技能依托AnyGen CLI在anygen.io服务端生成数十种可视化图表,涵盖架构图、思维导图、甘特图等。典型场景为用户提出绘制各类图表需求时触发(如表述“画个流程图”)。需配置ANYGEN_API_KEY认证,若遇认证错误可引导用户完成浏览器授权;使用时需配合anygen-workflow-generate技能的smart_draw操作,若该技能缺失需先安装。

logictortoise
logictortoise
热度 64.97
最近更新 2026-05-17 13:20:42
分类:创作依赖:代码执行 / 第三方 API应用场景:图像生成 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add anygen-diagram-generator
Metadata
name
anygen-diagram
description
Use this skill any time the user wants to create diagrams, flowcharts, or visual structures. This includes: architecture diagrams, mind maps, org charts, user journey maps, system design diagrams, ER diagrams, sequence diagrams, process flows, decision trees, network topologies, class diagrams, Gantt charts, SWOT analysis diagrams, wireframes, and sitemaps. Also trigger when: user says 画个流程图, 做个架构图, 思维导图, 组织架构图, 用户旅程图, 系统设计图, 甘特图. If a diagram or visual structure needs to be drawn, use this skill.
metadata
{"clawdbot":{"primaryEnv":"ANYGEN_API_KEY","requires":{"bins":["anygen"],"env":["ANYGEN_API_KEY"]},"install":[{"id":"node","kind":"node","package":"@anygen/cli","bins":["anygen"]}]}}

AI Diagram Generator — AnyGen

This skill uses the AnyGen CLI to generate diagrams and visual charts server-side at www.anygen.io.

Authentication

# Web login (opens browser, auto-configures key)
anygen auth login --no-wait

# Direct API key
anygen auth login --api-key sk-xxx

# Or set env var
export ANYGEN_API_KEY=sk-xxx

When any command fails with an auth error, run anygen auth login --no-wait and ask the user to complete browser authorization. Retry after login succeeds.

How to use

Follow the anygen-workflow-generate skill with operation type smart_draw.

If the anygen-workflow-generate skill is not available, install it first:

anygen skill install --platform <openclaw|claude-code> -y