Install any skill in seconds. Free to start, no credit card required.
Get Started Free →anygen-diagram
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 skil
Passed 2 of 13 test cases with the skill, and 0 of 13 without it.
3 fixed0 passed either way19 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
The instructions your model reads when the skill loads.
You MUST strictly follow every instruction in this document. Do not skip, reorder, or improvise any step. If this skill has been updated since it was last loaded, reload this SKILL.md before proceeding and always follow the latest version.
Generate diagrams and visual charts using AnyGen OpenAPI (www.anygen.io). Diagrams are generated server-side; this skill sends the user's prompt and optional reference files to the AnyGen API and retrieves the results. An API key (ANYGEN_API_KEY) is required to authenticate with the service. Supports flowcharts, architecture diagrams, mind maps, UML, ER diagrams, org charts, and more. Two rendering styles: professional (Draw.io) and hand-drawn (Excalidraw).
Diagrams are generated server-side by AnyGen's OpenAPI (www.anygen.io). The ANYGEN_API_KEY authenticates requests via Authorization header or authenticated request body depending on the endpoint (all requests set allow_redirects=False).
What this skill does: sends prompts to www.anygen.io, uploads user-specified reference files after consent, downloads diagram files to ~/.openclaw/workspace/, renders diagram source (Draw.io XML / Excalidraw JSON) to PNG locally using Playwright and Chromium, monitors progress in background via sessions_spawn (declared in requires), reads/writes config at ~/.config/anygen/config.json. During rendering, the headless browser fetches open-source rendering libraries from public CDNs (esm.sh for Excalidraw, viewer.diagrams.net for Draw.io viewer, fonts.googleapis.com for fonts). Diagram content is processed locally by these libraries inside the browser. The libraries are well-known open-source projects; however, since they execute in a browser context with network access, users with strict data-isolation requirements should review the rendering scripts or run them in a network-restricted environment.
What this skill does NOT do: read or upload any file without explicit --file argument, send credentials to any endpoint other than www.anygen.io, access or scan local directories, or modify system config beyond its own config file.
Bundled scripts: scripts/anygen.py, scripts/auth.py, scripts/fileutil.py (Python — uses requests), scripts/render-diagram.sh (Bash), scripts/diagram-to-image.ts (TypeScript). Scripts print machine-readable labels to stdout (e.g., File Token:, Task ID:) as the standard agent-tool communication channel. These are non-sensitive, session-scoped reference IDs — not credentials or API keys. The agent should not relay raw script output to the user to keep the conversation natural (see Communication Style).
requests: pip3 install requestssk-xxx) — Get one from AnyGenpython3 scripts/anygen.py config set api_key "sk-xxx" (saved to ~/.config/anygen/config.json, chmod 600). Or set ANYGEN_API_KEY env var.All
scripts/paths below are relative to this skill's installation directory.
Use natural language. Never expose task_id, file_token, task_xxx, tk_xxx, anygen.py, or command syntax to the user. Say "your diagram", "generating", "checking progress" instead. When presenting reply and prompt from prepare, preserve the original content as much as possible — translate into the user's language if needed, but do NOT rephrase, summarize, or add your own interpretation. Ask questions in your own voice (NOT "AnyGen wants to know…"). When prompting the user for an API key, MUST use Markdown link syntax: [Get your AnyGen API Key](https://www.anygen.io/home?auto_create_openclaw_key=1) so the full URL is clickable.
test cases passed, vs 0 / 13 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.