DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins

@deepwhale-cn/dsh-docx-batch

Docx Batch

Word batch replace / merge / extract text / headers and footers / convert to Markdown, process an entire directory at once

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add @deepwhale-cn/dsh-docx-batch@0.1.0
READMECompatibilityVersions

Compatibility and provenance

Docx Batch is published as @deepwhale-cn/dsh-docx-batch and currently resolves to version 0.1.0. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
any
Release source
npm
Registry updated
10/23/2026

Versions

0.1.0stable
10/23/2026

Related plugins

Loading related plugins…

Latest
0.1.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
40.1 kB
Files
8
Surface
any
License
MIT
Source
npm
GitHub
★ 0
Weekly downloads
0
Last push
10/23/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in productivity-workflow.

Client Ui Task Board@linxin666/dsh-client-ui-task-boardHost-authoritative task board for the DSH Web GUI with real session execution, Host cron scheduling, and optional cross-platform idle-sleep protection; mounted without DSH source changes.Web All@linxin666/dsh-web-allDSH Web UI 全家桶聚合插件:一键安装全部功能插件(task-board / pet / web-ui-settings / skin-center / community-plugins / compat shim)。compat 桥接层已并入本包(src/client),无需独立 compat npm 包。Archive Manager@michengai/dsh-archive-manager归档、恢复、收藏和永久删除会话,并诊断损坏的会话日志。 · Archive, restore, favorite, and permanently delete sessions, and diagnose damaged session logs.Remotedsh-remoteRemote-work assistant for DeepSeek Harness: connect SSH (password/key/agent/keyboard-interactive, multi-hop ProxyJump), list hosts from ~/.ssh/config, pick a remote workspace, operate on it with 21 rw_* tools, conflict-aware mirror sync, an embedded PTY t

README

@deepwhale-cn/dsh-docx-batch

整目录的 Word 一次处理完:批量替换文本、提取正文、按文件名合并、列页眉页脚、转 Markdown —— 不打开 Word,不动原文件。

关键词:Word 批量替换 · docx 批量处理 · 批量合并 Word · 提取 Word 文本 · Word 转 Markdown · 页眉页脚提取 · 合同批量改甲方 · 命令行处理 Word

不装会怎样

50 份合同要统一把甲方「深鲸科技」改成「深海鲸」:不装就得逐份打开 Word、Ctrl+H、保存、关掉, 半小时起步,改到第 37 份时手一滑漏一份也没人发现。

几十份周报要合成一份、把 Word 文档塞进知识库前要先转成 Markdown、需要核对每份文档的页眉页脚 写的是什么 —— 这些都属于「机械但量大」的活,人工做既慢又容易漏。

更麻烦的是:直接让 AI 改原文件,一旦改坏没有退路。这个插件只读输入,所有产物写到单独的输出目录, 同名文件自动加序号、不覆盖任何东西。

能做什么

子命令作用产物(可核对)
replace整目录批量替换文本,--from/--to 可多组替换后的 .docx 副本;JSON 里给出每个文件替换了几处
extract提取正文文本(含表格)每个文档一个 .txt
merge按文件名自然顺序合并成一个 docx(正文 + 表格)merged.docx,段落数只增不减
headers列出每份文档每一节的页眉、页脚文本headers.txt
to-md按「标题样式 → #、表格 → Markdown 表格」转换每个文档一个 .md

共同约定:

  • 不修改输入文件,默认输出到 <输入目录>/_输出,可用 --out 指定;
  • 同名文件不覆盖:已存在时自动变成 合同_1.docx、合同_2.docx;
  • 目录递归处理,自动跳过 Word 临时文件(~$ 开头)和 _输出 目录;
  • --json 输出结构化结果,方便脚本 / CI 断言;出错时退出码非 0 并说明缺什么。
# 整目录替换,多组同时替换
dsh-docx-batch replace --input ./合同 --out ./合同_新 \
  --from 深鲸科技 --to 深海鲸 --from 2024 --to 2026

# 提取正文
dsh-docx-batch extract --input ./合同 --out ./文本

# 按文件名顺序合并
dsh-docx-batch merge --input ./周报 --out ./合并

# 页眉页脚清单 / 转 Markdown
dsh-docx-batch headers --input ./合同
dsh-docx-batch to-md --input ./合同 --out ./md

不能做什么

  • ❌ 不保证排版 100% 不变:替换跨多个 run(同一段里被拆开的文字块)时会合并该段落的 run, 段落内的局部加粗、字号、颜色可能丢失。重要文档请先跑一份对比再批量用。
  • ❌ 不处理 .doc(老格式)、.docm、加密/需要密码打开的文档;.doc 请先另存为 .docx。
  • ❌ 不处理脚注、尾注、批注、文本框、SmartArt、图片里的文字 —— 只覆盖正文段落、表格、页眉页脚。
  • ❌ merge 只合并正文和表格;页眉页脚、样式主题不合并,复杂排版(分栏、自动编号域)会退化为纯文本顺序。
  • ❌ headers 只读页眉页脚,不改;replace 能改页眉页脚里的文字。
  • ❌ 不是格式转换器:不导出 PDF、不做 OCR、不做批量重命名。
  • ❌ 替换是字面匹配,大小写敏感,不支持正则;--from 是空字符串之类无意义输入不做特殊处理。
  • ✅ 全部在本机由 python-docx 处理,不联网、不上传文档。

安装

dsh plugin --profile web add @deepwhale-cn/dsh-docx-batch

运行依赖本机的 python3 + python-docx(插件不会替你装)。缺依赖时 CLI 会直接打印安装命令:

python3 -m pip install python-docx
# macOS 没有 python3 时
brew install python3

用法

dsh-docx-batch --help
dsh-docx-batch --demo        # 自造样例文件跑完整流程,打印产物路径
dsh-docx-batch <action> --input <文件或目录> [--out <目录>] [--json]

--demo 会在系统临时目录里造样例文档并依次跑 replace / extract / to-md / merge / headers, 不动你的任何文件,跑完直接看产物路径就知道它能干什么。

License

MIT © 温州深鲸智能科技有限公司