miro-code-spec

将 Miro 看板中的规格(文档、图表、原型、表格、框架、图像)提取到本地 .miro/specs/ 目录的工具,支持输入完整看板 URL 或单个项目 URL,便于后续进行 AI 辅助的规划和实施使用。

仓库最近推送
GitHub Stars
174
Forks
25
Issues / PRs
18

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "miro-code-spec":https://skillpi.com/zh/skills/deepskill-ebb20e9d0548d4f080b269c36b6b92d7fcb61e7005be5c38548c0891586ff865。安装前核对上游来源和版本:https://github.com/miroapp/miro-ai。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

将 Miro 看板中的规格(文档、图表、原型、表格、框架、图像)提取到本地 .miro/specs/ 目录的工具,支持输入完整看板 URL 或单个项目 URL,便于后续进行 AI 辅助的规划和实施使用。

0 下载

介绍来源: third_party · miroapp · 0.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
输入和输出
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: miro-code-spec
description: Use when the user wants to extract a Miro board's specs (documents, diagrams, prototypes, tables, frames, images) to local `.miro/specs/` files for AI-assisted planning and implementation — accepts a board URL or single-item URL.

Extract Miro Specs

Extract specification content from a Miro board or item and save to .miro/specs/ so it can be referenced during planning and implementation without repeated API calls.

The user provides one URL: a board URL (extract all spec items) or an item URL with a moveToWidget / focusWidget parameter (extract that single item). Miro MCP must be available.

Workflow

1. Identify the URL from the user's request

  • If the user provided a Miro URL, use it.
  • If not, ask the user for one.

2. Determine URL Scope

Decide whether the user gave a board URL (extract every spec item on the board) or a single-item URL — i.e. a board URL with a moveToWidget or focusWidget query parameter naming one item. Pass the URL through to Miro MCP as-is — MCP handles the URL.

3. Check/Prepare Output Directory

  • Check if .miro/specs/ exists and has content.
  • If it has content, ask the user:
    • "The .miro/specs/ directory already contains files. What should I do?"
    • Options:
      • "Clean and extract fresh" — remove existing content
      • "Add to existing" — keep existing files
      • "Cancel" — abort operation
  • Create the directory structure if needed:
    .miro/specs/
    ├── documents/      # Markdown documents
    ├── diagrams/       # Diagram descriptions
    ├── prototypes/     # Containers (Markdown) and screens (HTML)
    ├── tables/         # Table JSON data
    ├── frames/         # Frame summaries
    ├── other/          # Unknown types (slides, etc.)
    └── images/         # Extracted images

4. Discover Items to Extract

For Board URLs:

  • Use the Miro MCP board-overview tool with the board URL.
  • Each returned item includes its type, URL (with moveToWidget parameter), and title.
  • Collect all items with their types, URLs, and titles for extraction.

For Item URLs:

  • Create a single-item URL list.

5. Create Tasks for Extraction (MANDATORY)

🚨 THIS STEP IS MANDATORY — DO NOT SKIP

Create an internal checklist item for EVERY item discovered so nothing is missed.

Task structure:

  • Subject: "Extract [type]: [title]" (use title if available from the board-overview tool, otherwise use id)
  • Description: Include item type, id, URL, and target file path
  • activeForm: "Extracting [type]: [title]" (use title if available, otherwise use id)

Example with title:

Subject: "Extract document: Product Requirements"
Description: "Extract document item 3458764612345 from board. Save to .miro/specs/documents/3458764612345.md"
activeForm: "Extracting document: Product Requirements"

Example without title:

Subject: "Extract diagram: 3458764612347"
Description: "Extract diagram item 3458764612347 from board. Save to .miro/specs/diagrams/3458764612347.md"
activeForm: "Extracting diagram: 3458764612347"

⚠️ IMPORTANT: Task Count by Type

Create tasks according to this exact breakdown:

  • Each document → 1 task
  • Each diagram → 1 task
  • Each prototype container → 1 task
  • Each prototype screen → 3 tasks (HTML + Images + URLs)
    1. "Get and save HTML: [title]"
    2. "Extract images: [title]"
    3. "Update image URLs: [title]"
  • Each frame → 1 task
  • Each table → 1 task
  • Each other item → 1 task
  • Final step → 1 task "Finalize metadata index"

Critical: Prototype screens are NOT 1 task, they are 3 tasks. If you create only 1 task per screen, images will be missed.

Naming Convention:

  • Use titles from the board-overview tool for readability
  • Use item IDs in file paths for uniqueness and filesystem safety

This task creation step ensures: ✓ All items are tracked ✓ Nothing gets skipped ✓ Progress is visible ✓ Extraction workflow is structured

6. Initialize Metadata Index

Create .miro/specs/index.json with initial structure:

{
  "board_url": "original board URL",
  "extracted_at": "ISO timestamp",
  "items": [],
  "images": [],
  "summary": {
    "total_items": 0,
    "by_type": {},
    "total_images": 0
  }
}

This file will be updated progressively as each item is extracted.

7. Extract Content from Each Item

CRITICAL: You MUST write all content received from MCP tools to the file system immediately. Do not skip the file-writing step.

Workflow for each item (with task tracking and progressive index updates):

For most items (documents, diagrams, containers, frames, tables, other):

  1. Update your internal checklist to mark the item's entry as in_progress
  2. Call the appropriate MCP tool to get content
  3. IMMEDIATELY write the content to disk
  4. Read current index.json, add this item to the items array, then write the updated index.json
  5. Update your internal checklist to mark the item's entry as completed

For prototype screens (MANDATORY subagent workflow):

  • Launch a subagent for each screen to avoid context bloat
  • The subagent performs all 3 steps: Get HTML → Extract images → Update URLs
  • Large HTML content stays in subagent context, never enters main context

Document items:

  • Call the appropriate Miro MCP item-retrieval tool with the item URL
  • MUST write content to .miro/specs/documents/<board item ID>.md
  • Extract title from content if available
  • Update index.json with this item

Diagram items:

  • Call the appropriate Miro MCP item-retrieval tool with the item URL
  • MUST write content to .miro/specs/diagrams/<board item ID>.md
  • Update index.json with this item

Prototype container items:

  • Call the appropriate Miro MCP item-retrieval tool with the item URL
  • MUST write to .miro/specs/prototypes/<board item ID>-container.md
  • Update index.json with this item

Prototype screen items (MANDATORY 3-task workflow via subagent):

⚠️ EACH PROTOTYPE SCREEN REQUIRES A SUBAGENT WITH 3 SEPARATE TASKS

Why subagent: the Miro MCP context tool returns large HTML for prototype screens, which bloats the main agent's context. A subagent keeps this contained — the large HTML never enters the main conversation.

For each prototype screen, launch a single subagent (with subagent_type: "general-purpose") that performs all 3 steps sequentially. Pass the subagent all necessary context:

Subagent prompt template:

Extract prototype screen and its images from Miro board.

Context:
- Miro board URL targeting the prototype screen: [url]

Execute these 3 tasks in order:

Task 1: Get and save HTML
- Call the appropriate Miro MCP item-retrieval tool with the item URL
- Save the returned raw HTML to .miro/specs/prototypes/<board item ID>-screen.html
- Read index.json, add this item to items array, Write updated index.json

Task 2: Extract images
- Read the saved HTML file
- Parse HTML for ALL image URLs in `src` attributes
- For EACH image URL found:
  1. Extract resource ID from URL path
  2. Call the appropriate Miro MCP image tool to obtain a download URL for the image
  3. Take the download URL from response
  4. Download: `curl -sL -o .miro/specs/images/<image resource ID>.png "[download_url]"`
  5. Read index.json, add image entry to images array, Write updated index.json:
     {"id": "<image resource ID>", "path": "images/<image resource ID>.png", "referenced_by": ["prototypes/<board item ID>-screen.html"]}
- If any download fails: log warning, continue with others

Task 3: Update image URLs in HTML
- Read the HTML file from .miro/specs/prototypes/<board item ID>-screen.html
- Replace ALL original image URLs with relative paths: src="../images/<image resource ID>.png"
- Save the updated HTML
- Verify all image src attributes now point to ../images/

Report back: number of images found, downloaded, and any failures.

Main agent workflow for each screen:

  1. Update your internal checklist to mark "Get and save HTML: [title]" as in_progress
  2. Launch subagent with the prompt above
  3. When subagent completes, mark all 3 tasks for this screen as completed
  4. Move to next screen

⚠️ CRITICAL REQUIREMENTS FOR PROTOTYPE SCREENS:

  • ✗ DO NOT call the Miro MCP context tool for screens from the main agent (context bloat)
  • ✓ ALWAYS use a subagent for each prototype screen
  • ✓ CREATE 3 tasks per prototype screen (for visibility)
  • ✓ Subagent completes all 3 tasks: HTML → Images → URLs
  • ✓ Use the Miro MCP image tool to obtain a download URL, then curl to download
  • ✓ ALL image URLs must be replaced with local paths before moving on

Frame items:

  • Call the appropriate Miro MCP item-retrieval tool with the item URL
  • MUST write content to .miro/specs/frames/<board item ID>.md
  • Update index.json with this item

Table items:

  • Call the appropriate Miro MCP table-retrieval tool for the table item
  • MUST write JSON content to .miro/specs/tables/<board item ID>.json
  • Include column definitions and all row data in JSON
  • Update index.json with this item

Unknown/Other item types (e.g., slides, or any new types):

  • Call the appropriate Miro MCP item-retrieval tool with the item URL
  • MUST write content to .miro/specs/other/<board item ID>.md
  • Preserve original type name in metadata for reference
  • Update index.json with this item

8. Finalize Metadata Index

Read the current index.json and calculate the summary section:

  • Count total_items from items array
  • Count by_type (group items by type field)
  • Count total_images from images array

Update index.json with the calculated summary:

{
  "summary": {
    "total_items": 8,
    "by_type": {
      "document": 2,
      "diagram": 2,
      "prototype": 2,
      "table": 1,
      "frame": 1
    },
    "total_images": 3
  }
}

MUST write the updated index.json.

9. Verify and Display Summary

Verification Checklist (MUST DO):

  • [ ] Count files actually written to .miro/specs/ directories
  • [ ] Verify file count matches number of items processed
  • [ ] If mismatch, identify and save any missing items
  • [ ] Prototype screens: Verify all image URLs have been replaced with local paths
  • [ ] Check that all tasks have been marked as completed
  • [ ] Count images in .miro/specs/images/ matches index.json total_images

Display to user:

  • Total items extracted (by type)
  • Total files written to disk
  • Total images downloaded and embedded
  • Output directory path
  • Next steps: "Use these specs for planning and implementation"

If verification fails, DO NOT report success:

  • If any prototype screens still have original image URLs in HTML → Images won't work locally
  • If task count doesn't match item count → Some items were skipped
  • Re-extract missing items before finishing

Common Mistakes to Avoid

🚨 These are the most common reasons extraction fails or is incomplete:

  1. NOT CREATING TASKS

    • ✗ Wrong: Extract all items without creating tasks
    • ✓ Correct: Create an internal checklist item for every single item before extraction
    • Result: Items get skipped, no visibility into progress
  2. TREATING PROTOTYPE SCREENS AS 1 TASK

    • ✗ Wrong: Create 1 task for a prototype screen
    • ✓ Correct: Create 3 tasks (HTML, Images, URLs) and use a subagent
    • Result: Images are never extracted
  3. CALLING THE MCP CONTEXT TOOL FOR SCREENS FROM MAIN AGENT

    • ✗ Wrong: Call the Miro MCP context tool for prototype screens directly from the main agent (large HTML bloats context)
    • ✓ Correct: Launch a subagent for each screen — HTML stays in subagent context
    • Result: Main agent context overflows, extraction fails
  4. NOT PARSING HTML FOR IMAGES

    • ✗ Wrong: Skip parsing HTML, assume no images exist
    • ✓ Correct: Search for all image src attributes in HTML
    • Result: Images aren't discovered or downloaded
  5. NOT UPDATING IMAGE URLS IN HTML

    • ✗ Wrong: Download images but leave original URLs in HTML
    • ✓ Correct: Replace ALL original URLs with ../images/[id].png
    • Result: HTML still references remote URLs instead of local files
  6. NOT TRACKING IMAGE METADATA

    • ✗ Wrong: Download images but don't update index.json
    • ✓ Correct: Add image entries to index.json images array
    • Result: Loss of tracking which images belong to which screens
  7. NOT VERIFYING COMPLETION

    • ✗ Wrong: Finish extraction without checking files
    • ✓ Correct: Verify all tasks completed, all images downloaded, all URLs replaced
    • Result: Incomplete extraction discovered too late

Error Handling

  • If Miro MCP is not available → inform user they need to install it
  • If URL is invalid → ask user to provide valid Miro URL
  • If board/item not found → show error and ask for valid URL
  • If the context fetch fails for an item → log warning, continue with other items
  • If image download fails → log warning, update HTML with relative path anyway (so you can see it failed)

Implementation Notes

File Writing:

  • CRITICAL: Every item retrieved from MCP MUST be written to disk
  • Pattern: MCP call → get content → write file → confirm saved
  • Never skip the file-writing step — content only in memory is lost
  • Write all file types: .md, .html, .json, .png

Directory Operations:

  • Use Bash for directory operations (mkdir, rm if cleaning)
  • Create directories before writing files

Output:

  • Keep console output concise with progress indicators
  • Show what's being extracted and saved in real-time

Prototype Screens:

  • ⚠️ Always use a subagent for prototype screens to avoid context bloat
  • Subagent performs all 3 tasks: Get HTML → Extract images → Update URLs
  • Use the Miro MCP image tool to get a download URL, then curl to save image to disk
  • If image download fails for a specific image, log warning but continue with others

Priority:

  • Prioritize documents, prototypes, and tables (most valuable for specs)
  • Images are NOT optional — if prototype screens exist, image extraction is mandatory

Background

What is miro-spec?

The miro-spec plugin extracts specification content from Miro boards and saves it to local files. This enables AI to reference specs during planning and implementation without requiring repeated API calls.

Use it when you need to:

  • Extract product requirements from Miro boards
  • Save design specifications for implementation
  • Download prototypes and diagrams for reference
  • Create local copies of documentation from Miro
  • Work with specs offline or in version control

Content Types

Type Saves As Contains
Documents .md Markdown content with formatting; preserved headings and structure
Diagrams .md AI-generated description; flow analysis and component relationships
Prototype containers .md (suffix -container) Markdown with navigation map
Prototype screens .html (suffix -screen) HTML markup with UI layout
Tables .json Structured data with column definitions and all row data
Frames .md AI-generated summary of frame contents
Images .png Automatically extracted from prototypes; named by Miro item ID

Board URLs vs Item URLs

Board URLs — extract complete specifications. Best for comprehensive spec extraction across all related documents and diagrams. Lists all items on the board, filters for spec-related types, extracts each individually.

Item URLs — extract a single document, diagram, or prototype screen. Best for targeted extraction or updating one item. Faster for single items; uses moveToWidget parameter.

How Images Are Extracted

  1. Plugin scans prototype screen HTML content
  2. Finds Miro image URLs in src attributes
  3. Looks up each image via Miro MCP using the URL
  4. Downloads each image via Miro MCP
  5. Replaces original URLs with relative paths

Original HTML:

<img src="https://miro.com/api/v2/boards/uXjVK123abc=/images/3458764612345"/>

After extraction:

<img src="../images/3458764612345.png"/>

Benefits: images work offline, no API calls needed to view documents, faster local loading, and the extracted folder can be committed to version control.

Using Specs for Implementation Planning

Once specs are extracted, the user can ask their AI assistant to plan or implement against them. Example prompts:

  • "Review the product requirements in .miro/specs/documents/ and create a technical implementation plan"
  • "Reference the architecture diagram in .miro/specs/diagrams/3458764612345.md and implement the database schema"
  • "Compare the authentication flow I implemented against the spec in .miro/specs/prototypes/3458764612346-screen.html"

The AI assistant reads the relevant files automatically during planning. Always check .miro/specs/index.json first to see what was extracted.

Best Practices

Extraction strategy:

  • Use board URLs for initial comprehensive extraction
  • Use item URLs for updating specific documents
  • Extract before starting implementation
  • Re-extract when specs change

Directory management:

  • Keep .miro/specs/ in .gitignore if specs are temporary
  • Commit to version control if specs should be shared
  • Clean extraction when board structure changes significantly
  • Add to existing when updating individual items

Working with specs:

  • Always check index.json first to understand what's available
  • Read HTML files directly for full prototype content
  • Use markdown files for quick diagram overviews
  • Parse JSON files for structured table data

Performance tips:

  • Extract from specific frames using item URLs if board is large
  • Clean old extractions to avoid confusion
  • Use board URLs sparingly (can be slow for large boards)
  • Cache extractions between implementation sessions

Troubleshooting

No items extracted from board:

  • Board may not contain document/frame/table items
  • Try using an item URL for specific content
  • Verify the board URL is correct

Images not downloading:

  • Some images may not be accessible via MCP
  • Original URLs are preserved if download fails
  • Documents remain readable with external image URLs

Files not found after extraction:

  • Check .miro/specs/index.json for actual paths
  • Verify extraction completed successfully
  • Look for error messages in extraction output

Large boards taking too long:

  • Use item URLs to extract specific content
  • Extract individual frames instead of the entire board
  • Consider filtering by content type

See Also

  • Spec Storage Format — Detailed file format documentation
  • Plugin README — Installation and setup instructions

当前收录版本

0.0.1

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值85/100

亮点

  • 提供从 Miro 看板提取规格文档、图表、原型、表格、图像等内容的完整解决方案
  • 支持 AI 辅助规划和实施,解决用户在产品需求、设计规范等方面的实际痛点
  • 具有明确的使用场景和广泛受众
触发精准95/100

亮点

  • 触发描述清晰完整,明确说明支持 board URL 和 item URL 两种输入方式
  • 使用场景描述精准,边界清晰,不易与其他 Skill 重叠
结构规范95/100

待提升项

  • 文档长度 原报告严重程度:轻微

    文档内容较为详尽,总行数约450行,可能影响阅读体验

    改进建议:建议适当拆分文档或增加目录导航以提升可读性

亮点

  • 文档结构完整,包含详细的 Workflow、Error Handling、Implementation Notes 等章节
  • 步骤划分清晰,有详细的端到端示例和最佳实践指导
  • frontmatter 完整,符合规范要求
执行可靠90/100

亮点

  • 工具来源明确(Miro MCP),参数使用正确
  • 覆盖主要异常场景,不可逆操作有确认机制
  • 强制文件写入步骤,使用子代理处理原型屏幕避免上下文膨胀
  • 详细的验证清单确保提取完整性
证据可验 (前四项均值)91/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

文档引用的域名或地址

这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。

  • miro.com

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。