2 Commits

Author SHA1 Message Date
John Lamb
442bdc45dd fix(excalidraw): resolve canvas module path and add canonical file location convention
Fix convert.mjs to resolve canvas from .export-runtime via createRequire
instead of bare import (which resolves relative to script location, not CWD).
Add File Location Convention section to SKILL.md — diagrams save .excalidraw
source alongside PNGs in the project's image directory for easy re-export.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 09:07:10 -06:00
John Lamb
f524c1b9d8 feat(excalidraw): improve diagram quality with canvas measurement, validation, and conventions
Replace the charCount * fontSize * 0.55 text sizing heuristic with canvas-based
measurement (graceful fallback when native deps unavailable). Add validate.mjs for
automated spatial checks (text overflow, arrow-text collisions, element overlap).
Update element format reference with sizing rules, label guidelines, and arrow routing
conventions. Add verification step to SKILL.md workflow.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 17:19:14 -06:00