← 返回 Skills 市场
xkweimeng

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

作者 EdrawMax-AI · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
415
总下载
0
收藏
2
当前安装
1
版本数
在 OpenClaw 中安装
/install edrawmax-diagram
功能描述
Generate diagrams from natural language using EdrawMax AI APIs. Supports four diagram types: flowchart (流程图), infographic (信息图), Gantt chart (甘特图), and mind...
使用说明 (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.

安全使用建议
What to consider before installing: - Privacy: The skill sends your text prompts to api.edrawmax.cn (an external service). If your diagrams contain sensitive data, that data will be transmitted and stored by the remote service. Confirm you are comfortable with that. - SSL verification disabled: The included downloader script explicitly disables TLS certificate validation (ssl.verify_mode = CERT_NONE). This makes downloads vulnerable to man-in-the-middle tampering. Before running in a real environment, either remove the code that disables verification or run the skill in a trusted, isolated network. Prefer enabling certificate validation. - Provenance and trust: The package lacks a homepage and the source is 'unknown'. If you need stronger assurance, request official publisher verification (an official EdrawMax homepage, signed release, or corporate publisher record) before trusting the skill in production. - Local filesystem writes: The script writes files under ./edrawmax_output by default. Ensure the output directory is not a sensitive path and review saved files after use. - No credentials requested: The API is documented as unauthenticated. If you expected the service to require an API key, verify this behavior with the vendor — unauthenticated endpoints may impose rate limits or accept content you wouldn't want publicly processed. If you want to proceed: run the skill in a sandboxed environment, inspect/modify the downloader to enable TLS verification, and verify the remote domain (api.edrawmax.cn) is legitimate and acceptable for your data before sending sensitive prompts. What would change the assessment: availability of an official homepage or publisher verification, removal/fix of the SSL-disable code, or explicit, documented reasons for TLS verification being disabled would reduce concern and could raise confidence to high/benign.
功能分析
Type: OpenClaw Skill Name: edrawmax-diagram Version: 1.0.0 The skill facilitates AI-powered diagram generation via EdrawMax APIs, but the included download script (scripts/download_diagram.py) contains a significant security vulnerability. Specifically, it explicitly disables SSL certificate verification (ssl.CERT_NONE), which exposes the user to Man-In-The-Middle (MITM) attacks when fetching images from the API endpoints (api.edrawmax.cn). While the behavior aligns with the stated purpose, this intentional bypass of standard security protocols is a high-risk flaw.
能力评估
Purpose & Capability
Name/description claim: generate diagrams via EdrawMax AI APIs. The SKILL.md, API reference, and included download script all align with that purpose. The skill does not request unrelated credentials or system paths.
Instruction Scope
Instructions are focused: call the specified EdrawMax endpoints, then run the provided Python downloader and present local file paths and source code. It explicitly directs the agent to send user prompts to an external service (api.edrawmax.cn) and to save files locally. This is expected for the stated function, but it implies user content will be transmitted to an external third party — a privacy consideration.
Install Mechanism
No install spec; instruction-only plus a small helper script. Nothing is downloaded or written by an installer. This is low-risk from install mechanics.
Credentials
The skill requests no environment variables, credentials, or config paths. That is proportionate to the published (unauthenticated) API usage. Note: the API docs state 'Auth: None required' and that user_id is extracted from an X-User-ID header server-side — if your agent/platform attaches identifying headers, those will reach the remote API.
Persistence & Privilege
always is false and the skill is user-invocable. It does not request permanent agent-wide privileges or modify other skills' configs.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install edrawmax-diagram
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /edrawmax-diagram 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of EdrawMax Diagram skill. - Generate flowcharts, infographics, Gantt charts, or mind maps from natural language descriptions using EdrawMax AI APIs. - Automatically detects user intent or asks for clarification if ambiguous. - Downloads generated PNG/SVG diagrams for local access, and provides both image paths and source code to users. - Handles common API errors with suggestions or retry logic. - Supports multiple languages and platform options.
元数据
Slug edrawmax-diagram
版本 1.0.0
许可证 MIT-0
累计安装 2
当前安装数 2
历史版本数 1
常见问题

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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 415 次。

如何安装 An AI skill for OpenClaw that generates professional diagrams from natural language descriptions using EdrawMax AI APIs.?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install edrawmax-diagram」即可一键安装,无需额外配置。

An AI skill for OpenClaw that generates professional diagrams from natural language descriptions using EdrawMax AI APIs. 是免费的吗?

是的,An AI skill for OpenClaw that generates professional diagrams from natural language descriptions using EdrawMax AI APIs. 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

An AI skill for OpenClaw that generates professional diagrams from natural language descriptions using EdrawMax AI APIs. 支持哪些平台?

An AI skill for OpenClaw that generates professional diagrams from natural language descriptions using EdrawMax AI APIs. 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 An AI skill for OpenClaw that generates professional diagrams from natural language descriptions using EdrawMax AI APIs.?

由 EdrawMax-AI(@xkweimeng)开发并维护,当前版本 v1.0.0。

💬 留言讨论