Chinese Word Document Formatting Toolkit
A CLI skill that diagnoses and cleans punctuation, spacing, and layout in Chinese Word documents (.docx/.doc/.wps) using preset formatting standards.
Docs & OfficeIntermediate★ 214⑂ 19AI score 9/10Last updated: Jun 14, 2026
What it does
- Runs
scripts/process.pyinsmart,analyze,punctuation, orformatmode for one-shot diagnosis and cleanup. - Fixes mixed Chinese/English punctuation and spacing while protecting URLs, emails, Windows paths, times like
9:30, and standards likeISO 9001:2015. - Applies
official(GB/T 9704-2012),academic,legal, andcustompresets; normalizes tables and page numbers (style, position, offset). - Preserves or emits Word revision marks and converts plain text/Markdown into formatted DOCX via
from_text.py. - Requirements:
.docxneeds onlypython-docx;.doc/.wpsneeds Windows plus WPS or MS Word andpywin32.
Who it's for
- Office and administrative staff cleaning up large batches of Chinese official documents.
- Academic or legal writers who must hit strict formatting specs automatically.
- Anyone turning Markdown drafts into properly formatted DOCX deliverables.
Usage examples
- Full cleanup pass:
uv run --with python-docx python scripts/process.py smart input.docx output.docx --preset official - Diagnostics as JSON:
uv run --with python-docx python scripts/process.py analyze input.docx --json - Markdown to formatted DOCX:
uv run --with python-docx python scripts/from_text.py input.md output.docx --title "工作方案"
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/KaguraNanaga/document-format-skills/HEAD/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the SKILL.m folder from the GitHub repo KaguraNanaga/document-format-skills into my ~/.claude/skills/document-format-skills/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/KaguraNanaga/document-format-skills.git ~/.claude/skills/document-format-skills⚠ This is a third-party skill. Check the source repository before installing.
- Install Python and uv (uv pulls
python-docxon demand). - Create the skills folder:
mkdir -p ~/.claude/skills - Clone the repo:
git clone https://github.com/KaguraNanaga/document-format-skills.git ~/.claude/skills/document-format-skills - Verify the scripts exist:
cd ~/.claude/skills/document-format-skills && ls scripts - Restart Claude Code and ask something like "clean up and format this .docx with the official preset".
- For
.doc/.wpsfiles, work on Windows with WPS or MS Word installed and add--with pywin32to the command.
View source on GitHub ↗License: MIT