Government Word Format Standardizer

👤 nighmat1220 📦 v1.0.0 ⭐ 4.3 ⬇️ 1.4K 下载
📄 办公效率 免费

📖 技能介绍

--- 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.

    7w4.net小葱技能站,你的AI助手技能库。

  • scripts/convert_to_house_style.py: converter script.

🤖 AI 评测

这个Skill质量不错,能可靠地将Word文档转换为标准政府公文格式。格式规则全面,字体和样式应用准确,缺少必要字体时会明确提示。主要优点是转换逻辑完整、错误处理到位。主要不足是只能在Windows系统使用,且对格式混乱的文档识别可能不够准确。如果文档结构规范,转换效果会很好。

📊 多维度评分

适应性4.1
规范性4.2
有效性4.3
可靠性4.2
可信度5

📁 包含文件 (6 个)

📄 SKILL.md 1.7 KB
📄 _meta.json 130 B
📄 agents/openai.yaml 320 B
📄 assets/template-bundle.json 46.4 KB
📄 references/format-rules.md 1.4 KB
📄 scripts/convert_to_house_style.py 12.3 KB