Editable Draw.io diagrams for research and architecture: Next.js web app, Agent Skill, and local MCP server.
# Add to your Claude Code skills
git clone https://github.com/yunshenwuchuxun/smart-drawio-nextGuides for using ai agents skills like smart-drawio-next.
smart-drawio-next is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by yunshenwuchuxun. Editable Draw.io diagrams for research and architecture: Next.js web app, Agent Skill, and local MCP server. It has 367 GitHub stars.
smart-drawio-next's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/yunshenwuchuxun/smart-drawio-next" and add it to your Claude Code skills directory (see the Installation section above).
smart-drawio-next is primarily written in JavaScript. It is open-source under yunshenwuchuxun on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh smart-drawio-next against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
Create editable Draw.io diagrams from natural language or reference images, for research, documentation, and presentations.
Skill & MCP 0.1.0: GitHub release · MCP on npm · Official MCP Registry
| Home | Transformer |
|---|---|
![]() |
![]() |
| Swin-Transformer | CLIP |
|---|---|
![]() |
![]() |

smart-drawio-next is a diagram generation tool built with Next.js 16, embedded Draw.io, and streaming LLM APIs. It helps you:
The project includes multi-model configuration, workspace recovery, generation history, and notifications. It can be deployed as a personal tool or an internal team service.
Version 0.1.0 is published. Choose the entry point that fits your workflow:
| Entry point | What it does | Distribution | Model setup |
|---|---|---|---|
| Website | Generate from text or images, then edit the diagram in the embedded Draw.io canvas | Hosted app or self-hosted Next.js | Configure your provider in the browser |
smart-drawio Skill |
Guide an agent through creating, editing, checking and saving editable diagrams | GitHub Skill and release ZIP | Uses the agent's own model |
| Smart Drawio MCP | Generate, validate, repair and style XML through local stdio tools | npm package and Registry entry | Only generate_drawio needs model API settings |
Install the fixed release:
npx skills add https://github.com/yunshenwuchuxun/smart-drawio-next/tree/tools-v0.1.0/skills/smart-drawio
The Skill is distributed as GitHub files, with no separate npm package. npx skills runs the general Skills CLI, which downloads the Skill from the repository. Its Python 3 validator works offline without third-party dependencies; MCP is optional.
Example agent request:
Use
$smart-drawioto create an original encoder–decoder Transformer diagram, save it as transformer.drawio, and check its connectors and labels.
Use Node.js 20.9 or later and a client that supports local stdio MCP. For clients using mcpServers JSON:
{
"mcpServers": {
"smart-drawio": {
"command": "npx",
"args": ["-y", "@yunshenwuchuxun/[email protected]"]
}
}
}
The client starts the server and communicates over stdin/stdout. Configure SMART_DRAWIO_PROVIDER, SMART_DRAWIO_BASE_URL, SMART_DRAWIO_API_KEY and SMART_DRAWIO_MODEL in the MCP process environment to enable generation through your OpenAI/Anthropic-compatible provider.
| Tool | Function | Model API required |
|---|---|---|
generate_drawio |
Create complete, validated XML from a text prompt | Yes |
validate_drawio |
Check XML syntax, IDs, parents and references | No |
repair_drawio |
Conservatively repair supported missing closing tags | No |
style_drawio |
Apply themes, style packs, presets and drawing tricks | No |
list_drawio_options |
List supported types, themes and tool options | No |
The MCP server returns uncompressed XML for the client to save. PNG/SVG/PDF previews and exports need an available Draw.io renderer or editor. Version 0.1.0 provides local stdio tools; the Registry link is installation metadata, and the Vercel URL is the website. This package has no remote HTTP MCP endpoint or live canvas session control.
Both examples below were rendered using the official Draw.io viewer and are available as editable files:
| Skill workflow | MCP generation workflow |
|---|---|
![]() |
![]() |
| Editable .drawio | Editable .drawio |
The Skill example used the agent's own model. The MCP example used a real OpenAI-compatible API request for codex/gpt-6.1-sol, then MCP validation and Draw.io rendering. The original MCP output includes one annotation crossed by a connector; the examples retain their actual outputs.
Release CI passed 291 JavaScript tests, 11 Python tests and 8 browser tests, plus lint, production build and isolated package installation. Public Skill installation and npm MCP handshake/tool calls were also verified.
See MCP setup, Skill installation, and version downloads. The Next.js application remains independently deployable to Vercel.
The app supports 20+ diagram types. You can choose one explicitly or let the model decide:
10 built-in color themes are available:
After generation, you can continue refining the diagram in the sidebar tools panel. All operations are XML-based transforms.
Used for bulk layout and connector refinement:
Used for stackable visual effects:
Used for one-click full visual styles:
Used for batch text formatting:
| Baseline: no style | Preset: comic + cross-hatch |
|---|---|
![]() |
![]() |
| Style pack: blueprint tech | Style pack: business clean |
|---|---|
![]() |
![]() |
Input Area (Chat + ImageUpload)
Code Editor
Canvas
Support Modals
ConfigManagerHistoryModalOptimizationPanelThe website and tools share the drawing core. To build and verify the packages from a source checkout:
pnpm build:mcp
pnpm test:tools
pnpm test:skill
pnpm verify:mcp
pnpm pack:tools
See packaging and publication for release checks. Publish only packages/mcp; the website's root package remains private.
@monaco-editor/react