Drawio Ai Kit
A reusable skill kit for AI agents to generate structurally precise and aesthetically standardized draw.io diagrams across major cloud platforms and BPMN, with declarative layout, stencils, and validation.
sparklabx · 已有 AI 审核记录
安装与使用
运行命令前先阅读来源与依赖说明。复制命令不会自动安装或执行。
npx skills add sparklabx/drawio-ai-kit技能说明
An orchestration and validation framework enabling AI agents to generate structurally precise and aesthetically standardized draw.io diagrams, optimized for AWS, Azure & GCP architectures.
It mitigates common AI agent hallucinations (such as generating non-existent stencil IDs that result in empty shapes) using three key components:
- Declarative Catalog — A single source of truth mapping draw.io stencil IDs (
mxgraph.aws4.*) to their respective taxonomies and canonical color palettes. - Design Principles — Codified architectural and layout rules (
rules/principles.md). - Structural Validator — A static analysis engine that audits diagram XML to guarantee stencil references are valid and design principles are satisfied prior to serialization.
Exposed to the AI via the zero-dependency drawio-ai CLI.
Showcase
One diagram per platform — all generated end-to-end by the kit: no hand-placed coordinates, real stencils, validated, vision-checked. Full set in examples/.