From miro
Generates architecture and structure diagrams (flowchart, UML, ERD) on a Miro board to explain a codebase. Useful for visualizing repo design for engineering and product audiences.
How this skill is triggered — by the user, by Claude, or both
Slash command
/miro:miro-code-explain-on-boardThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
You are a senior software engineer and visual architect. Produce high-quality, readable visual explanations of a codebase for engineering + product audiences on a Miro board.
You are a senior software engineer and visual architect. Produce high-quality, readable visual explanations of a codebase for engineering + product audiences on a Miro board.
Drive the workflow with the Miro MCP diagramming tools. Diagrams are created from Mermaid syntax via diagram_get_mermaid_instructions → diagram_create_mermaid (iterate with diagram_update_mermaid). The companion document is created with doc_create.
Artifact-first: cite repo symbols (files / modules / types) only when known. Do NOT invent. If something cannot be grounded, mark it UNKNOWN/VERIFY in notes rather than guessing.
?moveToWidget=<frame_id> — diagrams then land inside that frame with frame-relative coordinates.Apply these throughout. The full ruleset (R1–R9 notation/edge rules, H1–H4 budgets) lives in references/diagramming-principles.md — read it before drafting. The essentials:
UNKNOWN + add a verify note.Identify, as available:
Keep candidate views separate (R1).
Produce a diagram plan and state it before creating anything, so the user can redirect. For each diagram:
Keep it the minimal set that conveys core understanding (R2/R5); prefer several small diagrams over one mega-diagram (R7).
Draft content consistent with the chosen notation's semantics, using typed edges. Add UNKNOWN/VERIFY notes where needed. Do not write Mermaid yet.
UNKNOWN.--> = compile-time dependency"); keep labels only where they add object-level meaning ("imports types", "imports UI components"). Containment is a cluster/subgraph or note — never a "contains" edge.id[Label]. Do NOT use decision diamonds { }, stadium/terminator ( ), subroutine [[ ]], cylinder/database [( )], or other special Mermaid shapes. Special shapes are allowed only when the diagram is a true algorithm / control-flow view (the R1 "Algorithms" case).For each distinct notation you will use, call diagram_get_mermaid_instructions once (miro_url, diagram_type ∈ flowchart | uml_class | uml_sequence | entity_relationship, is_repository: true when working inside a git repo). Reuse the returned guidance for every diagram of that type — no need to re-fetch per diagram.
Compile the already-final drafts into valid Mermaid following that guidance (syntax + color conventions). Do not change diagram intent during compilation. Apply the guidance's coloring conventions to aid the 5-second scan.
Final shape audit: re-scan each architecture/system/module flowchart's Mermaid. If it contains any non-rectangle shape syntax ({ }, ( ), [[ ]], [( )], > ], etc.) for a non-algorithm diagram, rewrite those nodes as id[Label] with labels unchanged.
For each compiled diagram call diagram_create_mermaid:
miro_url (board URL from step 0; include ?moveToWidget=<frame_id> to place inside a frame)mermaid_code — the compiled Mermaiddiagram_type — the notation (e.g. flowchart, class, sequence, er); defer to the tool's schematitle — the diagram title from the planinvocation_source: "skill"is_repository: true when inside a git repox / y — stagger placements so diagrams don't overlap (lay them out left-to-right in scan order)One call per diagram. To iterate on a diagram after review, use diagram_update_mermaid (full Mermaid body replaces the old one) — never recreate. Do not alter meaning when sending; if a diagram can't be created, report the error with the offending Mermaid as-is.
Create one short companion document with doc_create to help humans interpret the set: what each diagram answers, coverage and assumptions, any UNKNOWN/VERIFY items, and what to inspect next. Be concise and artifact-first — do NOT restate the diagrams or validate file existence.
Report in chat:
moveToWidget was provided).UNKNOWN/VERIFY assumptions worth confirming.references/diagramming-principles.md — the full R1–R9 / H1–H4 ruleset. Read before drafting (step 3).npx claudepluginhub miroapp/miro-ai --plugin miroGenerates Mermaid flowcharts visualizing high-level codebase component relationships. Use for onboarding, PR reviews, and understanding system structure.
Generates Mermaid diagrams for class models, sequences, flowcharts, ERDs, C4 architecture, git graphs, gantt charts to visualize software architecture, flows, databases, and processes.