Show HN: I Taught Claude Code To Draw Diagrams – The XML Pitfalls Were Brutal — Git skill for Claude Code
by ekusiadadus - Article URL: https://github.com/ekusiadadus/draw-mcp Comments URL: https://news.ycombinator.com/item?id=46298650 Points: 1 # Comments: 3.
How to install Show HN: I Taught Claude Code To Draw Diagrams – The XML Pitfalls Were Brutal
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open ekusiadadus/draw-mcp and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Show HN: I Taught Claude Code To Draw Diagrams – The XML Pitfalls Were Brutal does
A Claude Code skill and CLI validator for generating high-quality draw.io diagrams. 31 validation rules across 10 modules, 4 validation modes, preset system, and CI-ready tooling.
Alternatives in Git
- Address PR Comments 71.9k ★
- Fix PR — by metabase - Fetches and fixes unresolved PR comments by automatically retrieving feedback, addressing review 46.5k ★
- Gh Address Comments — Address review and issue comments on open GitHub PRs via CLI 14.6k ★
README
draw-mcp — AI-Generated draw.io XML Quality Standard
A Claude Code skill and CLI validator for generating high-quality draw.io diagrams. 31 validation rules across 10 modules, 4 validation modes, preset system, and CI-ready tooling.
Positioning
| Feature | draw-mcp | draw.io MCP Server | Mermaid.js |
|---|---|---|---|
| Output | Native XML | Image/JSON | Text DSL |
| Layout control | Pixel-perfect | Auto-layout | Auto-layout |
| Japanese text | Full support | Limited | No control |
| Validation | 31 rules, 4 modes | None | Syntax only |
| Presets | YAML-based | None | None |
| Offline | Yes | Optional | Yes |
| Best for | Production diagrams | Quick previews | Simple flows |
**draw-mcp** is a Claude Code XML generation skill with strict validator and style guide. The official draw.io MCP server is complementary (use it for previews, Mermaid, CSV). draw-mcp focuses on **quality** for production diagrams.
Supported Features
Features backed by validator rules, tests, and real examples:
- 31 Validation Rules across 10 modules (defined in
claims.yaml) - 4 Validation Modes: loose, standard, strict, production
- CLI Tool:
draw-mcp-validatewith text/JSON output, severity filtering, and mode selection - Preset System: YAML-based presets as validation profiles (
--preset) - Font Management: Enforces
fontFamilyon all text elements - Edge Routing: Z-order, relative geometry, arrowhead spacing, node spacing
- Containers: Swimlane, group, custom containers with pointer events
- Layers: Layer structure validation, cross-layer edge detection
- Endpoint Semantics: Source/target validity, floating/orphan edge detection
- Security: Dangerous HTML tag detection, control character validation
- Japanese Text: Width allocation for CJK characters
- CI Integration: GitHub Actions, pre-commit hooks, 153+ tests
Experimental Features
Features documented but not deeply validated:
...
Related Skills
Gl Review
Review a GitLab merge request and leave the findings as draft inline comments that only you can see until you
Gh Issue Show
List GitHub issues in the current repository, or show details of a specific issue. Use when the user wants to
Rankmath SEO Wp
Rank Math SEO compliant WordPress article writer skill. Battle-tested on moksaweb.com. Compatible with Claude
Agent Traffic Control
Coordination toolkit for parallel Claude Code sessions sharing one repo — issue-pickup claim protocol, worktre
Oop Portfolio Template
Template repo for students in the Object-Oriented Programming course (NTHU, taught by Chenwei Chiang): a semes
Frontend Skill
create-frontend — a Claude Code skill that turns 'build me a frontend' into a production-oriented workflow: cl
Related Agents
Diagram Generator
Specialized agent for creating professional diagrams and visualizations for articles using MCP chart servers.
Ssrf Hunter
Active SSRF hunter for an ingested program. Consumes webvuln-surface injection points (ssrf_likely params + UR
Diagram Generation
Diagram generation expert for draw.io, PlantUML, and Mermaid — use proactively when creating architecture diag