← 返回 Skills 市场
logictortoise

Diagram Generator

作者 AnyGenIO · GitHub ↗ · v3.0.0 · MIT-0
cross-platform ⚠ suspicious
1172
总下载
1
收藏
9
当前安装
13
版本数
在 OpenClaw 中安装
/install anygen-diagram-generator
功能描述
Use this skill any time the user wants to create diagrams, flowcharts, or visual structures. This includes: architecture diagrams, mind maps, org charts, use...
使用说明 (SKILL.md)

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 \x3Copenclaw|claude-code> -y
安全使用建议
This skill appears coherent: it uses the AnyGen CLI and an API key to generate diagrams server-side. Before installing, verify you trust the AnyGen service and the @anygen/cli npm package (check publisher, reviews, and release source). Treat the ANYGEN_API_KEY like any secret: avoid sending sensitive diagrams/data to the service, rotate the key if exposed, and consider creating a scoped key if AnyGen supports it. Note the skill may prompt a browser-based OAuth flow during auth and may install an additional AnyGen workflow skill at run-time as needed.
功能分析
Type: OpenClaw Skill Name: anygen-diagram-generator Version: 3.0.0 The skill instructions in SKILL.md direct the AI agent to autonomously install additional software and skills using the command 'anygen skill install --platform <openclaw|claude-code> -y' if dependencies are missing. While this behavior is framed as a setup step for diagram generation via anygen.io, the practice of a skill triggering the installation of further unverified code/packages represents a high-risk capability that could be used for lateral movement or persistence.
能力评估
Purpose & Capability
Name/description, required binary (anygen), and required env var (ANYGEN_API_KEY) all directly match the stated purpose of using the AnyGen service to generate diagrams.
Instruction Scope
SKILL.md instructs the agent to authenticate (anygen auth login / API key) and to invoke the AnyGen CLI and an AnyGen workflow skill. These instructions stay within diagram-generation scope. Minor note: it references another skill ('anygen-workflow-generate') and suggests installing it via the AnyGen CLI; that external dependency is not declared in the metadata but is reasonable for operation.
Install Mechanism
Install spec uses a Node/npm package (@anygen/cli) to provide the anygen binary, which is a standard approach. This is moderate-risk compared with instruction-only skills because it installs third-party code from a package registry; it's proportionate to the CLI requirement but users should trust the package and vendor.
Credentials
Only one credential (ANYGEN_API_KEY) is required and declared as the primary credential; that matches the described remote service usage and is proportionate.
Persistence & Privilege
Skill is not forced-always and does not request broad system or cross-skill config access. It does not claim to modify other skills' configs or system-wide settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install anygen-diagram-generator
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /anygen-diagram-generator 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v3.0.0
**Major update: Migrated to use the AnyGen CLI, significantly simplifying setup and diagram workflows.** - Replaced all scripts and dependencies with the official @anygen/cli (`anygen`). - Removed all local Python, Node, and Bash helper scripts. - Updated prerequisites: only `anygen` CLI required (auto-installs via npm/yarn/pnpm as needed). - Authentication now uses a simple web login or direct API key via the CLI. - Diagram generation flows are now directed through the `anygen-workflow-generate` skill. - Greatly simplified installation and usage instructions.
v1.3.5
- Clarified how diagram rendering libraries (Draw.io, Excalidraw) are fetched and executed in the local browser context. - Added security guidance: users with strict data-isolation requirements should review rendering scripts or run them in a network-restricted environment. - Updated details under "Security & Permissions" to improve transparency about library usage and local processing.
v1.3.4
anygen-diagram-generator 1.3.4 - Improved security/permissions documentation: specifies CDNs are only for static libraries, no diagram content is sent externally. - Enhanced communication style: when showing `prepare` replies/prompts, preserve original wording as much as possible, translating only if needed—do NOT rephrase or summarize. - User prompts for missing API keys now use proper Markdown link formatting for better usability. - Added explicit declaration and requirements for `sessions_spawn` in metadata for background diagram monitoring. - Workflow expanded from 4 to 5 phases, clarifying that the diagram plan prompt must be preserved and shown verbatim to the user for approval. - Metadata, prerequisites, and capability fields refined for clarity and accuracy.
v1.3.3
- Added automated installation of Playwright and tsx (TypeScript runtime) dependencies for local PNG diagram rendering. - Updated prerequisites in metadata: clarified Node.js is needed, and Node-based tools now auto-install. - Revised Python and Node.js requirements in skill metadata for improved setup automation. - Security section clarified: diagram rendering now uses Playwright and Chromium locally, and fetches diagram libraries from public CDNs. - Minor improvements to the security, permissions, and prerequisites documentation for accuracy and clarity.
v1.3.2
anygen-diagram-generator 1.3.2 - Added modular Python scripts for authentication and file utilities (`scripts/auth.py`, `scripts/fileutil.py`) - Updated main script logic in `scripts/anygen.py` to use new helpers - Documented new file structure, behavior, and API security model - Added `scripts/package-lock.json` for better Node.js dependency management - Streamlined and clarified SKILL.md, especially around security, permissions, and background monitoring workflow
v1.3.1
Script fix
v1.3.0
Major SKILL.md and script update with enhanced dialogue mode and monitoring
v1.2.3
Sync latest updates from repo
v1.2.2
Update SKILL.md and scripts
v1.2.1
Fix filesystem write path: use <skill_dir>/scripts/node_modules/ instead of ./node_modules/
v1.2.0
Fix security scan issues: update network permissions (esm.sh, viewer.diagrams.net, npm registry, googleapis), clarify file upload behavior, document auto-install behavior for Puppeteer/Chromium, fix poll interval documentation
v1.1.0
Update SKILL.md and scripts
v1.0.0
AnyGen Diagram Generator 1.0.0 – Initial Release - Generate architecture diagrams, flowcharts, system diagrams, and sequence diagrams from natural language prompts. - Supports export to DrawIO (.xml) and Excalidraw (.json) formats, with auto-rendering to PNG for preview. - Includes milestone-based progress updates that notify users at key stages of the diagram creation process. - Command-line scripts provided for task creation, status polling, downloading, and PNG rendering. - Error handling guidelines and troubleshooting info included. - Easy setup via API key, with automatic dependency management for rendering.
元数据
Slug anygen-diagram-generator
版本 3.0.0
许可证 MIT-0
累计安装 9
当前安装数 9
历史版本数 13
常见问题

Diagram Generator 是什么?

Use this skill any time the user wants to create diagrams, flowcharts, or visual structures. This includes: architecture diagrams, mind maps, org charts, use... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1172 次。

如何安装 Diagram Generator?

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

Diagram Generator 是免费的吗?

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

Diagram Generator 支持哪些平台?

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

谁开发了 Diagram Generator?

由 AnyGenIO(@logictortoise)开发并维护,当前版本 v3.0.0。

💬 留言讨论