/aeo-docs:markdown-mermaidfrom aeo-docs
Creates and debugs Mermaid diagrams in Markdown with validated templates for flowcharts, ERDs, sequence diagrams, state machines, Gantt charts, mindmaps, and more. Includes cross-platform rendering notes for GitHub, GitLab, VS Code, and Obsidian.
Ships in aeo-docs. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Create diagrams using fenced code blocks:
```mermaid
flowchart TB
A[Start] --> B[End]
```
| Diagram Type | Load this file |
|---|---|
| Flowchart - processes, workflows | flowchart.md |
| Sequence - API interactions | sequence.md |
| Class - OOP structures | class.md |
| State - lifecycles, FSM | state.md |
| ERD - database schemas | erd.md |
| Gantt - project timelines | gantt.md |
| Diagram Type | Load this file |
|---|---|
| Pie - proportional data | pie.md |
| Quadrant - priority matrix | quadrant.md |
| Radar - multi-dimensional | radar.md |
| XY Chart - line/bar graphs | xychart.md |
| Sankey - flow quantities | sankey.md |
| Treemap - hierarchical data | treemap.md |
| Diagram Type | Load this file |
|---|---|
| C4 - architecture (Context/Container/Component) | c4.md |
| Architecture - cloud/infra | architecture.md |
| Block - manual layouts | block.md |
| Mindmap - brainstorming | mindmap.md |
| Timeline - chronological events | timeline.md |
| Journey - user workflows | journey.md |
| GitGraph - branching | gitgraph.md |
| Kanban - task boards | kanban.md |
| ZenUML - code-like sequence | zenuml.md |
| Requirement - SysML | requirement.md |
| Packet - network protocols | packet.md |
| When you need... | Load this file |
|---|---|
| Which diagram to use? | selection-guide.md |
| Layout/width problems | layout.md |
| Styling and themes | styling.md |
| Platform compatibility | platforms.md |
| Core syntax rules | syntax.md |
| Copy-paste templates | templates.md |
| Scenario | Diagram | Keyword |
|---|---|---|
| Database tables | ERD | erDiagram |
| API calls | Sequence | sequenceDiagram |
| Process steps | Flowchart | flowchart TB |
| Status lifecycle | State | stateDiagram-v2 |
| Project schedule | Gantt | gantt |
| Brainstorm | Mindmap | mindmap |
| Architecture | Flowchart+subgraphs | flowchart TB |
| Git workflow | GitGraph | gitGraph |
| Task board | Kanban | kanban |
flowchart TB
Start[Start] --> Check{Valid?}
Check -->|Yes| Process[Process]
Check -->|No| Error[Error]
Process --> Done[Done]
Error --> Done
flowchart TB
subgraph Frontend
UI[Web App]
end
subgraph Backend
API[API Server]
DB[(Database)]
end
UI --> API --> DB
erDiagram
CUSTOMER ||--o{ ORDER : places
ORDER ||--|{ LINE_ITEM : contains
CUSTOMER {
int id PK
string name
string email UK
}
ORDER {
int id PK
int customer_id FK
date created_at
}
sequenceDiagram
participant C as Client
participant A as API
participant D as Database
C->>+A: POST /users
A->>+D: INSERT user
D-->>-A: user_id
A-->>-C: 201 Created
stateDiagram-v2
[*] --> Draft
Draft --> Pending: Submit
Pending --> Approved: Approve
Pending --> Rejected: Reject
Approved --> [*]
Rejected --> Draft: Revise
mindmap
root((Project))
Backend
API
Database
Frontend
React
CSS
DevOps
CI/CD
Monitoring
[end], (end), or "end" (reserved word)[]{}() needs double quotes: A["text [with] brackets"]A---oB parsed as circle edge; use A--- oB or A---OBA1, userAuth, not user-auth or step.1 (hyphens/dots break parsing)%%{init: {'theme': 'dark'}}%% for all diagrams; provides color differentiation and consistent appearancestyle NodeID fill:#hex lines because themes provide consistent colors across diagramsControl rendering with %%{init: ...}%% at the start of the diagram:
For diagrams with many edge crossings or complex layouts:
%%{init: {'flowchart': {'defaultRenderer': 'elk'}}}%%
flowchart TB
A --> B & C & D
B & C --> E
D --> E
%%{init: {'theme': 'neutral', 'flowchart': {'defaultRenderer': 'elk', 'htmlLabels': false}}}%%
flowchart TB
A[Start] --> B[Process]
| Option | Values | Use Case |
|---|---|---|
theme | neutral, default, dark, forest | Print: neutral. Dark mode: dark |
defaultRenderer | dagre (default), elk | ELK for complex layouts |
htmlLabels | true/false | false for markdown in labels |
curve | basis, linear, cardinal | Edge curve style |
| Problem | Solution |
|---|---|
| Diagram not rendering | Check for lowercase "end" - capitalize or quote it |
| Diagram too wide / PDF overflow | Change LR to TB for letter-size output |
| "Parse error" on node | Quote text containing brackets: ["my [label]"] |
| Node ID parse error | Use alphanumeric only - no hyphens, dots, or special chars |
| Unexpected edge style | Node ID starts with o/x - add space or capitalize |
| Subgraph direction ignored | External connections override - restructure links |
| GitHub not rendering | Check for unsupported features (ELK, some beta charts) |
| Edge crossings messy | Add %%{init: {'flowchart': {'defaultRenderer': 'elk'}}}%% |
| Emoji/symbols missing | Replace with ASCII text - not all renderers support Unicode |
| Poor contrast or inconsistent colors | Use %%{init: {'theme': 'dark'}}%% for all diagrams |
| Inline style declarations | Remove style X fill:#hex lines - use theme directive instead |
| Platform differences | See platforms.md |
When a Mermaid release adds a diagram type, or GitHub, GitLab, VS Code, or Obsidian changes what it renders, update the reference file for that diagram or platform in the same session. Replace the superseded text; do not append a note.
references/architecture.md (opens in a new tab)references/block.md (opens in a new tab)references/c4.md (opens in a new tab)references/class.md (opens in a new tab)references/erd.md (opens in a new tab)references/flowchart.md (opens in a new tab)references/gantt.md (opens in a new tab)references/gitgraph.md (opens in a new tab)references/journey.md (opens in a new tab)references/kanban.md (opens in a new tab)references/layout.md (opens in a new tab)references/mindmap.md (opens in a new tab)references/packet.md (opens in a new tab)references/pie.md (opens in a new tab)references/platforms.md (opens in a new tab)references/quadrant.md (opens in a new tab)references/radar.md (opens in a new tab)references/requirement.md (opens in a new tab)references/sankey.md (opens in a new tab)references/selection-guide.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub aeyeops/aeo-skill-marketplace --plugin aeo-docs4 skills in this plugin
/architecture-docsUse when someone asks to document system architecture for a technical audience — write an ADR, capture an
architectural decision, generate C4 diagrams (Context / Container / Component / Code), produce an OpenAPI spec
for an HTTP API, draft a system or component design document, or document how services integrate. Covers the
C4 model, Architectural Decision Records, OpenAPI specifications, and design documents for engineers who need
to build against or reason about the architecture. Not for: end-user-facing docs (use the `aeo-docs:diataxis`
skill instead — tutorials, how-tos, references, explanations live there), README content, or code-level inline
documentation.
/d2Use whenever the user wants to produce, edit, or render any kind of diagram with D2, the Terrastruct
text-to-diagram language at https://d2lang.com — architecture, flowchart, sequence, ER/SQL schema, UML class,
network topology, mind map, deployment, org chart, state machine, grid layout, mermaid-style flow, or anything
similar — even when they don't say "D2" explicitly. Trigger on requests for `.d2` files, mentions of
`d2`/`d2lang`, or open-ended diagramming tasks ("draw me a system diagram", "make a flowchart of X", "diagram
the request flow", "give me an ER diagram for these tables"). Covers the full DSL — shapes, connections,
containers, classes, vars, globs/filters, imports, layers/scenarios/steps, styling, themes, sketch mode,
icons, markdown/LaTeX/code blocks, layout engines, CLI flags, and the specialized diagram shapes.
Other plugins' skills for the same job