D2 Diagram Skill
Style guide and rules for creating D2 diagrams. You already know D2 syntax — this tells you how to style, not how to write D2.
Other skills that generate D2 diagrams (walkthrough, index-codebase, index-sync) must follow these rules for visual consistency.
Mandatory Defaults
Every diagram starts with this skeleton:
vars: {
d2-config: {
layout-engine: elk
theme-id: 0
}
}
direction: down
classes: {
# Define one class per semantic group —
[Description truncada. Veja o README completo no GitHub.]