Claude Skill MartBrowse skillsQuick linesLearn by videoTerminal guideWhat is a Skill?
← Back to list

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★ 232⑂ 19AI score 9/10Last updated: Aug 26, 2026

What it does

  • Runs scripts/process.py in smart, analyze, punctuation, or format mode 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 like ISO 9001:2015.
  • Applies official (GB/T 9704-2012), academic, legal, and custom presets; 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: .docx needs only python-docx; .doc/.wps needs Windows plus WPS or MS Word and pywin32.

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

  1. Full cleanup pass: uv run --with python-docx python scripts/process.py smart input.docx output.docx --preset official
  2. Diagnostics as JSON: uv run --with python-docx python scripts/process.py analyze input.docx --json
  3. 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)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
↓ Download 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.

  1. Install Python and uv (uv pulls python-docx on demand).
  2. Create the skills folder: mkdir -p ~/.claude/skills
  3. Clone the repo: git clone https://github.com/KaguraNanaga/document-format-skills.git ~/.claude/skills/document-format-skills
  4. Verify the scripts exist: cd ~/.claude/skills/document-format-skills && ls scripts
  5. Restart Claude Code and ask something like "clean up and format this .docx with the official preset".
  6. For .doc/.wps files, work on Windows with WPS or MS Word installed and add --with pywin32 to the command.