← 返回
开发者工具 中文

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...
将上传的Word文档(.docx)转换为由附带的政府风格模板包定义的固定中文公文格式。适用于...
nighmat1220
开发者工具 clawhub v1.0.0 1 版本 99792.5 Key: 无需
★ 1
Stars
📥 942
下载
💾 130
安装
1
版本
#format#latest#standard#word

概述

---

name: word_format_standardize

description: Convert uploaded Word documents (.docx) into the fixed Chinese official-document format defined by the bundled government-style template bundle. Use when Codex needs to restyle a user-provided Word file to match this house style, enforce title/body/heading/table rules, and stop with a clear missing-font notice if required fonts are unavailable.


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.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 12:52 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

AI领域重点企业资讯抓取与简报生成

nighmat1220
{"answer":"采集筛选分类AI产业新闻,生成中文标题摘要,并按公司清单及来源导出Excel和Word简报。"}
★ 0 📥 841
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 66 📥 180,017
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 668 📥 323,989