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.

Gba Mep Docx Toc — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins
G

gba-mep-docx-toc

Gba Mep Docx Toc

DeepSeek Harness bundle that registers a Word table-of-contents skill: insert a real TOC field into an existing .docx with graded indent, dot leaders, right-aligned page numbers and _Toc bookmarks, using only the Python standard library.

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

npx -y @deepseek-ai/dsh plugin --profile web add github:gba-mep/docx-toc#c38be1719b88aca02739041b3244aabd19fab174
READMECompatibilityVersions

Compatibility and provenance

Gba Mep Docx Toc is published as gba-mep-docx-toc and currently resolves to version 1.0.0. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
any
Release source
github
Registry updated
10/3/2026

Versions

1.0.0stable
10/3/2026

Related plugins

Loading related plugins…

Latest
1.0.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
any
License
MIT
Source
github
GitHub
★ 0
Weekly downloads
0
Last push
10/4/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 / git-graph / pet / remote-web-ui / web-ui-settings / skin-center / community-plugins / compat shim)。compat 桥接层已并入本包(src/client),无需独立 compat npm 包。Deepseek Ipptdeepseek-ipptiPolloWork PPT Studio and its curated slide templates as a native DeepSeek Harness conversation view.Codex Ui@michengai/dsh-codex-uiDSH Codex UI — 为 DeepSeek Harness Web 提供 Codex 风格侧栏、工作区会话树、全局搜索和轮次导航 · A Codex-style sidebar, workspace session tree, global search, and turn navigation for DSH Web

README

gba-mep-docx-toc

A DeepSeek Harness (dsh) bundle that registers one skill: insert a real Word table of contents into an existing .docx.

The skill writes a genuine TOC field with _Toc bookmarks straight into word/document.xml — graded indent per heading level, dot leaders, right-aligned page numbers — using only the Python standard library. It does not need Microsoft Word, LibreOffice, COM, or any third-party package.

Install

dsh plugin --profile web add gba-mep-docx-toc

This repository is also installable straight from source through pnpm's GitHub spec, and it is listed in the awesome-dsh-plugin catalog, so dsh-market can install it with one click.

After installing, restart dsh web once so the bundle layer is composed.

What it does

Given a .docx whose headings use the Heading 1–Heading 9 styles (or carry w:outlineLvl):

  1. finds the headings in document order,
  2. inserts _Toc… bookmarks so every entry is clickable,
  3. builds the TOC \o "1-3" \h \z \u field with one entry per heading — hyperlink anchor → title text → right-aligned tab with dot leader → PAGEREF field,
  4. indents level 2 by 100 and level 3 by 200 character units,
  5. rewrites only word/document.xml and copies every other part of the package byte for byte,
  6. verifies the result with verify (entry count = bookmark count = PAGEREF count).

Requirements

  • A DSH build that exposes the skills service — the entry imports nothing from the harness, so it works on any host publishing that contract (checked against DSH 0.2.0-rc.2).
  • Python 3.9+ on the machine that runs the script. No packages to install.
  • Node.js only because it is a dsh plugin; the entry itself uses node:fs, node:path and node:url.

Usage

python scripts/docx_toc.py build 输入.docx -o 输出.docx --title "目 录" --page-break both
python scripts/docx_toc.py verify 输出.docx
python scripts/docx_toc.py selftest

In a session you can also just describe the task — the skill's description is what the agent routes on.

Boundaries

  • Page numbers are placeholders. Python does not paginate, so real numbers appear only after Word updates the field (Ctrl+A, then F9, choose Update page numbers only). Until then every entry reads 1.
  • No section-based page numbering. With sections that restart numbering (roman front matter, arabic body), the PAGEREF result depends on the Word section setup and is not guaranteed.
  • It does not edit an existing TOC. A document that already carries a TOC field gets a second one; delete the old one first.
  • Paginating is not guaranteed to match Word. Rendering checks used LibreOffice, whose page breaks differ from Microsoft Word's.
  • Headings must use heading styles. Manually bolded and enlarged text is invisible to the script.

Layout

lib/index.js            bundle entry — registers the skill via ctx.skills.register()
cordis.patch.yml        loader patch: one insert row pointing at this package by name
SKILL.md                skill body (frontmatter: name / description / whenToUse)
scripts/docx_toc.py     the implementation (stdlib only)
references/OOXML-TOC.md notes on the OOXML table-of-contents field
tests/                  offline tests: entry behaviour and installability contract
screenshots.json        screenshots shown by plugin storefronts

Tests

node --test tests/

tests/entry.test.mjs runs apply() against a minimal context and asserts the registered fields, the resourceBase, and that the referenced files ship with the package — including a CRLF regression for the frontmatter parser. tests/bundle-contract.test.mjs asserts the installability contract: dsh.bundle declared, patch row naming the package, files whitelist complete, entry importing only node: builtins.

License

MIT — see LICENSE.md.