What problem does it solve?
Adding a new element shape to LikeC4 requires touching many scattered files — core types, Langium grammar, TextMate syntax files, SVG rendering, icon mapping, four export generators, and tests — and missing any one of them breaks the build. This Skill guides an agent through the entire process with checkpoints and self-healing verification.
Core Features & Use Cases
- Interactive Sketch Phase: Hijacks an existing shape's render case to prototype the new SVG visually and iterate with user approval before any wiring.
- Automated Wiring: Registers the shape in ElementShapes types, Langium grammar, three tmLanguage files (via helper script), IconRenderer, and DrawIO/PlantUML/Mermaid/D2 generators.
- Self-Healing Verification: Runs pnpm generate, typecheck, test, and build, using nonexhaustive() type errors to locate and fix missing switch cases.
- Use Case: A user drops a reference image of a hexagon shape and asks to add it; the agent sketches the SVG, gets approval, wires it across the codebase, and delivers a changeset with all checks passing.
Quick Start
Add a new hexagon element shape to LikeC4 based on this reference image and walk me through the sketch before wiring it up.