← 返回 Skills 市场
wondershare-boop

EdrawMax Skills

作者 wondershare-boop · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ✓ 安全检测通过
381
总下载
0
收藏
2
当前安装
2
版本数
在 OpenClaw 中安装
/install edrawmax-skills
功能描述
Generate diagrams from natural language using EdrawMax AI APIs. Supports four diagram types: flowchart (流程图), infographic (信息图), Gantt chart (甘特图), and mind...
使用说明 (SKILL.md)

\r \r

EdrawMax(万兴图示)AI Diagram Generator\r

\r

Author: EdrawMax AI Team(万兴图示 AI 团队)· Organization: Wondershare EdrawMax(万兴图示)\r Version: 2.0.0 · License: Proprietary © 2026 Wondershare EdrawMax(万兴图示). All rights reserved.\r \r Generate four types of diagrams from natural language via EdrawMax(万兴图示)AI APIs. Each API returns PNG/SVG image URLs and source code.\r \r

Step 1 — Choose Diagram Type\r

\r | User Intent | Type | Endpoint |\r |---|---|---|\r | Process, workflow, steps, decision flow | flowchart | /skills/generate-flowchart |\r | Data visualization, statistics, comparison | infographic | /skills/generate-infographic |\r | Project plan, timeline, schedule, phases | gantt | /skills/generate-gantt |\r | Knowledge structure, brainstorm, topic tree | mindmap | /skills/generate-mindmap |\r \r If the user's intent is ambiguous, ask which diagram type they want.\r \r

Step 2 — Call the API\r

\r Base URL: https://api.edrawmax.cn/api/ai\r \r All four endpoints share the same request format:\r \r

POST https://api.edrawmax.cn/api/ai/skills/generate-{type}\r
Content-Type: application/json\r
\r
{"prompt": "\x3Cuser description>", "lang": "cn", "platform": "web"}\r
```\r
\r
### Request Parameters\r
\r
| Field | Type | Required | Default | Description |\r
|---|---|---|---|---|\r
| prompt | string | Yes | — | Natural language description of the diagram |\r
| lang | string | No | "cn" | Language: en, cn, jp, kr, es, fr, de, it, tw, pt, ru, id |\r
| platform | string | No | — | Platform: web, win, mac, ios, android, linux |\r
\r
### Response Fields\r
\r
**Flowchart** returns:\r
```json\r
{ "code": 0, "msg": "", "data": { "png_url": "...", "svg_url": "...", "mermaid_code": "..." } }\r
```\r
\r
**Infographic / Gantt / Mindmap** return:\r
```json\r
{ "code": 0, "msg": "", "data": { "png_url": "...", "svg_url": "...", "source_code": "..." } }\r
```\r
\r
> Note: flowchart uses `mermaid_code`, the other three use `source_code`.\r
\r
## Step 3 — Download Files Locally\r
\r
After a successful API call, **always** run the download script to save the images locally:\r
\r
```bash\r
python \x3Cskill-path>/scripts/download_diagram.py --png-url "\x3Cpng_url>" --svg-url "\x3Csvg_url>" [--output-dir "\x3Cdir>"]\r
```\r
\r
- Default output directory: `./edrawmax_output`\r
- The script prints the local file paths as JSON, e.g.:\r
  ```json\r
  {"png_path": "./edrawmax_output/diagram_20260312_143000.png", "svg_path": "./edrawmax_output/diagram_20260312_143000.svg"}\r
  ```\r
- Use the returned **local file paths** when presenting results to the user.\r
- **Security**: The script only accepts `https://` URLs whose hostname belongs to trusted EdrawMax OSS domains (`.aliyuncs.com`, `.wondershare.com`, `.edrawsoft.com`, `.edrawmax.com`). TLS certificates are fully verified. URLs from any other host are rejected — do not pass user-supplied or third-party URLs to this script.\r
\r
## Step 4 — Present Results to User\r
\r
Use the following preferred display format:\r
\r
1. **Thumbnail (PNG)** — Render the local PNG file as an inline image if the environment supports it (e.g. Markdown `![diagram](path/to/diagram.png)`). If inline rendering is not supported, show the `png_url` as a clickable link instead.\r
2. **High-res diagram (SVG)** — Always present the `svg_url` as a clickable link so the user can open the full-quality vector image in their browser: e.g. `[查看高清图](svg_url)`.\r
3. **Source code** — Show `mermaid_code` (flowchart) or `source_code` (other types) in a code block for secondary editing or re-rendering.\r
\r
Example output format:\r
\r
```\r
![diagram](./edrawmax_output/diagram_20260312_143000.png)\r
\r
[查看高清图(SVG)](https://xxx.oss.com/.../main.svg)\r
```\r
\r
## Error Handling\r
\r
| code | msg | Action |\r
|---|---|---|\r
| 400 | prompt is required | Ask user to provide a description |\r
| 400 | lang不合法 | Fix lang to a valid value |\r
| 2406 | risk control rejection | Content rejected; ask user to rephrase |\r
| 3001 | concurrency limit | Wait briefly, then retry once |\r
| 212200 | 生成失败 | Retry once; if still failing, report to user |\r
| 212201 | 渲染失败 | Retry once; if still failing, report to user |\r
| 500 | panic | Report internal server error to user |\r
\r
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).\r
\r
## FAQ\r
\r
**Q: 使用 EdrawMax(万兴图示)AI MCP 服务是否需要付费?**\r
A: 目前为限时免费,用户可免费调用服务。\r
\r
**Q: 如何联系我们?**\r
A: 如有技术问题、服务反馈或 API 大量购买需求,欢迎通过邮箱联系:\r
📧 [email protected]\r
我们将尽快为您解答。\r
\r
## Language Mapping\r
\r
Map user language/locale to `lang` param:\r
\r
- English → `en`, 简体中文 → `cn`, 日本語 → `jp`, 한국어 → `kr`\r
- Español → `es`, Français → `fr`, Deutsch → `de`, Italiano → `it`\r
- 繁體中文 → `tw`, Português → `pt`, Русский → `ru`, Bahasa Indonesia → `id`\r
\r
## Notes\r
\r
- `user_id` is extracted server-side from `X-User-ID` header; do not pass it in the body\r
- Always present the source code so users can edit or re-render\r
- For full API specs, see [references/api-reference.md](references/api-reference.md)\r
- When an error cannot be resolved after retry, always share the support email **[email protected]** with the user\r
\r
---\r
\r
© 2026 Wondershare EdrawMax(万兴图示)AI Team. This skill and all associated resources are proprietary to EdrawMax(万兴图示). Unauthorized reproduction or distribution is prohibited.\r
安全使用建议
This skill appears coherent and does what it says: it calls EdrawMax's documented endpoints and saves returned PNG/SVG files locally using the bundled Python script. Before installing, confirm you trust the EdrawMax API domain (https://api.edrawmax.cn) and are comfortable that user prompts/descriptions will be sent to that external service (no credentials are required). Ensure the agent environment has Python available to run the download script and that network access to the API and the EdrawMax OSS domains (.aliyuncs.com, .wondershare.com, .edrawsoft.com, .edrawmax.com) is permitted. If you have privacy concerns, avoid sending sensitive data in prompts because the service processes the prompt server-side.
功能分析
Type: OpenClaw Skill Name: edrawmax-skills Version: 1.0.1 The EdrawMax AI Diagram Generator skill is a legitimate tool for creating diagrams via EdrawMax APIs. It includes a Python script (scripts/download_diagram.py) for saving generated images locally, which incorporates security measures such as HTTPS enforcement, TLS certificate verification, and a domain whitelist (e.g., *.wondershare.com, *.edrawmax.com). The instructions in SKILL.md explicitly guide the agent to verify URLs and handle errors appropriately, showing no signs of malicious intent or data exfiltration.
能力评估
Purpose & Capability
Name/description (diagram generation) align with the SKILL.md and included files: API endpoints, expected responses, and a downloader script are all directly related to generating and saving diagrams. No unrelated credentials, binaries, or install steps are requested.
Instruction Scope
Runtime instructions are specific: determine diagram type, POST to documented EdrawMax endpoints, and run the included download script to save PNG/SVG locally. The SKILL.md does not instruct the agent to read unrelated files, access irrelevant env vars, or transmit data to third parties beyond the stated EdrawMax API and trusted OSS domains.
Install Mechanism
No install spec (instruction-only) and the only code included is a small Python downloader script. Nothing in the manifest downloads or executes code from arbitrary URLs or third-party package registries.
Credentials
The skill declares no required environment variables or credentials and the instructions do not reference any secrets. The API is documented as not requiring auth. The downloader uses system TLS verification and only accepts a short, justified set of trusted hostname suffixes.
Persistence & Privilege
The skill does not request persistent system privileges, always:false, and does not modify other skills or global agent config. It only writes image files into a user-controlled output directory.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install edrawmax-skills
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /edrawmax-skills 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
- Improved security: the download script now only accepts image URLs from trusted EdrawMax OSS domains (e.g., .aliyuncs.com, .wondershare.com, .edrawsoft.com, .edrawmax.com) with verified TLS certificates. - Updated instructions to clarify that user-supplied or third-party URLs are rejected by the download script. - Added preferred result presentation: render the local PNG as a thumbnail (when supported), present SVG as a clickable high-res link, and display source code in a code block. - Provided an example output format for user-facing results. - No functional or API changes; only documentation and usage guidance were updated.
v1.0.0
- Initial release of EdrawMax Diagram skill version 2.0.0. - Supports generating flowcharts, infographics, Gantt charts, and mind maps from natural language prompts. - Returns PNG/SVG images and editable source code for every diagram. - Includes robust error handling and retry logic. - Provides scripts to download images locally and present local file paths to users. - User language is automatically mapped to API parameters for multi-language support.
元数据
Slug edrawmax-skills
版本 1.0.1
许可证 MIT-0
累计安装 2
当前安装数 2
历史版本数 2
常见问题

EdrawMax Skills 是什么?

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 插件,目前累计下载 381 次。

如何安装 EdrawMax Skills?

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

EdrawMax Skills 是免费的吗?

是的,EdrawMax Skills 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

EdrawMax Skills 支持哪些平台?

EdrawMax Skills 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 EdrawMax Skills?

由 wondershare-boop(@wondershare-boop)开发并维护,当前版本 v1.0.1。

💬 留言讨论