Draw.io Diagram Generation
Paste the following prompt into your AI chat to install this skill:
Install @user_41c94e21/guoxueting000 using https://skillhub.cn/install/skillhub.md.
About this skill
Problem
Hand-writing draw.io XML often breaks on small structural details: non-sequential mxCell IDs, ERD relationship arrows attached to table containers instead of row cells, missing class attribute/method dividers, incomplete sequence lifelines or activation boxes, and invalid line breaks in value attributes. This skill turns diagram requests into deliverable outputs through a repeatable workflow.
Workflow and Boundaries
- Detect the diagram type first: ERD, UML class diagram, sequence diagram, flowchart, or architecture diagram.
- Plan entities, relationships, participants, lifelines, and steps before writing XML.
- Apply type-specific templates: ERD uses
table/tableRow, class diagrams use attribute blocks, divider lines, and method blocks, while sequence diagrams use lifelines, activation boxes, and arrow styles. - Save to
./diagrams/.drawioafter checking IDs, row heights, connection targets, and tag closure. - Export PNG first, then ask whether
.drawio, SVG, PDF, or all formats are needed.
It fits database ERDs, class structures, interaction sequences, process flows, and system overviews. Animated visuals, pixel-level design, or non-native draw.io shapes still require manual refinement.
Use Cases
- Turn database tables into an ERD with entity relationship arrows and an editable .drawio file.
- Draw service interactions as a sequence diagram with lifelines, activation boxes, and arrows.
- Convert process decision steps into a flowchart saved under diagrams and exported as SVG.
- Produce an architecture overview for review and deliver it as PDF when requested.
Best For
- Database engineers who need quick ERD reviews with relationship arrows.
- Backend developers who need editable UML class diagrams for design docs.
- Architects who need sequence diagrams with lifelines and PNG previews.
- Product managers who need process flowcharts exported as SVG for review.
Related Skills
Excalidraw Wrap is an Excalidraw-focused wrapper, with tags for TypeScript, GitHub, and automation.
Calibrate vague brand inputs, expose contradictions, distill a brand core and positioning boundaries, then stress-test the result into an executable brand skeleton.
Generate localized Chinese brand names, naming directions, slogans, and risk checklists with reusable templates and trademark search reminders.
A beginner-friendly photo analysis tool that infers shooting parameters from visual features and suggests post-processing, optimization, and learning keywords.