Install
openclaw skills install testlky1XMind to Markdown 转换 | XMind to Markdown Converter. 将 XMind 思维导图转换为 Mermaid/PlantUML 流程图 | Convert XMind mind maps to Mermaid/PlantUML flowcharts. 零依赖 Python 脚本 | Zero-dependency Python script.
openclaw skills install testlky1将 XMind 思维导图文件转换为多种 Markdown 流程图格式。
| 任务 | 方法 |
|---|---|
| 转换为 Mermaid | python scripts/xmind2md.py file.xmind mermaid |
| 转换为 PlantUML | python scripts/xmind2md.py file.xmind plantuml |
| 转换为 Markdown 列表 | python scripts/xmind2md.py file.xmind markdown |
| 带编号流程图 | python scripts/xmind2md.py file.xmind numbered |
| 带样式流程图 | python scripts/xmind2md.py file.xmind styled |
scripts/xmind2md.py
# 基本用法
python scripts/xmind2md.py <xmind_file> [format]
# 默认输出 mermaid 格式
python scripts/xmind2md.py test.xmind
# 指定输出格式
python scripts/xmind2md.py test.xmind mermaid
python scripts/xmind2md.py test.xmind markdown
python scripts/xmind2md.py test.xmind plantuml
python scripts/xmind2md.py test.xmind numbered
python scripts/xmind2md.py test.xmind styled
| 格式 | 说明 | 适用场景 |
|---|---|---|
mermaid | Mermaid 流程图 | GitHub/GitLab Markdown、文档嵌入 |
plantuml | PlantUML UML 图 | 需要更正式的 UML 表示 |
markdown | Markdown 列表 | 简单层级展示 |
numbered | 带编号的 Mermaid | 复杂结构,需要追踪节点 |
styled | 带主题样式的 Mermaid | 需要视觉美化 |
当用户请求转换 XMind 文件时:
mermaid,根据用户需求选择其他格式python scripts/xmind2md.py <file> <format>graph TD
node0[需求分析]
node0_1[用户调研]
node0 --> node0_1
node1[竞品分析]
node0 --> node1
# 项目规划
- 需求分析
- 用户调研
- 竞品分析
- 开发阶段
- 前端开发
- 后端开发
%%{init: {
"theme": "base",
"themeVariables": {
"primaryColor": "#BBF7D0",
"primaryTextColor": "#065F46"
}
}}%%
flowchart TD
classDef default fill:#BBF7D0,stroke:#10B981,stroke-width:2px;
classDef root fill:#FECACA,stroke:#DC2626,stroke-width:3px;
node0["需求分析"]
class 需求分析 root
content.xml 或 content.json