用途:为 Xmind 思维导图生成并嵌入主题配图,适合时间线、分支概览、矩阵对比等需要视觉锚点的地图。CLI 只做后处理,图像生成由智能体负责。
主要能力与流程:先选结构策略(xmind skill list;默认路由:历史/演进用 timeline,条目索引用 cards,矩阵/表格用 comparison,其余用 default),再用 xmind skill show domain/default render render/strategy/<name> 加载对应指南。先用 markdown 写内容,根标题与最终地图标题一致,配图时建议 4 至 6 个一级分支,细节放 ### 及以下;历史类主题可设 5 个时代加根节点,形成 3x2 接触印相图。创建:cat <<'MD' | xmind create --stdin --skeleton <skeleton> --color <color> -o output.xmind,随后 xmind read output.xmind 校验。规划图片槽位:xmind image-plan output.xmind --grid-shape <auto|quad|timeline-strip|hero-branches|matrix> --output plan.json --prompt-output prompt.txt --topics-output topics.json;栅格按内容选择,默认覆盖根节点加关键一级分支,保持选择性覆盖。然后按 prompt.txt 生成一张接触印相图(要求匹配网格、清晰面板边界、统一风格、无文字水印标志),并确保生成为本地文件 contact-sheet.png。附加:xmind enrich-images output.xmind --use-plan plan.json --contact-sheet contact-sheet.png;常见根加分支场景可用 xmind enrich-images output.xmind --contact-sheet contact-sheet.png --limit 6。该步骤在本地切片、附加到计划主题、写入 .xmind 的 resources/、清理未引用旧资源。验证:xmind read output.xmind 和 unzip -l output.xmind,成功标准为根与计划一级分支有图、content.json 使用 xap:resources/...、zip 含匹配的 resources/.png、面板顺序与主题顺序一致。
前提与限制:需先安装 xmind CLI(npm i -g @xmindltd/xmind-cli);Codex / Gemini CLI 内置 image_gen 可直接用,其他智能体需配置外部图像 API 并产出单张本地接触印相图;纯文本地图应改用 xmind-file。根或一级分支标题在附加前变动需重跑 image-plan。不要把内联预览或记忆中的生成资源当作完成,只有 contact-sheet.png 成为真实本地文件后才能附加。图像若在 $HOME/.codex/generated_images/... 下,需移动或复制到运行目录。其余收费、价格、平台细节暂未提供。