Preface¶
Papers, reports, and presentation decks are often revised repeatedly in Word: body text uses one font, headings another, line spacing and margins vary across sections, and tables and figure captions are misaligned. Manually adjusting paragraph by paragraph in the Styles panel is slow and error‑prone. If you want to say “format this Word file for me” right inside an Agent conversation and have a tool handle fonts, headings, line spacing, page margins, tables, and captions consistently, you can check out the community Skill word-auto-format on SkillHub (coordinate @user_e41a5bf9/wsj-word-format, current version 1.0.0).
What this is¶
word-auto-format targets scenarios where you need to automatically format, lay out, or beautify Word (.docx) documents. It is published by SkillHub user user_e41a5bf9, sourced from the community, and categorized under office-efficiency. The Skill provides the Python script word_formatter.py to unify fonts, detect headings, adjust line spacing and margins, format tables, and center captions in a single command flow. The tag indicates requires_api_key=false, so no extra API keys are needed.
Official entry points:
- SkillHub page: https://www.skillhub.cn/skills/user_e41a5bf9/wsj-word-format
- API coordinate page: https://api.skillhub.cn/user_e41a5bf9/wsj-word-format
(The SkillHub page shows a rating of 100000 and 808 downloads; these figures come from the page and pre‑fetched data and may change as the store updates.)
Core features¶
The capabilities below come from the Skill’s official description and correspond to the scope handled by word_formatter.py:
- Font unification: resolves inconsistent fonts between body text and common text.
- Heading detection: identifies and normalizes heading‑level formatting.
- Line spacing: standardizes paragraph line spacing.
- Page margins: adjusts page margins.
- Table formatting: handles layout of tables in the document.
- Caption centering: centers captions for figures, tables, etc.
The Skill description emphasizes that the above can be done in one command (a single script execution), making it suitable for workflows where you “draft content first, then unify layout”.
When this Skill is triggered¶
The Agent loads the Skill description when matching user intent. The officially listed trigger phrases include (Chinese and English both accepted):
- “帮我排版这个 Word”“自动格式化文档”“统一字体行距”
- “论文/报告排版”“Word 排版”“整理文档格式”
- “format this Word file”“auto typeset”“standardize document style”
Once installed and enabled, simply describe your formatting needs in natural language and point to the .docx file; the Agent will follow the Skill guidance to invoke word_formatter.py.
Installation and activation¶
The Skill follows the common SKILL.md format. The SkillHub page provides the installation method: have your AI install the coordinate @user_e41a5bf9/wsj-word-format per the SkillHub installation guide.
If you already have the skillhub CLI installed, you can check the version first, then install into the current Agent’s skills directory (must use --dir; otherwise it defaults to ./skills/ and may not be recognized by the Agent):
command -v skillhub && skillhub --version
skillhub install @user_e41a5bf9/wsj-word-format --dir <your Agent skills directory>
Common clients’ skills directories (from the SkillHub installation docs; pick one based on the tool you use):
| Environment | Skills directory |
|---|---|
| Cursor | ~/.cursor/skills/ |
| Claude Code | ~/.claude/skills/ |
| Codex | ~/.codex/skills/ or .agents/skills/ in the project |
| Windsurf | ~/.codeium/windsurf/skills/ or .windsurf/skills/ |
If the CLI is not installed, follow the official installation script as described in the docs (full install or CLI only). In sandboxed or restricted‑network environments, allow access to the installation source before running.
After installation, restart or refresh skills loading according to the conventions of your Agent; whether a restart is needed depends on your client’s documentation.
Typical usage¶
Public materials don’t provide a separate command‑line argument table for word_formatter.py. The typical approach is to drive the script via an Agent + the Skill description, rather than hand‑writing long undocumented flags. A reproducible flow:
- Prepare the target file as .docx (the Skill specifically targets Word
.docx). - In an Agent with this Skill installed, send a formatting request, e.g.: “Use word-auto-format to unify the fonts and line spacing in this report, and handle tables and figure captions.”
- Follow the Agent’s prompts to confirm the input file path and output method (overwrite or save‑as; refer to the Agent/Skill guidance).
- Open the result in Word and spot‑check heading levels, body fonts, line spacing, page margins, tables, and captions to ensure they meet expectations.
If you need script‑level usage, consult SKILL.md and word_formatter.py documentation within the installed Skill package; the package documentation is authoritative.
Use cases and cautions¶
Who it suits
- People who frequently deliver Word versions of papers, course reports, or internal briefings with repeatable, fixed layout requirements.
- Those who want to hand off “unify fonts and line spacing, margins, tables, captions” to repeatable automation instead of manual style clicks every time.
- Those working in environments that support Skills (e.g., Cursor, Claude Code, Codex) and willing to install a community Skill via SkillHub.
Limitations and cautions
- Only targets .docx; legacy
.docor other formats must be converted first, and whether conversion is supported is outside this Skill’s description. - Community source (community). Before use, check version 1.0.0 and the description on the SkillHub page; for critical documents, back up before formatting.
- Heading detection relies on existing document structure; if the document is almost unstyled and headings are distinguished only by bold, results may be inferior to documents using Word heading styles.
- Whether complex layouts (multi‑column, fields, embedded objects, extreme custom styles) are fully covered must be validated with your document; the official description does not claim to replace all features of professional typesetting software.
Conclusion¶
word-auto-format consolidates the high‑frequency, mechanical aspects of Word layout—fonts, headings, line spacing, margins, tables, and captions—into word_formatter.py and a single execution flow, making it easy to trigger via natural language in an Agent conversation. Install coordinate: @user_e41a5bf9/wsj-word-format. For details and statistics, see SkillHub: https://www.skillhub.cn/skills/user_e41a5bf9/wsj-word-format .