Loading...
Loading...
AI-powered Draw.io diagram generation with Design System, 3 workflows, and real-time browser preview
npx skill4agent add bahayonghang/drawio-skills drawio| What you want to do | Command | Description |
|---|---|---|
| Create new diagram | | Natural language → diagram |
| Replicate image | | Image → A-H → diagram |
| Edit diagram | | Modify existing diagram |
Tip: Usefollowed by keywords like "create", "replicate", "edit" to trigger different workflows./drawio
| Theme | Use Case |
|---|---|
| Tech Blue | Software architecture, DevOps (default) |
| Academic Color ⭐ | Academic papers, research (recommended) |
| Academic | IEEE grayscale print only |
| Nature | Environmental, lifecycle diagrams |
| Dark Mode | Presentations, slides |
nodes:
- id: api
label: API Gateway
type: service # → Rounded rectangle
- id: db
label: User Database
type: database # → Cylinder
- id: check
label: Valid?
type: decision # → Diamond| Type | Style | Usage |
|---|---|---|
| Solid 2px, filled arrow | Main flow |
| Dashed 2px, filled arrow | Data/async flow |
| Dotted 1px, open arrow | Weak relation |
| Solid 1px, diamond | Dependencies |
{
"command": "npx",
"args": ["--yes", "@next-ai-drawio/mcp-server@latest"]
}6002| Tool | Description |
|---|---|
| Opens browser with real-time preview |
| Create diagram from XML |
| Edit by ID-based operations |
| Get current diagram XML |
| Save to |
/drawio create/drawio create a login flowchart with validation and error handling--structured/drawio replicate/drawio replicate
【领域】软件架构
[Upload image]/drawio edit/drawio edit
Change "User Service" to "Auth Service"
Make database nodes green| Topic | File |
|---|---|
| Design System Overview | docs/design-system/README.md |
| Design Tokens | docs/design-system/tokens.md |
| Themes | docs/design-system/themes.md |
| Semantic Shapes | docs/design-system/shapes.md |
| Connectors | docs/design-system/connectors.md |
| Icons | docs/design-system/icons.md |
| Formulas | docs/design-system/formulas.md |
| Specification Format | docs/design-system/specification.md |
| Topic | File |
|---|---|
| Math Typesetting | docs/math-typesetting.md |
| IEEE Diagrams | docs/ieee-diagrams.md |
| Usage Examples | docs/examples.md |
| XML Format | docs/xml-format.md |
| MCP Tools | docs/mcp-tools.md |
Claude Code <--stdio--> MCP Server <--http--> Browser (draw.io)start_session| Issue | Solution |
|---|---|
| "d.setId is not a function" | Use numeric |
| Port already in use | Server auto-tries ports 6002-6020 |
| "No active session" | Call |
| Browser not updating | Check URL has |
| Math not rendered | Enable |