DSH Plugins
返回列表
⚙️

word-docx-writer

工作流 更新于 2026.09.11

在终端中运行以下命令:

dsh plugin install RempleXI/word-docx-writer

将以下提示词粘贴到 DeepSeek Harness 对话框中:

在 DeepSeek Harness 终端中执行 dsh plugin install RempleXI/word-docx-writer 即可安装该插件,源码仓库地址为 https://github.com/RempleXI/word-docx-writer 。

插件介绍

Write a simple markup file and get a properly formatted Chinese Word document out the other side—that is the core promise of word-docx-writer. Lab reports, course assignments, theses, project summaries: the tedium of Chinese long-document typography (fonts, point sizes, first-line indent, line spacing, caption numbering) simply disappears.

Under the hood the tool uses the Python standard library via an OOXML path to emit .docx files with no third-party Office dependency (Pillow is needed only for image sizing). A second implementation on Windows + Word COM adds .doc conversion and table-of-contents refreshing. Headings map to Word built-in styles so the TOC field works out of the box; figure and table captions auto-number by chapter; the default body style is SimSun 12 pt with 1.5× line spacing and a two-character first-line indent—all overridable from the command line. Beyond generation, it can restyle any existing .docx in one pass (fonts, sizes, paragraph rules) or fill in a template, preserving the cover page, grading sheet, headers and footers while replacing only the body content.

Ideal for students and professionals who produce long Chinese documents and already rely on AI agents—DSH, Claude Code, Gemini CLI, GitHub Copilot, Cursor—to drive their workflows. The repo ships SKILL.md, AGENTS.md, CLAUDE.md and other agent entry points, runs cross-platform, and is released under the MIT license.

使用场景

  • 用标记稿快速生成排版规范的中文实验报告或毕业论文
  • 对已有 .docx 文件一键套用字体、字号与段落格式规范
  • 填充模板时保留封面、评分表与页眉页脚,仅替换正文

适合人员

  • 撰写中文长文档的学生与研究人员
  • 需要批量生成规范 Word 报告的职场人士
  • 使用 AI Agent 驱动文档工作流的开发者