次のような場合に使用: ユーザーがMiroボード(協調作業用の視覚化ツール)上でコードベース(ソースコード一式)を説明したり可視化したいとき このスキルが提供するもの: - 実際のリポジトリ内の成果物に基づいた、最小限で正確な図解セット - フローチャート(処理の流れ図) - UMLクラス図(プログラムの構造図) - UMLシーケンス図(動作順序図) - ERD(データベース設計図) - これらの図に付随する簡潔な説明文書
Use when the user wants to explain or visualize a codebase on a Miro board — produces a minimal, notation-correct set of architecture / structure / behavior diagrams (flowchart, UML class, UML sequence, ERD) plus a short companion document, grounded in real repo artifacts.
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).原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。