i-have-adhd
Shape output for a reader with ADHD: lead with the next action, number multi-step work, restate state across turns, suppress…
Chinese Word document formatting toolkit for .docx/.doc/.wps workflows. Use when Codex needs to diagnose document formatting, fix mixed Chinese/English punctuation and spacing, apply official/academic/legal/custom presets, normalize tables and page numbers, preserve or output
Claude Code
$ npx -y skills add KaguraNanaga/document-format-skills --skill document-format-skills --agent claude-code
Codex
$ npx skills add KaguraNanaga/document-format-skills --skill document-format-skills -a codex -y
Cursor
$ npx skills add KaguraNanaga/document-format-skills --skill document-format-skills -a cursor -y
Gemini CLI
$ npx skills add KaguraNanaga/document-format-skills --skill document-format-skills -a gemini-cli -y
GitHub Copilot
$ npx skills add KaguraNanaga/document-format-skills --skill document-format-skills -a github-copilot -y
OpenCode
$ npx skills add KaguraNanaga/document-format-skills --skill document-format-skills -a opencode -y
Windsurf
$ npx skills add KaguraNanaga/document-format-skills --skill document-format-skills -a windsurf -y
name: document-format-skills description: Chinese Word document formatting toolkit for .docx/.doc/.wps workflows. Use when Codex needs to diagnose document formatting, fix mixed Chinese/English punctuation and spacing, apply official/academic/legal/custom presets, normalize tables and page numbers, preserve or output Word revision marks, convert plain text or Markdown into formatted DOCX, or batch/script document cleanup for Chinese official documents.
Use these scripts to clean and format Chinese Word documents from the command line. Prefer `scripts/process.py` for normal work because it mirrors the desktop app's core pipeline without the GUI.
Run one smart pass when the user wants the document cleaned end to end:
uv run --with python-docx python scripts/process.py smart input.docx output.docx --preset official
Run diagnostics only:
uv run --with python-docx python scripts/process.py analyze input.docx uv run --with python-docx python scripts/process.py analyze input.docx --json
Run only punctuation/spacing cleanup:
uv run --with python-docx python scripts/process.py punctuation input.docx output.docx --space-mode keep_en_boundary
Run only formatting:
uv run --with python-docx python scripts/process.py format input.docx output.docx --preset official
On Windows, `.doc` and `.wps` input/output are supported through WPS or Microsoft Word COM automation:
uv run --with python-docx --with pywin32 python scripts/process.py smart input.wps output.wps
| Script | Use | | --- | --- | | `scripts/process.py` | One-shot CLI for `smart`, `analyze`, `punctuation`, and `format`; handles `.doc/.wps` conversion on Windows. | | `scripts/formatter.py` | Apply formatting presets, custom JSON settings, page numbers, table cleanup, revision marks, macOS font fallback. | | `scripts/punctuation.py` | Fix punctuation while preserving run formatting; supports spacing strategies. | | `scripts/from_text.py` | Create a DOCX from `.txt` or Markdown, then optionally run smart formatting. | | `scripts/analyzer.py` | Lower-level diagnostic script. | | `scripts/converter.py` | Windows-only `.doc/.wps` conversion helpers. |
Built-in presets:
Useful flags:
--custom-settings path.json --revision --deep-clean --smart-table-align --no-page-number --page-number-style dash|plain|page_text|page_total --page-number-position outside|left|center|right --page-number-offset-mm 7 --no-bold-serial
`--custom-settings` accepts desktop schema v2 config files, exported preset files shaped as `{"preset": {...}}`, or plain preset/override JSON. For non-custom presets, the JSON is merged over the selected preset.
Punctuation cleanup protects URLs, email addresses, Windows paths, time values like `9:30`, and standards like `ISO 9001:2015`. It fixes brackets, colons, semicolons, question/exclamation marks, Chinese comma/period contexts, ellipses, dashes, and paired quotes.
Spacing modes:
Generate and format a document from text:
uv run --with python-docx python scripts/from_text.py input.md output.docx --title "工作方案"
Markdown mode detects headings, bold spans, ordered/unordered lists, quotes, and fenced code blocks. `#` becomes the main title, `##` becomes `一、`, `###` becomes `(一)`, and deeper headings become numbered lower-level headings.
Use `--no-process` to only create the raw DOCX.
中文版本 README / Chinese Version 看不懂英文也没关系,请点击上面的链接查看中文版说明。 💡 想要无需联网、一键运行修复格式的桌面应用版本? 现已推出 Document Format GUI 公文格式助手 —— 无需联网、一键修复公文格式的桌面应用,小白也能轻松上手! 🌐 不想安装,也不需要 Agent? 直接打开 公文格式处理工具网页版,选择 .docx 文档即可开始处理。无需登录,文档只在当前浏览器中处理,不会上传到服务器。 A Word document formatting
Shape output for a reader with ADHD: lead with the next action, number multi-step work, restate state across turns, suppress…
Set up the owner profile so a personal agent knows who it works for (first-run setup, \"get to know me\"), or distill colleague,…