← Back to Skills Marketplace
xkweimeng

An AI skill for OpenClaw that generates professional diagrams from natural language descriptions using EdrawMax AI APIs.

by EdrawMax-AI · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ⚠ suspicious
261
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install build-diagram
Description
Generate diagrams from natural language using EdrawMax AI APIs. Supports four diagram types: flowchart (流程图), infographic (信息图), Gantt chart (甘特图), and mind...
README (SKILL.md)

EdrawMax(万兴图示)AI Diagram Generator

Author: EdrawMax AI Team(万兴图示 AI 团队)· Organization: Wondershare EdrawMax(万兴图示) Version: 2.0.0 · License: Proprietary © 2026 Wondershare EdrawMax(万兴图示). All rights reserved.

Generate four types of diagrams from natural language via EdrawMax(万兴图示)AI APIs. Each API returns PNG/SVG image URLs and source code.

Step 1 — Choose Diagram Type

User Intent Type Endpoint
Process, workflow, steps, decision flow flowchart /skills/generate-flowchart
Data visualization, statistics, comparison infographic /skills/generate-infographic
Project plan, timeline, schedule, phases gantt /skills/generate-gantt
Knowledge structure, brainstorm, topic tree mindmap /skills/generate-mindmap

If the user's intent is ambiguous, ask which diagram type they want.

Step 2 — Call the API

Base URL: https://api.edrawmax.cn/api/ai

All four endpoints share the same request format:

POST https://api.edrawmax.cn/api/ai/skills/generate-{type}
Content-Type: application/json

{"prompt": "\x3Cuser description>", "lang": "cn", "platform": "web"}

Request Parameters

Field Type Required Default Description
prompt string Yes Natural language description of the diagram
lang string No "cn" Language: en, cn, jp, kr, es, fr, de, it, tw, pt, ru, id
platform string No Platform: web, win, mac, ios, android, linux

Response Fields

Flowchart returns:

{ "code": 0, "msg": "", "data": { "png_url": "...", "svg_url": "...", "mermaid_code": "..." } }

Infographic / Gantt / Mindmap return:

{ "code": 0, "msg": "", "data": { "png_url": "...", "svg_url": "...", "source_code": "..." } }

Note: flowchart uses mermaid_code, the other three use source_code.

Step 3 — Download Files Locally

After a successful API call, always run the download script to save the images locally:

python \x3Cskill-path>/scripts/download_diagram.py --png-url "\x3Cpng_url>" --svg-url "\x3Csvg_url>" [--output-dir "\x3Cdir>"]
  • Default output directory: ./edrawmax_output
  • The script prints the local file paths as JSON, e.g.:
    {"png_path": "./edrawmax_output/diagram_20260312_143000.png", "svg_path": "./edrawmax_output/diagram_20260312_143000.svg"}
    
  • Use the returned local file paths when presenting results to the user.

Step 4 — Present Results to User

Provide the user with:

  1. Local PNG file path (primary, for quick preview)
  2. Local SVG file path (for high-quality / scalable use)
  3. Source code (mermaid_code or source_code) for secondary editing
  4. Original OSS URLs as backup links

Error Handling

code msg Action
400 prompt is required Ask user to provide a description
400 lang不合法 Fix lang to a valid value
2406 risk control rejection Content rejected; ask user to rephrase
3001 concurrency limit Wait briefly, then retry once
212200 生成失败 Retry once; if still failing, report to user
212201 渲染失败 Retry once; if still failing, report to user
500 panic Report internal server error to user

For retryable errors (3001, 212200, 212201), retry up to 1 time before reporting failure. If the error persists, inform the user and share the support contact (see FAQ below).

FAQ

Q: 使用 EdrawMax(万兴图示)AI MCP 服务是否需要付费? A: 目前为限时免费,用户可免费调用服务。

Q: 如何联系我们? A: 如有技术问题、服务反馈或 API 大量购买需求,欢迎通过邮箱联系: 📧 [email protected] 我们将尽快为您解答。

Language Mapping

Map user language/locale to lang param:

  • English → en, 简体中文 → cn, 日本語 → jp, 한국어 → kr
  • Español → es, Français → fr, Deutsch → de, Italiano → it
  • 繁體中文 → tw, Português → pt, Русский → ru, Bahasa Indonesia → id

Notes

  • user_id is extracted server-side from X-User-ID header; do not pass it in the body
  • Always present the source code so users can edit or re-render
  • For full API specs, see references/api-reference.md
  • When an error cannot be resolved after retry, always share the support email [email protected] with the user

© 2026 Wondershare EdrawMax(万兴图示)AI Team. This skill and all associated resources are proprietary to EdrawMax(万兴图示). Unauthorized reproduction or distribution is prohibited.

Usage Guidance
This skill appears to do what it says, but exercise caution before using it: 1) The included download script disables TLS certificate checks — this is unsafe. Do not run it as-is in production; modify it to enable certificate validation (remove the lines that set check_hostname False and verify_mode CERT_NONE) or use a secure HTTP client that validates TLS. 2) Verify the API domain (api.edrawmax.cn) and confirm you trust that service. The script will download whatever URLs the API returns; if the API is compromised or spoofed, it could deliver malicious content. 3) Be cautious with downloaded SVGs (they can contain active content when opened in some viewers). Open outputs in a sandboxed environment if unsure. 4) Because the skill is proprietary and the source/homepage are not verifiable here, prefer to validate the provider (contact [email protected] if needed) or run the code in an isolated environment before granting broader access. 5) If you plan to use this skill, remove or fix the TLS bypass and optionally restrict downloads to known hostnames (e.g., EdrawMax OSS domains).
Capability Analysis
Type: OpenClaw Skill Name: build-diagram Version: 1.0.2 The skill bundle provides diagram generation via the EdrawMax AI API but includes a downloader script (scripts/download_diagram.py) that explicitly disables SSL certificate verification (ssl.CERT_NONE). This is a significant security vulnerability that exposes the agent's environment to Man-in-the-Middle (MitM) attacks when fetching files from api.edrawmax.cn. While the functionality aligns with the stated purpose, the insecure network handling and automated execution of local file writes warrant a suspicious classification.
Capability Assessment
Purpose & Capability
Name, description, endpoints, and bundled download helper align: this is a diagram-generation skill that calls EdrawMax AI endpoints and saves returned PNG/SVG locally. The included files (SKILL.md, API reference, and a downloader script) are coherent with the described purpose.
Instruction Scope
Runtime instructions tell the agent to POST to https://api.edrawmax.cn/api/ai/skills/..., then always run the included download script to fetch PNG and SVG URLs returned by the API. While expected, this grants the skill the ability to fetch and persist arbitrary remote content. The bundled script also disables SSL certificate verification (ctx.check_hostname = False; ctx.verify_mode = ssl.CERT_NONE), which weakens transport security and could allow man-in-the-middle attacks or delivery of tampered content. The SKILL.md does not instruct additional unrelated data collection, but the combination of auto-download and disabled TLS is a scope risk.
Install Mechanism
No install spec is provided (instruction-only with a small helper script). Nothing is downloaded or installed during skill installation itself; the only code writes occur at runtime when the download script saves files to disk.
Credentials
The skill declares no required environment variables, no credentials, and no config paths. That is proportional to the stated purpose. (Note: SKILL.md says the server extracts user_id from the X-User-ID header and that no auth is required.)
Persistence & Privilege
The skill is not always-enabled and does not request elevated platform privileges or modify other skills. It writes files to a local output directory only when the download script is executed.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install build-diagram
  3. After installation, invoke the skill by name or use /build-diagram
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.2
- Major update: Skill renamed to "edrawmax-diagram" and now exclusively uses EdrawMax AI APIs for diagram generation. - Supports four diagram types: flowchart, infographic, Gantt chart, and mind map, each mapped to a dedicated API endpoint. - Comprehensive step-by-step workflow documented: select diagram type, call the appropriate API, download images locally, and present results. - Enhanced guidance on error handling, including specific actions and retry logic for known error codes. - Clear instructions for presenting results, with emphasis on local file paths and source code for user editing. - Language support expanded; mapping table provided for API parameterization.
Metadata
Slug build-diagram
Version 1.0.2
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is An AI skill for OpenClaw that generates professional diagrams from natural language descriptions using EdrawMax AI APIs.?

Generate diagrams from natural language using EdrawMax AI APIs. Supports four diagram types: flowchart (流程图), infographic (信息图), Gantt chart (甘特图), and mind... It is an AI Agent Skill for Claude Code / OpenClaw, with 261 downloads so far.

How do I install An AI skill for OpenClaw that generates professional diagrams from natural language descriptions using EdrawMax AI APIs.?

Run "/install build-diagram" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is An AI skill for OpenClaw that generates professional diagrams from natural language descriptions using EdrawMax AI APIs. free?

Yes, An AI skill for OpenClaw that generates professional diagrams from natural language descriptions using EdrawMax AI APIs. is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does An AI skill for OpenClaw that generates professional diagrams from natural language descriptions using EdrawMax AI APIs. support?

An AI skill for OpenClaw that generates professional diagrams from natural language descriptions using EdrawMax AI APIs. is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created An AI skill for OpenClaw that generates professional diagrams from natural language descriptions using EdrawMax AI APIs.?

It is built and maintained by EdrawMax-AI (@xkweimeng); the current version is v1.0.2.

💬 Comments