Draw.io Diagram Power for Kiro
A Kiro skill that enables AI-assisted creation of professional, editable draw.io diagrams. This Power teaches Kiro how to generate valid `.drawio` XML files for architecture diagrams, flowcharts, network topologies, and technical illustrations.
What is a Kiro Power ?
Kiro Power are structured prompts and reference materials that extend Kiro's capabilities in specific domains. When this Power is loaded into Kiro's context, it gains the ability to produce valid draw.io XML that can be opened directly in [draw.io](https://app.diagrams.net/) or diagrams.net.
Features
- **Native draw.io XML output** — Files open directly in draw.io desktop or web app
- **Cloud provider icons** — AWS, Azure, and GCP official icon libraries
- **Architecture patterns** — Pre-built layouts for common diagram types
- **Customisable branding** — Easily adapt colours to match your organisation
- **Comprehensive reference** — Shapes, styles, arrows, and containers
Quick Start
For Kiro Users
- Add the Drawio Kiro Power :
- Goto
- Powers > Add Custom Power > import from url, folder or build your own
- Select git url or your local folder where you have cloned the github url of the Drawio Kiro Power
- Select the Drawio Diagramms Power, clic on Try Power
- In Kiro Chat Window, ask Kiro to create diagrams from with a Prompt, like this :
Create an AWS architecture diagram using the drawio-skill showing a 3-tier web application
with ALB, ECS, and RDS across two availability zones.
Hints & Tips
Provide detailed context to Kiro in the chat window, for instance, discuss first the architecture requirements, ask for a wireframe or mermaid diagram of the architecture first, continue until the architecture fit your needs and then calling Draw io Kiro Power to convert into a drawio file.
Repository Structure
drawio-skill/
├── POWER.md # Main Power(required)
├── README.md # This file
└── steering/
├── architecture-patterns.md # Common diagram layouts
├── branding.md # Company colour customisation
├── cloud-icons.md # AWS/Azure/GCP icon reference
└── style-guide.md # Shapes, effects, and styling
Example Outputs
The skill can generate diagrams for:
- **Cloud architecture** — Multi-region, multi-AZ deployments
- **DR/Replication flows** — Production to DR site with failover paths
- **Microservices** — Service mesh, API gateways, message queues
- **Network topology** — VPCs, subnets, hub-and-spoke networks
- **CI/CD pipelines** — Build, test, deploy stages
- **Data flows** — ETL pipelines, data lake architectures
Customising for Your Organisation
Adding Your Brand Colours
Edit `references/branding.md` to define your organisation's colours:
## Your Brand Colors
Primary: fillColor=#YOUR_PRIMARY;strokeColor=#YOUR_DARKER;fontColor=#FFFFFF
Secondary: fillColor=#YOUR_ACCENT;strokeColor=#YOUR_DARKER;fontColor=#333333
**Example for "Acme Corp" (blue/orange brand):**
## Acme Corp Brand Colors
Primary: fillColor=#1E3A5F;strokeColor=#162d4a;fontColor=#FFFFFF
Secondary: fillColor=#FF6B35;strokeColor=#cc552a;fontColor=#FFFFFF
Dark: fillColor=#0D1B2A;strokeColor=#0D1B2A;fontColor=#FFFFFF
Light BG: fillColor=#F0F4F8;strokeColor=#1E3A5F
Calculating Stroke Colours
Stroke colours should be approximately 20% darker than fill colours for a professional look:
| Fill | Calculation | Stroke | |------|-------------|--------| | `#1E3A5F` | Multiply RGB by 0.8 | `#162d4a` | | `#FF6B35` | Multiply RGB by 0.8 | `#cc552a` |
Adding Company-Specific Patterns
If your organisation has standard diagram layouts, add them to `references/architecture-patterns.md`:
## Acme Standard Architecture
### Customer Data Platform Layout
┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │ Ingest │──►│ Process │──►│ Serve │ │ (Kinesis) │ │ (EMR) │ │ (Redshift) │ └─────────────┘ └─────────────┘ └─────────────┘
Renaming for Your Organisation
Feel free to fork and rename this Power for internal use:
- Fork the repository
- Update references to match your company
- Add your logo/branding to diagrams (via custom header patterns)
- Share internally via your preferred method
Using the Power
Basic Usage
Create a simple flowchart showing user login → authentication → dashboard
With Cloud Icons
Create an Azure architecture diagram with:
- Application Gateway
- 2 VMs in an availability set
- Azure SQL Database
- Key Vault for secrets
With Branding
Create a data flow diagram using our company branding for a
customer onboarding process
Complex Multi-Cloud
Create a hybrid architecture showing:
- On-premise VMware environment (left)
- AWS landing zone (center)
- DR site in Azure (right)
Include VPN connections and data replication flows
Tips for Best Results
- **Be specific about layout** — "left to right", "three zones", "layered stack"
- **Name your components** — Give Kiro specific service names to label
- **Specify cloud provider** — "AWS", "Azure", or "GCP" for correct icons
- **Request legends** — "Include a legend explaining the color coding"
- **Mention status** — "Show production as active (green) and DR as standby (grey)"
Opening Generated Files
- Kiro will output a `.drawio` file
- Download the file
- Open with:
- [draw.io Desktop](https://www.diagrams.net/) (recommended)
- [draw.io Web](https://app.diagrams.net/)
- VS Code with [Draw.io Integration](https://marketplace.visualstudio.com/items?itemName=hediet.vscode-drawio) extension
Contributing
Contributions are Welcome! Areas that would benefit from expansion:
- Additional cloud provider icons (Oracle Cloud, IBM Cloud)
- Industry-specific patterns (healthcare, finance, retail)
- Integration with other diagramming tools
- Accessibility improvements
Licence
MIT — Use freely, attribution appreciated.
Acknowledgements
- Special thanks to scarr05 : This initial version of this Kiro Power is based on [scarr05/claude-skills-pub](https://github.com/scarr05/claude-skills-pub/tree/main)
- [draw.io / diagrams.net](https://www.diagrams.net/) — Excellent free diagramming tool
- [AWS Architecture Icons](https://aws.amazon.com/architecture/icons/)
- [Azure Architecture Icons](https://docs.microsoft.com/en-us/azure/architecture/icons/)
- [GCP Architecture Icons](https://cloud.google.com/icons)
---
Frequently Asked Questions
Why XML instead of a visual editor?
Kiro need MCP Servers to interact with visual editors, current MCP Server for these tools are limited and quite complexe to configure. Kiro can generate structured XML. The draw.io XML format is well-documented and produces files that are fully editable in the draw.io application.
How do I add icons not in the reference?
- Open draw.io with the relevant icon library enabled
- Drag the icon you want onto the canvas
- Select it and press Ctrl+E (Cmd+E on Mac) to view the style
- Copy the `resIcon=` or `image=` value
- Add it to your local copy of `references/cloud-icons.md`
Can Kiro modify existing diagrams?
Yes in theory, if you provide the XML content of an existing `.drawio` file, Kiro can add elements, change styles, or reorganise the layout.