Documents

Government Word Format Standardizer

Convert uploaded Word documents (.docx) into the fixed Chinese official-document format defined by the bundled government-style template bundle. Use when Cod...

What it does

Convert uploaded Word documents (.docx) into the fixed Chinese official-document format defined by the bundled government-style template bundle. Use when Cod...

The skill document

Word Format Standardize

Convert a user-uploaded .docx into the target format and return the converted .docx.

Workflow

  1. Confirm the source file is a .docx.
  2. Run scripts/convert_to_house_style.py with the input file and a target output path.
  3. If the script exits with code 2, tell the user which fonts are missing and do not return a converted file.
  4. If conversion succeeds, return the generated .docx.
  5. Mention that complex layout documents should still be manually checked after conversion.

Command

python scripts/convert_to_house_style.py `
  --input "C:\path\to\input.docx" `
  --output "C:\path\to\output.docx"

Converter Guarantees

  • Check required fonts before conversion.
  • Apply page setup, theme, styles, font table, and section settings derived from the bundled template bundle.
  • Normalize paragraphs into title, body, heading 1-4, attachment label, date/signature, and table text using deterministic heuristics.
  • Return a hard failure instead of pretending conversion worked when critical fonts are missing.

Resources

  • assets/template-bundle.json: text-only export of the reference template settings required for ClawHub upload.
  • references/format-rules.md: concise formatting rules and heuristics.
  • scripts/convert_to_house_style.py: converter script.

Related skills

Convert PDF and images to 10 structured formats locally via a Python CLI wrapper around the ComPDFKit SDK.

40 installs101 stars

Convert PDF or image files to 10 editable formats (Word, Excel, PPT, HTML, and more) via ComPDFKitConversion.

45 installs97 stars

公众号排版|Markdown 转 HTML|排版主题|段落样式 — 公众号一键排版工具,Markdown 文稿转微信后台可粘贴 HTML,多主题、多字号、段落样式切换,所见即所得。面向公众号编辑、独立作者、排版岗。触发词:「排版」「版式」「美化」「格式化」「字号」「段落样式」「换个排版主题」「换个版式」「转 HT...

36 installs1 stars

Turn Markdown into WeChat Official Account HTML, covers, infographics, and image posts via the md2wechat CLI.

65 installs4 stars

Framework for translating Word, PDF, Excel, PowerPoint, HTML, Markdown, TXT documents. Provides document parsing code — the AI agent's own LLM performs the a...

35 installs1 stars

Draft, rewrite, or review Chinese official documents and formal working materials with strict fact boundaries.

60 installs1 stars