AgentSkillsCN

mindm-export

将 MindManager 思维导图导出为 Mermaid、Markmap、Markdown、JSON 或 YAML 格式(可输出为 HTML,也可仅导出数据)。当您需要生成或流式传输导图结果,或需要打开一张思维导图时,此技能便能助您轻松完成。

SKILL.md
--- frontmatter
name: mindm-export
description: Export MindManager mindmaps to Mermaid, Markmap, Markdown, JSON, or YAML (HTML or data-only). Use when output must be generated or streamed, or when a map must be opened.
version: 1.0.0
requires:
  - mindm
  - pyyaml (optional, for yaml export)
platforms:
  - macos
  - windows

Mindm Export

Overview

Export the current MindManager map to HTML or data-only output. Preferred one-liner is uvx (no install). Also available via mindm-export or python -m mindmap.export. Choose mermaid_html, markmap_html, markdown_html, or the data-only mermaid, markmap, markdown, json, yaml.

Quick start

Run an export and open it (recommended, no install):

bash
uvx --from mindm mindm-export --type mermaid_html --open

Run an export and open it (installed console script):

bash
mindm-export --type mermaid_html --open

Run via the module entry point (source checkout):

bash
python -m mindmap.export --type json --output /tmp/mindmap.json

Stream HTML to stdout:

bash
mindm-export --type markmap --stream

Write to a specific file path:

bash
mindm-export --type markdown_html --output /tmp/mindmap.htm

Notes

  • Keep MindManager open with the target map active before running the CLI.
  • For macOS access, use --macos-access applescript (default) or --macos-access appscript.
  • For deeper flag and behavior details, read references/cli.md.

Troubleshooting

ProblemSolution
"No active document" errorOpen a map in MindManager before running the CLI
Empty response or timeoutEnsure MindManager is responsive (not showing a modal dialog)
Permission denied (macOS)Grant Accessibility permissions to Terminal/IDE in System Settings → Privacy & Security
pyyaml import errorInstall with pip install pyyaml or use a different --type
--open does nothingCheck default application association for the output file type
HTML renders blankEnsure the map has content; check browser console for JavaScript errors