Converts XMind mind maps into Excel workbooks with outline, test-case, checklist, QA-table (with a review sheet for the inferred precondition/step split) and merged-matrix views, all on the local machine.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-xmind-excel
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:Qthinoyy/dsh-xmind-excel
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
Convert .xmind mind maps into .xlsx workbooks from inside DeepSeek Harness (DSH).
Two tools, four views, no runtime dependencies, no network access.
| Tool | What it does |
|---|---|
xmind_to_excel |
Reads a .xmind file and writes an .xlsx workbook: outline, testcase, checklist, qa, matrix, or all |
xmind_inspect |
Summarizes canvases, node count, depth distribution, priority markers and sample titles per level — pick the view and case levels from facts, not guesses |
Views
| Mode | Columns | Use it for |
|---|---|---|
outline (default) |
层级1…层级N, 标题, 备注, 标签, 超链接, 标记/优先级, 路径, 相对深度 | A faithful dump: one row per node, filterable and pivot-friendly |
testcase |
模块, 用例标题, 优先级, 前置条件, 步骤, 预期结果, 标签, 超链接, 备注 | Maps whose case titles start with 验证 / 校验 / 测试 |
checklist |
模块, 场景, 用例标题, 优先级, 预期结果, 标签, 超链接, 备注 | Maps shaped 模块 → 场景 → 用例 → 预期; case levels come from caseDepth |
qa |
QA table: 模块, 子模块, 用例场景, 优先级, 前置条件, 操作步骤, 预期结果, XMind 来源, plus a 分类核对 sheet with each inferred decision, score and rule | Test-case handoff; the map carries no explicit precondition/step semantics, so the split is heuristic and reviewable |
matrix |
层级1…层级N with vertically merged ancestor cells | Printing and review: one row per leaf path, reads like the expanded map |
all |
outline + testcase + matrix sheets |
Hand all three to the user and let them choose |
xmind_to_excel accepts XMind 2020+/Zen containers (content.json) and XMind 8 containers (content.xml), including floating topics (converted as ordinary children).
Install
From npm (recommended):
plugin_manager { action: "install_bundle", target: "dsh-xmind-excel@1.0.1" }
Or open Plugins → Add plugin and paste dsh-xmind-excel@1.0.1.
From a local directory — the usual path for a plugin under development:
- Open Plugins in the DSH sidebar.
- Choose Add plugin and point it at this directory (
dsh-xmind-excel/), or runplugin_managerwithaction: install_bundleand this directory as the target. - The new row XMind to Excel appears in the plugin list; both tools are registered for new and existing sessions, and the bundled
xmind-to-excelskill shows up in the skill catalog.
From npm (after publishing):
plugin_manager { action: "install_bundle", target: "dsh-xmind-excel@1.0.0" }
Turning the bundle off removes both tools and the bundled skill; nothing else in the profile changes.
Usage
xmind_inspect { input: "D:\\cases\\calculator.xmind" }
xmind_to_excel { input: "D:\\cases\\calculator.xmind",
mode: "checklist", caseDepth: "2,3" }
# -> Created: D:\cases\calculator.checklist.xlsx
# mode=checklist sheets=1 nodes=121 rows=53 cases=53 size=29.9 KB
Parameter notes:
caseDepth(checklistonly) lists the tree levels that hold cases, e.g."3"or"2,3". A node on one of those levels is a case unless a deeper case level exists below it; higher nodes become module/scene. Level-2 nodes titled 说明/备注/注意/举例/前提/范围 are treated as annotations: the scene column stays empty and the text moves to the notes column.sceneLevel(qaonly) picks the 用例场景 level (default 3);levelOffsetshifts module/submodule/scene down when the first level is a version or a device;preconditionDepth/stepDepthforce levels to count as 前置条件 / 操作步骤;unclassifieddecides where undecided nodes go —steps(default),scene, ordrop;withDetail: falseskips the review sheet.results(qaonly):off(default, 1.0.4 behaviour) keeps assertion wording such as 「形象跟随切换」 in 操作步骤;onmoves a result-worded node directly above the leaf into 预期结果 (过程结果 → 最终结果). Question/decision nodes (是否/判断/如何) and branch labels are never treated as results.qaclassification, strongest signal first: explicit prefixes (前置:/步骤:/预期:), numbered notes (steps) or 前置/前提 wording (precondition), bracket annotations, then wording (verb → step, state words 已/未/断网/安装… → precondition). A node whose child is a question is treated as a scene. Nothing decisive → undecided: by default it is appended to 用例场景 (so it never disappears), recorded as 未分类→场景 in 「分类核对」, and its full path stays in the XMind 来源 column.outputsets the workbook path. Without it the workbook lands next to the input as<input>.xlsx(singleoutline/all) or<input>.<mode>.xlsx; if that name is taken a timestamp suffix is added unlessoverwrite: true.sheetconverts only a matching canvas;maxLevel(1–30, default 12) controls how many level columns expand;splitSheetsnames worksheets<canvas>.<view>;explodeStepswrites one row per step intestcasemode.
Case recognition rules for testcase are documented in the bundled skill and in docs/DETAIL; when titles do not follow the convention the tool falls back to "every leaf is a case" and reports the count so you can spot it.
Limits and privacy
- Reads the given
.xmindfile (≤ 50 MB) and writes one.xlsxfile. No network requests, no uploads, no telemetry. - Only the text structure is converted: images, stickers, relationship lines, boundaries, summaries and layout positions are dropped; floating topics appear as ordinary children.
- Encrypted, corrupt or non-zip files fail with a clear error instead of a best guess.
- Conversion is rule-based; review the first rows when titles are not written in a recognizable style.
- The matrix view merges only vertically adjacent equal ancestor cells; it does not reproduce complex layouts.
Compatibility
- DSH
>=0.2.0-rc.1 <0.3.0-0(declared asdsh.engines.dsh); Node.js 22+. - Host-only bundle: no UI slots, no settings fields, no client bundle.
Development
node --test # 35 tests: parsing, four views, zip/xlsx structure, error paths, packaging
node -e "import('./lib/convert.js').then(...)" # or use the tools from a DSH session
Layout:
index.js Host plugin: registers both tools and the bundled skill
lib/xmind.js .xmind container reader (content.json / content.xml)
lib/xml.js Minimal XML reader for XMind 8 files
lib/modes.js outline / testcase / checklist / matrix builders
lib/xlsx.js XLSX writer (inline strings, styles, merges, freeze, filter)
lib/zip.js ZIP reader/writer (CRC32, stored + deflate)
lib/convert.js Orchestration: mode selection, output naming, size limits
skills/ Bundled `xmind-to-excel` skill
locale/ English and Chinese plugin metadata
docs/ Detail documents and the feature image
test/ node:test suite with XMind 2020, XMind 8 and checklist fixtures
Author
欧阳秋生 (Ouyang Qiusheng) — maintainer.
Source: https://github.com/Qthinoyy/dsh-xmind-excel.
Release, attribution and monetisation notes: PUBLISHING.md.
License
MIT — see LICENSE.
Links
More in this category
Tencent/WeKnora#dsh-weknora★ 38236
Four read-only tools over a WeKnora knowledge base: list knowledge bases, hybrid passage search, reassemble one document's chunks in order, and WeKnora's own cited RAG or ReAct-agent answer with a resumable session id.
DayuanJiang/next-ai-draw-io#dsh-plugin★ 37190
Draws draw.io diagrams in DeepSeek Harness through the next-ai-drawio MCP server: the link in the reply opens a live preview in the right sidebar, you can edit the diagram by hand, and each AI change is a version you can restore. Node.js 18+; npx downloads the MCP server on first use.
superdesigndev/treg★ 9111
Tool catalog for agents: search ~2,600 external endpoints (SEO and SERP, backlinks, social, people and company enrichment, ad libraries, scraping) by the task you want done, read each one's parameters and per-call price, then call it with the credential injected server-side. Ships the skill plus an MCP row that stays disabled until TREG_TOKEN is set.
T-Auto/dsh-ops★ 6016
Provides bash, PowerShell 7, and high-performance Rust tools for DSH on Windows to reduce token usage.
helloHub1212/dsh-windows-mcp★ 2563
Bridges the CursorTouch/Windows-MCP desktop automation server into DSH through the official MCP client bridge, registering its screenshot, UI tree snapshot, mouse and keyboard input, clipboard, process and registry tools as mcp__windows__* tools for the model, and adds a windows_mcp_doctor diagnostic tool. Computer Use is off by default and is switched on from the plugin panel.
sixtysevenlf/dsh-blender-plugin★ 2280
Lets a DSH agent drive a local Blender over a direct TCP channel with 15 tools: viewport frames, custom-angle renders, Python execution, headless and job offload, transaction rollback, and a planning layer of 228 ops across 34 families.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.