forceinjection/awesome-skills/drawio-designer
Claude Code and agent skill by forceinjection/awesome-skills
- community
Checking that the SKILL.md file is still in the repository.
Creates, edits, and manages draw.io XML diagrams, converts them to PNG, and integrates AWS, K8s, and General IT icons. Invoke when the user wants to create, modify, or format draw.io architecture diagrams or flowcharts.
Install
npx vskill@latest install forceinjection/awesome-skills/drawio-designerSKILL.md
drawio-designer Diagram Skill
A Claude Code / Trae AI skill for creating, editing, and managing draw.io diagrams with professional quality standards.
Purpose
This skill enables AI-assisted creation and maintenance of draw.io architecture diagrams, flowcharts, and technical documentation visuals. It ensures consistent styling, proper layout, and automated PNG conversion for presentations and documentation.
When to Use This Skill
Use this skill when you need to manipulate diagram assets or layout structures programmatically. The core scenarios cover XML modifications, format conversions, and layout adjustments:
- Create or edit
.drawioXML diagram files - Convert diagrams to PNG format with transparent backgrounds
- Adjust element positions and layouts programmatically
- Ensure consistent font families (especially for Quarto slides)
- Work with architecture diagrams using official AWS, Kubernetes, and General IT icons
- Maintain professional diagram quality with accessibility standards
- Debug layout issues or element overlaps
How It Works
The skill provides direct XML manipulation and automated quality checks to ensure diagrams meet professional standards. The operational workflow includes:
- Direct XML Editing: Manipulates
.drawiofiles as structured XML - Automated Conversion: Converts diagrams to high-resolution PNG via scripts
- Layout Calculations: Computes proper spacing, alignment, and margins
- Icon Integration: Searches and integrates official architecture icons (AWS, K8s, Network, General)
- Quality Assurance: Applies design principles and accessibility guidelines
Key Features
The capabilities of this skill ensure high-fidelity outputs for complex architectures and technical flows.
Font Management
Typography consistency across diagrams is enforced by strict styling rules:
- Sets
defaultFontFamilyinmxGraphModel - Applies
fontFamilyto individual text elements - Recommended:
"Noto Sans JP"for Japanese text support
PNG Conversion
Conversion tools produce optimized images tailored for documentation:
- 2x scale (high resolution)
- Transparent background
- PNG format suitable for presentations
Layout Adjustment
Programmatic element positioning ensures alignment and prevents overlapping:
- Calculate element centers:
y + (height / 2) - Align multiple elements by matching center coordinates
- Maintain minimum 30px margins from container boundaries
- Position arrows to avoid label overlaps (20px+ clearance)
Visual Styling (Edges & Icons)
To ensure diagrams render correctly across all platforms and PNG conversions, you must enforce strict styling rules:
- Edges (Connections): ALWAYS explicitly define
strokeColorandstrokeWidthin the style (e.g.,style="edgeStyle=orthogonalEdgeStyle;rounded=1;strokeColor=#333333;strokeWidth=2;html=1;"). Without this, lines may render invisibly. - Edge Labels: Labels must be separate
<mxCell>elements withvertex="1" connectable="0" parent="[edge_id]"rather than being properties of the edge itself. - Label Overlap Prevention: Icons typically use
verticalLabelPosition=bottom. Vertical connections exiting from the bottom will cross and obscure this text. To prevent overlap, explicitly route connections from the sides usingexitX,exitY(e.g.,exitX=0;exitY=0.5;exitDx=0;exitDy=0for the left side) and define an<Array as="points">in themxGeometryto route the edge clearly around the text. - Icons: Ensure
html=1andpointerEvents=1are included in the style. AWS 4 resource icons MUST include afillColormatching their AWS category andstrokeColor=none. WithoutfillColor, the SVG path will render as transparent/invisible in CLI exports! - _Compute_ (e.g., EC2, ECS, Lambda):
fillColor=#F58536 - _Database_ (e.g., RDS, DynamoDB):
fillColor=#3355CC - _Networking_ (e.g., VPC, API Gateway):
fillColor=#8C4FFF - _Storage_ (e.g., S3):
fillColor=#4F81A1 - _General/Default_:
fillColor=#232F3E - Example:
style="shape=mxgraph.aws4.resourceIcon;resIcon=mxgraph.aws4.ec2;fillColor=#F58536;strokeColor=none;html=1;pointerEvents=1;verticalLabelPosition=bottom;verticalAlign=top;align=center;"
Architecture Icon Integration
Search and integrate official architecture service icons using the built-in script. It supports standard AWS resources (mxgraph.aws4.*), Kubernetes objects (img/lib/kubernetes/*), Network topology elements (mxgraph.cisco.*), and General IT elements (databases, actors, clouds) with automated styling.
Design Principles
Professional standards are applied to every diagram modification to guarantee clarity:
- Clarity: Simple, visually clean diagrams
- Consistency: Unified colors, fonts, icon sizes, line thickness
- Accuracy: Precise technical representation
- Accessibility: Sufficient color contrast, pattern usage
- Progressive Disclosure: Staged diagrams for complex systems
Quality Checklist
Automated validation ensures diagrams pass all baseline layout checks:
- No background color (transparent)
- Appropriate font sizes (1.5x standard for readability)
- Arrows on back layer (no overlaps)
- 30px+ margins from container boundaries
- Official service names and latest icons (AWS, K8s, Network, General)
- Visual verification of PNG output
Usage Examples
The following patterns demonstrate the standard approach for creating, converting, and searching for diagram components.
Create AWS Architecture Diagram
Convert Diagram to PNG
Find Architecture Icon
Best Practices
Text Width Calculation Japanese text requires 30-40px per character to render correctly without clipping:
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/drawio-designer/SKILL.md
Popularity
- Repository stars
- 52
- Repository forks
- 13
- 7-day trend score
- 20
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/forceinjection/awesome-skills/drawio-designer)