📝
AutomationShell

Word Format

by yeap531

Word Format is an Automation skill for Claude Code, published by yeap531 in word-format-skill.

202 stars8 forkson yeap531/word-format-skillAdded 2026/09/05+1% in starsRepository updated 2026/04/27
applescriptclaude-codeclaude-code-pluginclaude-code-skilldocxhtml-to-docxmacosword
Install in seconds
Install Word Format
Copy Word Format into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/yeap531/word-format-skill/tree/main/skills/word-format ~/.claude/skills/word-format

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/yeap531/word-format-skill.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
skills/word-format/SKILL.md in yeap531/word-format-skill
Installs to
~/.claude/skills/word-format
Collection
The only skill cataloged from this repository
Category
Automation1956 skills

What Word Format does

Word Format copies the visual formatting from a reference .docx onto new content. Use it when you need to continue an existing document, match a template, or fix inconsistent fonts, spacing, and alignment on macOS.

Word Format is cataloged under Automation on DirSkills. Word Format comes from a repository tagged applescript, claude-code, claude-code-plugin, claude-code-skill and docx.

Documentation

README

word-format

把参考 Word 文档的排版视觉一致地复刻到新内容上。 工作方式:直接在原件 HTML 上增删改文字,再让浏览器渲染并把富文本送进 Word。

工作原理:HTML Bridge

参考 .docx
    │  ① docx_to_html.py
    ▼
Word Filtered HTML(原件,所有样式 inline)
    │  ② Claude 在原件上增删改文本(保留所有 inline style)
    ▼
edited.html
    │  ③ render_and_paste.sh
    │     浏览器渲染 → Cmd+A/C → Word 粘贴 → 保存
    ▼
最终 .docx

步骤 ③ 有两种模式,决定能保留多少模板格式:

模式 命令 能保留
B. 续写(推荐) --append-to <reference.docx> 100% 模板格式:页面设置、样式表、主题、页眉页脚、字体表 + 字符级排版
A. 新建 (不带 --append-to 仅字符/段落级排版(字体/字号/缩进/行距/对齐)

想 100% 保留模板格式 → 必须用模式 B。 浏览器粘贴管线本身只能传字符级直接属性,不传@page/样式表/theme1.xml。 模式 B 的诀窍:不靠粘贴管线传这些——直接复制原 .docx 副本作为承载文档,新内容用 Cmd+A → → → Cmd+V 续写到末尾,原文档的页面设置 / 样式表 / 主题原封不动地继承下来。

为什么不直接让 Word 打开生成的 HTML 再另存为 .docx

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Word Format

  • How does Word Format compare to other Automation skills?

    Word Format ranks #1773 by stars among the 1956 Automation skills in this catalog. The most-starred ones next to it are Autonomous Loops, Autonomous Agent Harness and Automation Audit Ops. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Word Format against them. Open each page to compare what they document and how they install.