微算力 · API 导航与自营网关
API 接入 EN
未登录登录
🧠

聊天生成专业思维导图

xmind · v0.1.1
效率 安全 B 级 作者 bangyizhang 公开目录收录
1.2k 下载 0 安装 5.9k 收藏 20 浏览

简介

基于XMind官方格式的思维导图生成与解析工具,支持聊天式生成.xmind文件并导出Markdown,适合项目规划与大纲整理

原始描述

Generate and read XMind (.xmind) files via the published xmind-generator-mcp MCP server (npm), with a chat-first UX.

通过你的 Agent 添加

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/xmind/
Codex CLI~/.codex/skills/xmind/
DeepSeek Harness~/.agents/skills/xmind/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

技能正文


name: xmind description: Generate and read XMind (.xmind) files via the published xmind-generator-mcp MCP server (npm), with a chat-first UX. metadata: openclaw: emoji: "🧠" requires: bins: ["mcporter", "npx"] install: - id: npm kind: note label: "Uses npx xmind-generator-mcp@0.1.2 (no separate install needed)"

xmind 🧠

Generate and read XMind .xmind files using the published MCP server xmind-generator-mcp (npm).

This skill is chat-first:

  • “Generate an XMind for this (optionally: save to …)” → generates a .xmind and sends it back.
  • “Read this XMind and tell me what it’s about” → explains the map first, then offers a Markdown export.

When to use

  • User wants: “generate an XMind file from this outline / plan / PRD / test plan”.
  • Output should be a real .xmind file that opens in XMind.

Input format (for generation)

The MCP tool generate-mind-map accepts Schema A JSON:

{
  "title": "Root topic",
  "filename": "mindmap-name-no-date",
  "topics": [
    {
      "title": "Topic title (keep core info in the title)",
      "note": "Optional: use sparingly; only when the title would be too long",
      "labels": ["optional"],
      "markers": ["Arrow.refresh"],
      "children": [{"title": "Child topic"}]
    }
  ]
}

How the assistant should call the MCP (stdio via mcporter)

Generate XMind

Use npx xmind-generator-mcp@0.1.2 as the MCP server command:

mcporter call --stdio "npx -y xmind-generator-mcp@0.1.2" generate-mind-map --args '{...}'

Read XMind (Markdown export)

mcporter call --stdio "npx -y xmind-generator-mcp@0.1.2" read-mind-map --args '{"inputPath":"/path/to/file.xmind","style":"A"}'

Read behavior in chat (UX requirement)

When a user sends an .xmind file and asks to “read/understand” it:

  1. First, explain in detail what the mind map is about (summary + structure + key points + actionable items + gaps).
  2. Only after that, ask whether the user wants an export.
  3. If the user wants an export, default to Markdown.
  • generate --output can be a directory (recommended) or a full .xmind path.
  • If outputPath is omitted, the MCP server defaults to its configured outputPath environment variable (see below).

Chat-first workflow (what the assistant should do)

Trigger phrases:

  • “Generate an XMind for this” / “Make an XMind from this”
  • “Read this XMind” / “Summarize this XMind”

Language rule (important):

  • If the user does not explicitly specify the language of the generated mind map, match the language of the user’s request.
    • Example: user asks in Chinese → generate Chinese topic titles.
    • Example: user asks in English → generate English topic titles.
  • Only switch languages if the user explicitly asks (e.g. “generate in English”).

Filename rule (important):

  • If the user provides a filename/path, use it.
  • If the user does not provide a filename:
    • Default filename should follow the user’s request language.
    • For Chinese: use short hyphen style, no date (e.g. one-day-trip-detailed in Chinese characters, but keep it short).
    • For English: use a short slug, no date (e.g. hong-kong-1-day-itinerary).
  • Always sanitize invalid filename characters: \\ / : * ? \" < > | → replace with -.

Steps:

  1. Parse whether the user specified a save location/path.
    • If specified, use that.
    • If not specified, default to ~/Desktop.
  2. Determine output language:
    • If user specified language → follow it.
    • Else → match the user’s message language.
  3. Convert the user’s content into Schema A JSON (in the chosen language).
    • Keep it reasonably sized (avoid thousands of nodes in one go).
    • Use XMind enrichment elements when helpful (but keep titles informative):
      • note: use sparingly. Only put content in note when it would make the topic title too long or noisy. If the content is core to the plan, keep it in the title instead of hiding it in note.
      • labels: add lightweight categorization (e.g. must-do/optional/rainy-day/budget/family-friendly).
      • relationships: sparingly (mode A) — only for truly cross-branch links that add clarity.
  4. Write the JSON to a temp file, e.g. /tmp/xmind-<ts>.json.
  5. Call the MCP tool generate-mind-map via mcporter stdio (npx xmind-generator-mcp@0.1.2). Capture/compute the output file path.
  6. Send the generated .xmind back in chat as an attachment.
  7. Optionally also tell the user where it was saved on disk.

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

mind-mapxminddocument-generationproductivityvisualizationoutlineproject-management

同类 Skill