miro-code-explain-on-board
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "miro-code-explain-on-board":https://skillpi.com/zh/skills/deepskill-a7d395dc8143a12086e387ac8628c24259671149463281e30e9398aa7d7962dc。安装前核对上游来源和版本:https://github.com/miroapp/miro-ai。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
在 Miro 白板上基于真实代码仓库内容,生成一组简洁且符号规范的系统架构/结构/行为图(例如流程图、UML 类图、UML 时序图、ERD 实体关系图),并附带一份简短的配套说明文档,用于解释或可视化代码库。
介绍来源: third_party · miroapp · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 输入和输出
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: miro-code-explain-on-board
description: 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.Explain a Codebase 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.
Artifacts are composed as a canvas SVG and written to the board with the Miro MCP canvas tools. Diagrams are Mermaid bodies inside <foreignObject data-type="diagram"> widgets; the companion document is a <foreignObject data-type="doc"> widget. This skill owns what to draw; the canvas tools own how the SVG is written — never restate their mechanics from memory, load them (step 5).
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.
0. Inputs
- Board URL. If missing, ask. Required to place artifacts. To target a specific frame, the URL may include
?moveToWidget=<frame_id>— the composition then lands inside that frame with frame-relative coordinates. - What to explain. A repo, subsystem, or specific question. If unclear, ask for scope before analyzing.
Core diagramming principles
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:
- Separate views, one question per diagram (R1/R2). Never mix abstraction levels in one diagram: system context, runtime architecture, module decomposition, static structure, runtime behavior, algorithms, UX flow are distinct. Split when dense.
- Notation must match semantics (R3). UML class = real code types with members. UML sequence = one concrete time-ordered scenario. ERD = persistent entities/tables. Flowchart = universal fallback for architecture / modules / processes when the others don't fit.
- Typed edges only (R4/R8). Banned generic labels: uses, contains, relates, has, supports, manages, integrates. Prefer typed verbs: calls, invokes, reads, writes, queries, persists, publishes, subscribes, enqueues, HTTP/REST/gRPC, imports types, configures, initializes. If you can't ground the relation, label it
UNKNOWN+ add a verify note. - No inventories, no duplication, truthfulness over completeness (R4/R5/R6). Every diagram adds unique value and answers a real question.
- 5-second scan (H1). ~10–15 nodes per diagram (split at >15, MUST split at >20). Target ~4–6 diagrams total. Sequence: ~5–8 lifelines, ~12–20 messages. Class: ~3–5 high-signal members each. ERD overview: PK/FK/UQ + 2–4 distinguishing fields, note omissions.
Workflow
1. Analyze the repo — extract candidate views (no rendering yet)
Identify, as available:
- Runtime units: apps / services / jobs / workers, datastores, external systems
- Code structure: modules / packages / bounded contexts
- Domain model: key entities / types
- Behaviors: request lifecycles, pipelines, events, background jobs
- Algorithms: localized control flow worth visualizing
Keep candidate views separate (R1).
2. Design the minimal diagram set (PLAN) — announce it in chat
Produce a diagram plan and state it before creating anything, so the user can redirect. For each diagram:
- id (D1, D2, …) and title
- audience (eng / product / both)
- question it answers (explicit, one question)
- scope: included / excluded
- notation: flowchart / uml_class / uml_sequence / entity_relationship
- edge semantics (one line — required for flowchart): e.g. "compile-time dependencies", "runtime calls", "data reads/writes"
- key elements that must appear
- optionally 1–3 code anchors (file/module/function) for human navigation
Keep it the minimal set that conveys core understanding (R2/R5); prefer several small diagrams over one mega-diagram (R7).
Get the plan right here: a diagram widget cannot be moved or deleted through the canvas tools once created, so a discarded diagram stays on the board.
3. Draft each diagram (notation-bound, format-free)
Draft content consistent with the chosen notation's semantics, using typed edges. Add UNKNOWN/VERIFY notes where needed. Do not write Mermaid yet.
4. Pre-compilation checks (MANDATORY, before writing any Mermaid)
- Split check: any draft >15 elements → split into "Overview" + "Deep dive"; >20 → MUST split.
- Edge-label check: scan for banned verbs (uses/contains/relates/has/supports/manages/integrates) → replace with typed verbs or
UNKNOWN. - Import-graph check (R9): if a flowchart is a module/import dependency graph, prefer unlabeled edges + a one-line legend note ("
-->= 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. - Flowchart shape hygiene (architecture/system/module fallback) — MUST: use only plain rectangle nodes
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). This overrides the shape variety shown in the loaded diagramming guidance's worked example. - ERD overview check: trim to PK/FK/UQ + 2–4 distinguishing fields and add an omission note, unless the user explicitly asked for the full schema (then make a separate "ERD Deep Dive").
5. Load the canvas guidance
Before composing anything, load two pieces of guidance from the Miro MCP server: first the canvas composer guidance (the SVG board format), then the diagramming format guidance for the notation you are drawing — flowchart, entity_relationship, uml_class, or uml_sequence. Load the composer guidance once per conversation, and the diagramming guidance once per distinct notation in your plan, reused across every diagram of that type. Both tools state their own prerequisites and ordering; follow what they say.
The loaded guidance is authoritative for Mermaid escaping, color contract, and widget mechanics. Follow it over anything remembered: in particular, arrows inside a diagram body are XML-escaped (-->, not -->), and a raw &, <, or > anywhere in the SVG fails the whole request.
Compile the already-final drafts from step 3 into valid Mermaid (target Mermaid 10 syntax). 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.
6. Compose and create
Build one SVG composition holding every diagram plus the companion doc, and send it with the canvas create tool in a single call.
- One
<foreignObject data-type="diagram">per diagram, withdata-titleset to the title from the plan and the compiled Mermaid as the body. - The board fixes every diagram widget at 1600x900 regardless of what you author, so lay them out on that pitch — e.g. a row every 1600 + gap in x, a new row every 900 + gap in y — in scan order, left to right. Overlapping placements are the most common failure here.
- Place the companion doc (step 7) in the same composition, to the left of or above the first diagram.
Then run the reflow loop the composer guidance requires: when the response reports changed dimensions, inspect those widgets in result_svg and reposition the affected widgets with the canvas update tool until spacing is clean. Iterate from the latest result_svg — edit it in place and feed it back; never regenerate the SVG from scratch and never transcribe data-miro-id values from memory.
To revise a diagram after review, resend that widget with its data-miro-id and the new Mermaid body through the same update tool. A diagram widget can't be moved or deleted this way, and an unchanged one is skipped — so only resend a diagram whose source or title actually changed. Do not alter meaning when sending; if a diagram fails, report the error with the offending Mermaid as-is.
7. Companion document
One short <foreignObject data-type="doc"> (markdown body, starts with an H1) 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.
Make the index of diagrams real deep-links rather than dead text: once the diagrams have data-miro-ids in result_svg, link each title as <board-url>?moveToWidget=<data-miro-id> so a reader can jump straight to it. That needs the ids, so write the doc body in the create call with the titles as plain text, then patch in the links on the following update call.
Output
Report in chat:
- Link to the board (or frame, if
moveToWidgetwas provided). - The diagrams created (id, title, notation) and the companion doc.
- Any
UNKNOWN/VERIFYassumptions worth confirming.
References
references/diagramming-principles.md— the full R1–R9 / H1–H4 ruleset. Read before drafting (step 3).
当前收录版本
0.0.1
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 解决工程师与产品团队在 Miro 白板上可视化代码库的高频刚需
- 支持生成多种标准图表(流程图、UML 类图、时序图、ERD)并附带配套文档
- 强调真实代码库 grounding,避免虚构内容,提升可信度
亮点
- 触发描述清晰明确,覆盖 repo/subsystem/specific question 多种场景
- 边界清晰,不易与其他 Skill 重叠
亮点
- 结构完整,Phase 划分清晰,包含输入、原则、工作流、输出等完整环节
- 包含端到端执行逻辑和用户确认机制
- frontmatter 完整,文档组织良好
待提升项
-
引用文件缺失 原报告严重程度:轻微
Skill 引用了 references/diagramming-principles.md 但未传入该文件
改进建议:建议将 diagramming-principles.md 内容内联或确保其随包提供
亮点
- 工具来源明确(Miro MCP canvas tools),参数使用规范
- 内置多重检查机制(split check、edge-label check、final shape audit)保障输出质量
- 对不可知内容标记 UNKNOWN/VERIFY,避免错误传播
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。