mermaid-generator
Installation
SKILL.md
Mermaid Diagram Generator
Create Mermaid diagrams that explain architecture, component relationships, data flow, dependencies, or state transitions found in a codebase.
Workflow
1. Bound the request
Identify the target files or directories, the audience, and the desired diagram type. Use the requested type when supplied. Otherwise infer it from the intent:
| Intent | Diagram |
|---|---|
| Architecture, modules, or process flow | flowchart |
| Request/response or asynchronous interaction | sequenceDiagram |
| Classes, interfaces, or type hierarchy | classDiagram |
| Entities and database relationships | erDiagram |
| Lifecycle or workflow states | stateDiagram-v2 |
| Imports or dependency relationships | flowchart or graph |