Commit Graph

13 Commits

Author SHA1 Message Date
Gaudenz Alder 2c4c3bf23c feat: add edge routing post-processor and integrate into all servers
Add a post-processor that optimizes draw.io XML edge routing:
- Simplify unnecessary waypoints (collinear points, backtracks, trivial jogs)
- Fix edge-vertex collisions by rerouting around obstacles
- Preserve approach direction for terminal segments (jetty preservation)
- Straighten approach angles and fix ellipse perimeter offsets

Integrate into mcp-app-server (shared.js), mcp-tool-server (index.js),
and skill-cli (SKILL.md) as an optional post-processing step.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 15:21:54 +02:00
Gaudenz Alder 3366c8e7b3 feat: single source of truth for XML generation prompt
Move the draw.io XML generation reference to shared/xml-reference.md
and wire all four consumers to use it instead of duplicating the
content. Add layers, tags, and metadata/placeholders documentation.

- MCP app server: reads at startup (Node.js) or pre-builds into
  generated-html.js (Workers) via build-html.js
- MCP tool server: reads at startup with fallback to local copy;
  prepack script bundles the file before npm publish
- Skill: references the GitHub raw URL so it works after install
- Project instructions: tells users to copy from GitHub

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 18:59:19 +02:00
Gaudenz Alder fdafebdbc0 fix: forbid all XML comments in diagram output across all four tools
Previously only warned about double-hyphens inside comments. Now XML
comments are strictly forbidden — they waste tokens and serve no purpose.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 20:10:07 +02:00
Gaudenz Alder 7b98336178 Improve skill auto-trigger with broader verbs and diagram types
Add broader trigger verbs (create, generate, draw, design), new diagram
types (mockup, wireframe, UI sketch), and common typo (drawoi). Start
description with "Always use when..." for better trigger reliability.

Refs #20, PR #21

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 19:40:36 +01:00
Gaudenz Alder 4e9dfc6631 Add edge label font size guidance to all prompts
Edge labels default to 11px (vs 12px for vertices), so wrapping
them in HTML markup to reduce font size is unnecessary.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-20 12:37:11 +01:00
Gaudenz Alder 8c44b68fd5 Add WSL2 support to skill-cli (#17)
Add WSL2 environment detection, CLI path resolution via /mnt/c/...,
export example, and wslpath-based file opening with cmd.exe.

Co-Authored-By: Yuji HINOTO <hinoto@oricon.jp>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-20 12:28:17 +01:00
Gaudenz Alder 7135d20fc0 Add dark mode color documentation and adaptiveColors="auto" to all prompts
Document how strokeColor/fillColor/fontColor default to "default" (adapts
to light/dark theme), how explicit colors are auto-inverted via
mxUtils.getInverseColor, and the light-dark() function for explicit
dual-theme colors. Add adaptiveColors="auto" to mxGraphModel in all XML
examples and LLM tool description prompts.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-20 11:46:58 +01:00
Gaudenz Alder 437edb24e8 Improve drawio skill adherence to Anthropic skill guide
Add trigger phrases to YAML description for reliable skill activation,
add error handling to workflow steps, add troubleshooting table, and
move detailed XML reference material to references/ for progressive
disclosure.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-20 11:26:50 +01:00
Gaudenz Alder 3ffaf3f334 Bump version to 1.1.7 in package.json and update SKILL.md references in documentation 2026-03-11 10:18:07 +01:00
Gaudenz Alder fe8e059510 Add critical edge geometry requirements to documentation and code comments 2026-03-11 10:07:46 +01:00
Gaudenz Alder fac2437c4c Update documentation to clarify edge routing and arrowhead clearance in draw.io diagrams; increment version to 1.1.5 2026-03-05 14:52:23 +01:00
Gaudenz Alder ce511c9c9a Enhance documentation on edge routing and container usage in draw.io diagrams 2026-03-05 14:24:26 +01:00
Gaudenz Alder 15ce87fe3f Adds skill+cli version 2026-02-21 19:15:45 +01:00