This repository is a self-contained skill package for authoring and reviewing Eraser Diagram-as-Code DSL.
The skill helps convert natural-language requirements into valid Eraser syntax for:
- Flow charts
- Entity Relationship Diagrams (ERD)
- Architecture diagrams
- Sequence diagrams
- BPMN swimlane diagrams
SKILL.md: Main skill definition and workflow instructions.sources/: Reference documentation used by the skill.00-diagram-as-code.md01-what-is-diagram-as-code.md02-flow-charts.md03-entity-relationship-diagrams-erd.md04-architecture-diagrams.md05-sequence-diagrams.md06-bpmn-diagrams-swimlane-diagrams.md07-icons.md08-styling.md
The skill is designed to:
- Choose the right diagram type from user intent.
- Generate syntactically valid Eraser DSL.
- Apply type-specific rules (connectors, blocks, cardinality, lanes).
- Add styling and icons safely.
- Review and repair existing DSL while preserving behavior.
Use this repository as a skill folder where SKILL.md is at the root.
Typical prompts:
- "Create an ERD for a billing platform with users, subscriptions, invoices, and payments."
- "Turn this approval process into BPMN with lanes for Requester, Manager, and Finance."
- "Fix this sequence diagram DSL and keep behavior unchanged."
- The skill references local docs under
sources/for authoritative syntax. - If requirements are incomplete, the skill proceeds with explicit assumptions.
- If the user asks for code only, the skill returns only the DSL block.
MIT License. See LICENSE for details.