mine/chinese-patent/drawio/SKILL.md
AI-powered Draw.io diagram generation with real-time browser preview. Create flowcharts, architecture diagrams, sequence diagrams, and cloud infrastructure diagrams (AWS/GCP/Azure) using natural language. Supports animated connectors, real-time editing, and structured A–H format extraction from text or images.
npx skillsauth add rinbarpen/vibe-coding drawioInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
AI-powered Draw.io diagram generation with real-time browser preview for Claude Code.
This skill enables Claude Code to create, edit, and manage draw.io diagrams through natural language commands. It provides real-time browser preview, version history, and supports various diagram types including flowcharts, architecture diagrams, sequence diagrams, and more.
.drawio filesThis skill uses the Next AI Draw.io MCP server. The MCP server will be automatically installed when you use this skill.
The skill automatically configures the MCP server with:
npx["--yes", "@next-ai-drawio/[email protected]"]6002 (automatically finds next available port if in use)| Variable | Default | Description |
|----------|---------|-------------|
| PORT | 6002 | Port for the embedded HTTP server |
| DRAWIO_BASE_URL | https://embed.diagrams.net | Base URL for draw.io (for self-hosted deployments) |
| Tool | Description |
|------|-------------|
| start_session | Opens browser with real-time diagram preview |
| create_new_diagram | Create a new diagram from XML |
| edit_diagram | Edit diagram by ID-based operations |
| get_diagram | Get the current diagram XML |
| export_diagram | Save diagram to a .drawio file |
Generate an AWS architecture diagram with Lambda, API Gateway, DynamoDB,
and S3 for a serverless REST API
Create a flowchart showing the CI/CD pipeline: code commit -> build ->
test -> staging deploy -> production deploy with approval gates
Design a microservices e-commerce system with user service, product catalog,
shopping cart, order processing, and payment gateway
Generate a GCP architecture diagram with Cloud Run, Cloud SQL, and
Cloud Storage for a web application
Create a sequence diagram showing OAuth 2.0 authorization code flow
between user, client app, auth server, and resource server
Give me an animated connector diagram of transformer's architecture
【领域】科研流程
Extract a workflow diagram from my research paper about
continuous stirred tank reactors using the A–H format.
【领域】软件架构
Extract an architecture diagram from this technical spec document.
Include API gateway, microservices, and databases.
【领域】商业流程
Recreate this expense approval flowchart image in A–H format
for standardized documentation.
Create a diagram with two nodes:
1) "Model" with label: LaTeX \(y=Wx+b\)
2) "Loss" with label: $$\mathcal{L}=\sum_i (y_i-\hat y_i)^2$$
Make sure the equations render cleanly and are readable.
Create an IEEE-style neural network architecture diagram:
1) Input: \(x \in \mathbb{R}^{H \times W \times C}\)
2) Conv Block: \(f = \sigma(W * x + b)\)
3) Pooling: \(\text{MaxPool}_{2 \times 2}\)
4) FC Layer: \(y = \text{softmax}(Wh + b)\)
Use grayscale-compatible styling (black borders, white fill).
Add caption: "Fig. 1. Architecture of the proposed model."
Export as PDF for LaTeX integration.
Generate an IEEE-standard network architecture diagram for a campus network.
Include Core (Redundant Routers), Distribution (L3 Switches), and Access layers.
Use standard symbols (Router=Circle+X, Switch=Square+Arrows).
Ensure orthogonal lines and high contrast for academic paper publication.
Claude Code <--stdio--> MCP Server <--http--> Browser (draw.io)
start_session to open a browser windowWhen you ask Claude to create or edit a diagram:
start_session to open a browser window with the draw.io editor.drawio fileWhen generating patent figures for direct filing usage:
15px for structure/relationship figures.图N xxx.\\(...\\) or $$...$$).edit_diagram call and minimize get_diagram usage for large diagramsWhen creating diagrams with mathematical expressions, you MUST follow these rules:
1. ALWAYS use LaTeX delimiters for math:
$$\frac{a}{b}$$\(\frac{a}{b}\)`a/b`2. NEVER output bare LaTeX commands without delimiters:
❌ WRONG: \frac{a}{b}
❌ WRONG: \alpha + \beta
❌ WRONG: x^2 + y^2
✅ CORRECT: $$\frac{a}{b}$$
✅ CORRECT: \(\alpha + \beta\)
✅ CORRECT: $$x^2 + y^2$$
3. Use appropriate delimiter type:
| Content Type | Delimiter | Example |
|--------------|-----------|---------|
| Standalone equation | $$...$$ | $$E = mc^2$$ |
| Equation in text | \(...\) | Model: \(y = Wx + b\) |
| Simple inline | `...` | `x^2` (AsciiMath) |
4. For XML generation:
prepareMathLabel() from src/math/index.js to auto-detect and wrap unwrapped mathvalue="..." attributes5. Validation checklist before output:
\frac, \sqrt, \sum, \int etc. is inside $$ or \(...\)\alpha, \beta are delimited^ and subscripts _ are delimited$$, paired \( and \))skills/drawio/src/math/index.js helpers to wrap/validate/escape labels before placing them into value="..."references/math-typesetting.md for XML examples and export notesreferences/style-presets.md instead of generating styles from scratchreferences/drawio-aesthetic-guide.mdreferences/structured-diagram-prompts.mdreferences/ah-to-xml.md, then refine via edit_diagramreferences/structured-diagram-prompts.md for complete templatereferences/structured-diagram-quality.md before finalizingWhen creating diagrams for IEEE, ACM, Elsevier, Springer, or other academic publications:
LaTeX Formatting (MANDATORY for equations):
\(...\) for simple expressions within text$$...$$ for standalone equationsreferences/math-typesetting.md for complete LaTeX quick reference and IEEE domain formulasFigure Standards:
Grayscale Compatibility:
Export for LaTeX Integration:
math-output=html parameter for selectable math in exported PDFsReference Documents:
references/math-typesetting.md - Complete LaTeX reference with IEEE formulasreferences/ieee-network-diagrams.md - IEEE network diagram standards.drawioSome draw.io builds/plugins are strict about mxCell id="..." requiring numeric IDs (e.g. id="2"). If a generated XML uses custom string IDs (e.g. id="plant", id="edge_N1_N2"), the editor may error while loading.
mxCell IDs are numeric and that source/target references point to those numeric IDs.N1) in data-id="...".If port 6002 is in use, the server will automatically try the next available port (up to 6020).
Call start_session first to open the browser window.
Check that the browser URL has the ?mcp= query parameter. The MCP session ID connects the browser to the server.
Extras > Mathematical Typesetting</> to reveal hidden HTML formatting tags, delete extra tags, then re-enable Mathematical TypesettingText Overflow to Block or Width (sometimes Hidden) and resize the shape to match the rendered equationApache-2.0
DayuanJiang
1.0.0
testing
UI testing knowledge and patterns for AI-assisted testing workflows
tools
ppt-master 集成技能。覆盖演示文稿初始化、幻灯片母版管理、主题应用、模板继承链与多格式导出。
development
python-pptx 幻灯片内容构建技能。覆盖幻灯片创建、内容填充(文本/表格/图表/图片)、样式应用与演讲者备注生成。
tools
openpyxl 图表创建与格式化技能。覆盖图表类型选择、坐标轴配置、系列管理、调色板与条件格式化。