微算力 · API 导航与自营网关
API 接入 EN
未登录登录
📄

智能公文格式一键标准化

Government Word Format Standardizer · v1.0.0
入口已确认,内容待校验 文件树里有 SKILL.md,但正文还没采回,frontmatter 未核对。
办公 安全 A 级 作者 nighmat1220 公开目录收录
1.1k 下载 1 安装 2.9k 收藏 14 浏览

简介

将上传的Word文档自动转换为标准中文公文格式,内置字体检测与模板匹配,确保格式规范统一。

原始描述

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

通过你的 Agent 添加

安装目录:government-word-format-standardizer/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/government-word-format-standardizer/
Codex CLI~/.codex/skills/government-word-format-standardizer/
DeepSeek Harness~/.agents/skills/government-word-format-standardizer/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

技能正文

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

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

worddocument-conversionchinese-official-formatautomationtemplategov-styledocx

同类 Skill