Skip to content

Agent skill that turns natural language, code, Terraform/K8s, SQL, OpenAPI, AsyncAPI, Protobuf and GraphQL sources into editable, tested draw.io architecture diagrams: incremental sync, multi-view projection, drift diff, CI architecture tests, whiteboard derasterize, interactive HTML/PPTX/Mermaid exports.

feat: add multi-agent platform support (OpenClaw, Hermes, Codex)

Agents365-aif0797690052c
diff --git a/README.md b/README.md
index 1241be5..1d1c96d 100644
--- a/README.md
+++ b/README.md
@@ -112,6 +112,74 @@ xvfb-run -a drawio --version
| **Windows** | 如不在 PATH 中,使用完整路径 |
| **Linux** | 无头导出时命令前加 `xvfb-run -a` |
+## Skill 安装
+
+### Claude Code
+
+```bash
+# 全局安装(所有项目可用)
+git clone https://github.com/Agents365-ai/drawio-skill.git ~/.claude/skills/drawio
+
+# 项目级安装
+git clone https://github.com/Agents365-ai/drawio-skill.git .claude/skills/drawio
+```
+
+### OpenClaw
+
+```bash
+# 通过 ClawHub 安装
+clawhub install drawio
+
+# 手动安装
+git clone https://github.com/Agents365-ai/drawio-skill.git ~/.openclaw/skills/drawio
+
+# 项目级安装
+git clone https://github.com/Agents365-ai/drawio-skill.git skills/drawio
+```
+
+### Hermes Agent
+
+```bash
+# 安装到 design 分类
+git clone https://github.com/Agents365-ai/drawio-skill.git ~/.hermes/skills/design/drawio
+```
+
+或在 `~/.hermes/config.yaml` 中添加外部目录:
+
+```yaml
+skills:
+ external_dirs:
+ - ~/myskills/drawio-skill
+```
+
+### OpenAI Codex
+
+```bash
+# 用户级安装
+git clone https://github.com/Agents365-ai/drawio-skill.git ~/.agents/skills/drawio
+
+# 项目级安装
+git clone https://github.com/Agents365-ai/drawio-skill.git .agents/skills/drawio
+```
+
+### SkillsMP
+
+在 [skillsmp.com](https://skillsmp.com) 搜索 `drawio` 或使用 CLI:
+
+```bash
+skills install drawio
+```
+
+### 安装路径总结
+
+| 平台 | 全局路径 | 项目路径 |
+|------|----------|----------|
+| Claude Code | `~/.claude/skills/drawio/` | `.claude/skills/drawio/` |
+| OpenClaw | `~/.openclaw/skills/drawio/` | `skills/drawio/` |
+| Hermes Agent | `~/.hermes/skills/design/drawio/` | 通过 `external_dirs` 配置 |
+| OpenAI Codex | `~/.agents/skills/drawio/` | `.agents/skills/drawio/` |
+| SkillsMP | N/A(通过 CLI 安装) | N/A |
+
## 使用方式
直接描述你想要的图表:
@@ -157,14 +225,27 @@ CI/CD 流水线,包含闭合回路和 2 个分支。线条沿矩形外围流
![环形循环](assets/demo-ring-cn.png)
+## 多平台支持
+
+本 skill 兼容以下平台:
+
+| 平台 | 支持状态 | 说明 |
+|------|----------|------|
+| **Claude Code** | ✅ 完全支持 | 原生 SKILL.md 格式 |
+| **OpenClaw** | ✅ 完全支持 | `metadata.openclaw` 命名空间,依赖检测,安装器 |
+| **Hermes Agent** | ✅ 完全支持 | `metadata.hermes` 命名空间,标签分类,工具门控 |
+| **OpenAI Codex** | ✅ 完全支持 | `agents/openai.yaml` 侧车文件 |
+| **SkillsMP** | ✅ 可索引 | GitHub topics 已配置 |
+
## 文件说明
-- `SKILL.md` — **唯一必需的文件**,Claude Code 加载的 skill 指令。
+- `SKILL.md` — **唯一必需的文件**,所有平台加载的 skill 指令
+- `agents/openai.yaml` — OpenAI Codex 专用配置(界面、策略)
- `README.md` — 本文件(中文,GitHub 首页显示)
- `README_EN.md` — 英文说明
- `assets/` — 示例图表和工作流图片
-> **提示:** 仅 `SKILL.md` 是 skill 运行所必需的。`assets/`、`README.md` 和 `README_EN.md` 仅为文档用途,可以安全删除以节省空间。
+> **提示:** 仅 `SKILL.md` 是 skill 运行所必需的。`agents/openai.yaml` 仅 Codex 需要。`assets/`、`README.md` 和 `README_EN.md` 仅为文档用途,可以安全删除以节省空间。
> 所有示例图表均由 Claude Code 配合 Claude Opus 4.6 模型生成。
diff --git a/README_EN.md b/README_EN.md
index 7076d83..50c1a0e 100644
--- a/README_EN.md
+++ b/README_EN.md
@@ -112,6 +112,74 @@ xvfb-run -a drawio --version
| **Windows** | Use full path if not in PATH |
| **Linux** | Wrap commands with `xvfb-run -a` for headless export |
+## Skill Installation
+
+### Claude Code
+
+```bash
+# Global install (available in all projects)
+git clone https://github.com/Agents365-ai/drawio-skill.git ~/.claude/skills/drawio
+
+# Project-level install
+git clone https://github.com/Agents365-ai/drawio-skill.git .claude/skills/drawio
+```
+
+### OpenClaw
+
+```bash
+# Via ClawHub
+clawhub install drawio
+
+# Manual install
+git clone https://github.com/Agents365-ai/drawio-skill.git ~/.openclaw/skills/drawio
+
+# Project-level install
+git clone https://github.com/Agents365-ai/drawio-skill.git skills/drawio
+```
+
+### Hermes Agent
+
+```bash
+# Install under design category
+git clone https://github.com/Agents365-ai/drawio-skill.git ~/.hermes/skills/design/drawio
+```
+
+Or add an external directory in `~/.hermes/config.yaml`:
+
+```yaml
+skills:
+ external_dirs:
+ - ~/myskills/drawio-skill
+```
+
+### OpenAI Codex
+
+```bash
+# User-level install
+git clone https://github.com/Agents365-ai/drawio-skill.git ~/.agents/skills/drawio
+
+# Project-level install
+git clone https://github.com/Agents365-ai/drawio-skill.git .agents/skills/drawio
+```
+
+### SkillsMP
+
+Search for `drawio` on [skillsmp.com](https://skillsmp.com) or use the CLI:
+
+```bash
+skills install drawio
+```
+
+### Installation paths summary
+
+| Platform | Global path | Project path |
+|----------|-------------|--------------|
+| Claude Code | `~/.claude/skills/drawio/` | `.claude/skills/drawio/` |
+| OpenClaw | `~/.openclaw/skills/drawio/` | `skills/drawio/` |
+| Hermes Agent | `~/.hermes/skills/design/drawio/` | Via `external_dirs` config |
+| OpenAI Codex | `~/.agents/skills/drawio/` | `.agents/skills/drawio/` |
+| SkillsMP | N/A (installed via CLI) | N/A |
+
## Usage
Just describe what you want:
@@ -156,14 +224,27 @@ CI/CD pipeline with a closed loop and 2 spur branches. Edges flow along the peri
![Ring cycle](assets/demo-ring.png)
+## Multi-Platform Support
+
+This skill is compatible with the following platforms:
+
+| Platform | Status | Details |
+|----------|--------|---------|
+| **Claude Code** | ✅ Full support | Native SKILL.md format |
+| **OpenClaw** | ✅ Full support | `metadata.openclaw` namespace, dependency gating, installer |
+| **Hermes Agent** | ✅ Full support | `metadata.hermes` namespace, tags, tool gating |
+| **OpenAI Codex** | ✅ Full support | `agents/openai.yaml` sidecar file |
+| **SkillsMP** | ✅ Indexed | GitHub topics configured |
+
## Files
-- `SKILL.md` — **the only required file**. This is what Claude Code loads as the skill instructions.
+- `SKILL.md` — **the only required file**. Loaded by all platforms as the skill instructions.
+- `agents/openai.yaml` — OpenAI Codex-specific configuration (UI, policy)
- `README.md` — Chinese documentation (displayed on GitHub homepage)
- `README_EN.md` — this file (English documentation)
- `assets/` — example diagrams and workflow images
-> **Note:** Only `SKILL.md` is needed for the skill to work. The `assets/`, `README.md`, and `README_EN.md` files are documentation only and can be safely deleted to save space.
+> **Note:** Only `SKILL.md` is needed for the skill to work. `agents/openai.yaml` is only needed for Codex. The `assets/`, `README.md`, and `README_EN.md` files are documentation only and can be safely deleted to save space.
> All example diagrams were generated in Claude Code with Claude Opus 4.6.
diff --git a/SKILL.md b/SKILL.md
index cf8c667..33fe555 100644
--- a/SKILL.md
+++ b/SKILL.md
@@ -1,6 +1,10 @@
---
name: drawio
description: Use when user requests diagrams, flowcharts, architecture charts, or visualizations. Also use proactively when explaining systems with 3+ components, complex data flows, or relationships that benefit from visual representation. Generates .drawio XML files and exports to PNG/SVG/PDF locally using the native draw.io desktop CLI.
+license: MIT
+compatibility: Requires draw.io desktop app CLI on PATH (macOS/Linux/Windows)
+platforms: [macos, linux, windows]
+metadata: {"openclaw":{"requires":{"anyBins":["draw.io","drawio"]},"emoji":"📐","os":["darwin","linux","win32"],"install":[{"id":"brew-drawio","kind":"brew","formula":"drawio","bins":["draw.io"],"label":"Install draw.io via Homebrew","os":["darwin"]}]},"hermes":{"tags":["drawio","diagram","flowchart","architecture","visualization","uml"],"category":"design","requires_tools":["draw.io"],"related_skills":["mermaid","excalidraw","plantuml"]},"author":"Agents365-ai","version":"1.0"}
---
# Draw.io Diagrams
diff --git a/agents/openai.yaml b/agents/openai.yaml
new file mode 100644
index 0000000..aa3431c
--- /dev/null
+++ b/agents/openai.yaml
@@ -0,0 +1,7 @@
+interface:
+ display_name: "Draw.io Diagrams"
+ short_description: "Generate draw.io diagrams from natural language and export to PNG/SVG/PDF"
+ brand_color: "#F08705"
+
+policy:
+ allow_implicit_invocation: true