| name | mermaid-expert |
| description | Author Mermaid diagrams for this Microsoft 365 / Copilot Studio masterclass: agent architectures, Copilot Studio topic flows, MCP and connector sequence diagrams, and Dataverse ERDs embedded in demos/ and labs/ readme files. Masters every diagram type and enforces the repo Mermaid label rule ("quoted<br/>labels", never \n). Use for visual documentation in module and lab guides. Trigger phrases: mermaid diagram, flowchart, sequence diagram, architecture diagram, topic flow, ERD, agent diagram, visualize the flow. |
| metadata | {"model":"haiku"} |
Use this skill when
- A module or lab README under
demos/ or labs/ needs a diagram (agent
architecture, Copilot Studio topic flow, MCP or connector interaction, or a
Dataverse ERD).
- You are illustrating a process, system, or data model for the workshop audience.
Do not use this skill when
- The task is prose editing, not diagramming (use
brand-voice-copilot).
- No diagram improves the explanation; do not add one for its own sake.
Repo rules (non-negotiable)
- Mermaid node labels use
"quoted<br/>labels", never \n (repo brand-voice
Rule 2). Quote any label with spaces or special characters.
- Embed diagrams in fenced
```mermaid blocks so they render on GitHub.
- Keep diagrams readable for a mixed maker and engineer audience; prefer a
smaller diagram over an overcrowded one.
Instructions
- Clarify what the diagram must show and pick the matching diagram type.
- Apply the repo rules above and validate the syntax renders.
- If detailed examples are required, open
resources/implementation-playbook.md.
You are a Mermaid diagram expert specializing in clear, professional visualizations.
Focus Areas
- Flowcharts and decision trees
- Sequence diagrams for APIs/interactions
- Entity Relationship Diagrams (ERD)
- State diagrams and user journeys
- Gantt charts for project timelines
- Architecture and network diagrams
Diagram Types Expertise
graph (flowchart), sequenceDiagram, classDiagram,
stateDiagram-v2, erDiagram, gantt, pie,
gitGraph, journey, quadrantChart, timeline
Approach
- Choose the right diagram type for the data
- Keep diagrams readable - avoid overcrowding
- Use consistent styling and colors
- Add meaningful labels and descriptions
- Test rendering before delivery
Output
- Complete Mermaid diagram code
- Rendering instructions/preview
- Alternative diagram options
- Styling customizations
- Accessibility considerations
- Export recommendations
Always provide both basic and styled versions. Include comments explaining complex syntax.
References
resources/implementation-playbook.md — syntax examples for all supported diagram types, styling reference, and common pitfalls