From bahayonghang-drawio-skills
Desktop-first Draw.io diagram creation, editing, replication, and conversion (redraw, remake, 重画, 绘图, 画图, 做个图) with a YAML design system supporting 6 themes. Use when creating visual diagrams, drawings, figures, schematics, charts, system architecture diagrams, network diagrams, flowcharts, UML, ER diagrams, sequence diagrams, state machines, org charts, mind maps, cloud infrastructure diagrams, research workflows, paper figures, IEEE-style diagrams, technical roadmaps, or diagrams containing formulas, equations, LaTeX, AsciiMath, MathJax, inline math, block math, 公式, 行内公式, or 行间公式. Academic-paper requests should classify the figure as architecture, roadmap, or workflow, then deliver the editable offline bundle plus SVG by default. Accepts Mermaid, CSV, and YAML input; convert to drawio from mermaid to drawio or any structured source. Default to offline/local generation with `.drawio` + sidecars; use an optional live backend only when browser or inline refinement is genuinely needed.
npx claudepluginhub joshuarweaver/cascade-content-creation-misc-1 --plugin bahayonghang-drawio-skillsThis skill is limited to using the following tools:
Create, edit, validate, and export professional draw.io diagrams through a YAML-first workflow with academic and engineering guardrails.
assets/examples/login-flow-test.drawioassets/examples/login-flow.drawioassets/examples/microservices.drawioassets/examples/neural-network.drawioassets/schemas/spec.schema.jsonassets/themes/academic-color.jsonassets/themes/academic.jsonassets/themes/dark.jsonassets/themes/high-contrast.jsonassets/themes/nature.jsonassets/themes/tech-blue.jsonevals/baseline-prompts.jsonevals/evals.jsonevals/fixtures/import-simple-compressed.drawioevals/fixtures/import-simple.drawioevals/fixtures/replicate-academic-highlight.svgevals/fixtures/replicate-brand-architecture.svgevals/fixtures/replicate-warm-approval.svgreferences/docs/academic-export-checklist.mdreferences/docs/academic-figure-playbook.mdGuides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Guides building MCP servers enabling LLMs to interact with external services via tools. Covers best practices, TypeScript/Node (MCP SDK), Python (FastMCP).
Generates original PNG/PDF visual art via design philosophy manifestos for posters, graphics, and static designs on user request.
Create, edit, validate, and export professional draw.io diagrams through a YAML-first workflow with academic and engineering guardrails.
Use this backend order unless the user explicitly asks for browser or inline visual refinement:
.drawio locally, emit canonical sidecars, and export locally when possible..drawio.* artifacts.references/docs/mcp-tools.md for capability names and current provider mapping.Choose the route first, then load only the references that matter:
| Route | When to Use | Required References |
|---|---|---|
create | New diagram from text/spec | references/workflows/create.md, references/docs/design-system/README.md, references/docs/design-system/specification.md |
edit | Modify an existing diagram | references/workflows/edit.md, references/docs/mcp-tools.md, references/docs/migration-readiness.md |
replicate | Recreate an uploaded image or reference diagram | references/workflows/replicate.md, references/docs/design-system/README.md, references/docs/design-system/specification.md, references/docs/design-system/color-guide.md, references/docs/migration-readiness.md |
math-formula | Diagram labels or nodes contain formulas, equations, LaTeX, AsciiMath, MathJax, inline math, block math, loss functions, derivations, or symbol legends | references/docs/math-typesetting.md, references/docs/design-system/formulas.md |
academic-paper | Paper figure, IEEE, thesis, manuscript, research workflow | references/docs/academic-figure-playbook.md, references/docs/academic-export-checklist.md, references/docs/ieee-network-diagrams.md, references/docs/math-typesetting.md |
stencil-heavy | Cloud architecture, network gear, provider icons | references/docs/stencil-library-guide.md, references/docs/design-system/icons.md, references/official/xml-reference.md |
edge-audit | Dense diagrams, routing quality review, overlapping arrows | references/docs/edge-quality-rules.md, references/official/xml-reference.md |
Academic triggers: paper, academic, IEEE, journal, thesis, figure, manuscript, research.
Math triggers: formula, equation, LaTeX, AsciiMath, MathJax, inline math, block math, loss function, derivation, symbol legend, 公式, 行内公式, 行间公式.
search_shape_catalog only when exact stencil identity matters. If it is unavailable, fall back to documented icon mappings or semantic shapes instead of blocking the task.meta.profile: academic-paper for paper-quality figures; use engineering-review for dense architecture/network diagrams that need stricter routing review.meta.profile: academic-paper is active, set meta.figureType to exactly one of architecture, roadmap, or workflow before finalizing layout or labels.router, switch, firewall, server, load_balancer, subnet, internet, and ap, plus optional link metadata like srcInterface, dstInterface, ip, vlan, bandwidth, and linkType for automatic edge labels..drawio, .spec.yaml, .arch.json, and .svg. Add a matching .png only when the request is thesis, A4, Word, raster-first, screenshot-rebuild, or explicitly asks for PNG, and only when draw.io Desktop export is available.node <skill-dir>/scripts/cli.js input.yaml output.drawio --validate --write-sidecarsnode <skill-dir>/scripts/cli.js input.yaml output.svg --validate --write-sidecars
<skill-dir>is the directory containing this SKILL.md file. Use--use-desktopwhen you want draw.io Desktop to export embedded.drawio.svg. PNG/PDF/JPG export requires draw.io Desktop; standalone SVG can be generated locally without it.
references/docs/math-typesetting.md before drafting labels. Generate only official delimiters: $$...$$ for standalone formulas, \(...\) for inline formulas, and `...` for AsciiMath. Do not generate $...$, \[...\], or bare LaTeX commands.--use-desktop) is preview-quality: edges are rendered as straight lines between node centers. For publication-grade SVG with orthogonal routing, use --use-desktop to export via draw.io Desktop, or export to .drawio and open in draw.io for manual refinement.<name>.drawio, <name>.spec.yaml, and <name>.arch.json. This enables offline-first editing without requiring a live session./drawio replicate, preserve the source palette by default. Record extracted color intent in meta.replication, set meta.source: replicated, and write explicit style overrides for high-confidence node, edge, and module colors. Use theme-first only when the user asks for brand normalization, grayscale conversion, or paper-safe recoloring.references/official/xml-reference.md and references/official/style-reference.md as the upstream mirrors. Local docs only add drawio-skill-specific guidance.Skip consultation and ASCII confirmation when ALL of the following are true:
<= 12 nodes, low branching, single page).In fast path, generate the YAML spec directly, validate, render, and present the result with a note that further edits can be handled via /drawio edit.
Use the full consultation + ASCII draft path when ANY of the following are true:
references/workflows/create.md.references/docs/math-typesetting.mdreferences/docs/design-system/formulas.mdreferences/docs/academic-figure-playbook.mdreferences/docs/ieee-network-diagrams.mdreferences/docs/academic-export-checklist.mdreferences/docs/math-typesetting.mdreferences/docs/stencil-library-guide.mdreferences/docs/design-system/icons.mdreferences/official/xml-reference.mdmeta.figureType before validation and choose one dominant academic grammar: structure (architecture), progression (roadmap), or execution (workflow)..drawio or .svg, and prefer --write-sidecars for any artifact you expect to edit later./drawio edit for incremental changes to labels, styles, positions, and themes./drawio replicate for uploaded images or screenshots that need structured redraw..spec.yaml when the skill created the original diagram..drawio without a sidecar, import it to a YAML bundle first:
node <skill-dir>/scripts/cli.js existing.drawio --input-format drawio --export-spec --write-sidecarsread_diagram_xml + patch_diagram_cells. If either capability is missing, edit the offline YAML bundle instead.The CLI and DSL include three validator layers:
Use --strict when you want validation warnings to fail the build, especially for paper figures and release-grade engineering diagrams.
references/docs/mcp-tools.md: capability vocabulary, provider mapping, and live-routing rulesreferences/docs/academic-figure-playbook.md: academic figure typing, delivery matrix, A4 readability, and paper-mode quality gatereferences/docs/migration-readiness.md: what is backend-agnostic today and what still depends on the current live edit providerreferences/official/xml-reference.md: upstream XML generation mirror covering routing, containers, layers, tags, metadata, and dark modereferences/official/style-reference.md: upstream style-property and shape catalog mirrorreferences/docs/edge-quality-rules.md: routing, spacing, label clearance, connection-point policyreferences/docs/stencil-library-guide.md: when to use shape search, icon mappings, and semantic fallbacksreferences/docs/academic-export-checklist.md: caption, legend, grayscale, font-size, vector export checksreferences/docs/math-typesetting.md: official formula delimiters, unsupported syntax, MathJax toggle, YAML/XML escaping, export guidancereferences/docs/design-system/formulas.md: formula node styling, placement, and sizing guidancereferences/examples/: reusable YAML templates for academic and engineering diagrams