← 返回 Skills 市场
johamwon

gongwenformat

作者 johamwon · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
256
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install gongwenformat
功能描述
Format, review, or rewrite Chinese official documents according to the requirements in GB/T 9704-2012 and the local file `公文标准格式.doc`. Use this skill for 公文排...
使用说明 (SKILL.md)

\r \r

Gongwen Format\r

\r

Overview\r

\r Use this skill to turn a draft into a compliant Chinese official document, or to review an existing document against the standard in 公文标准格式.doc.\r \r Read references/formatting_guidelines.md before making layout decisions. It contains the extracted rules from 公文标准格式.doc.\r \r

When To Use\r

\r

  • Formatting or checking doc / docx / plain-text drafts into standard 公文格式\r
  • Rewriting notices, reports, requests, replies, letters, meeting minutes, or orders into compliant layout\r
  • Reviewing whether an existing document matches the national standard\r
  • Producing a formatting checklist before a human finishes the document in Word/WPS\r \r

Workflow\r

\r

  1. Identify the document type:\r
    • Standard 公文\r
    • 信函格式\r
    • 命令(令)格式\r
    • 纪要格式\r
  2. Extract or confirm the core elements:\r
    • 发文机关\r
    • 发文字号\r
    • 标题\r
    • 主送机关\r
    • 正文层级\r
    • 附件说明 / 附件\r
    • 署名、日期、印章或签发人\r
    • 抄送、印发机关、印发日期\r
  3. Apply the layout rules in references/formatting_guidelines.md.\r
  4. If the source data is incomplete, do not invent factual elements such as 发文字号、密级、签发人、抄送机关. Mark them as missing and continue.\r
  5. When direct binary Word editing is not practical, output:\r
    • a normalized final text structure\r
    • an explicit formatting checklist for Word/WPS execution\r
    • any unresolved missing metadata\r \r

Output Requirements\r

\r For review tasks, return:\r \r

  • Non-compliant items\r
  • Correct standard for each item\r
  • A corrected version or exact revision instruction\r \r For drafting or rewriting tasks, return:\r \r
  • The normalized document text in final order\r
  • The layout instructions needed to reproduce it in Word/WPS\r
  • Any assumptions you made\r \r

Rules To Enforce\r

\r

  • Prefer explicit user or organization template rules over the generic national standard.\r
  • If no local rule conflicts, use the requirements extracted from 公文标准格式.doc.\r
  • Keep wording formal, concise, and administrative in tone.\r
  • Preserve factual content; do not silently rewrite policy meaning.\r
  • Ensure the first page contains body text.\r \r

Hierarchy Numbering (层次序号)\r

\r Must use the following format (GB/T 9704-2012):\r

  • Level 1: 一、, 二、, 三、... (中文数字+顿号)\r
  • Level 2: (一), (二), (三)... (全角括号+中文数字)\r
  • Level 3: 1., 2., 3.... (阿拉伯数字+英文句点)\r
  • Level 4: (1), (2), (3)... (全角括号+阿拉伯数字)\r \r Do NOT use Roman numerals (I, II, III) or other formats.\r \r

Hierarchy Fonts (层次字体)\r

\r

  • Level 1: 3号黑体 (Heiti / SimHei)\r
  • Level 2: 3号楷体 (Kai / KaiTi)\r
  • Level 3 and 4: 3号仿宋 (Fangsong / FangSong_GB2312)\r \r

Page Numbers (页码)\r

\r

  • Font: 4号半角宋体 Arabic numerals\r
  • Format: — 1 — (一字线 + 页码 + 一字线)\r
  • Position: below the core text area bottom edge\r
  • Alignment: odd pages right-aligned, even pages left-aligned\r \r

Bundled Resources\r

\r

安全使用建议
This skill appears to do exactly what it says: local .docx formatting according to GB/T 9704-2012. Before installing/using it: (1) confirm your runtime has python-docx (the scripts expect it) and any needed Chinese fonts; (2) run the scripts on copies of sensitive documents (they read and overwrite files you point them at); (3) be aware the package contains duplicated files/paths (redundant copies of the same scripts and SKILL.md) — not harmful but noisy; (4) because the skill processes documents locally and requests no network access or credentials, it does not appear to exfiltrate data, but as with any tool, avoid giving it highly sensitive documents to run in untrusted environments. If you want higher assurance, review or run the scripts in a sandbox to confirm behavior in your environment.
功能分析
Type: OpenClaw Skill Name: gongwenformat Version: 1.0.0 The skill bundle is designed to format and review Chinese official documents (Gongwen) according to the GB/T 9704-2012 standard. The included Python scripts, such as `convert_to_gongwen.py` and `format_gongwen_docx.py`, use the standard `python-docx` library to manipulate document styles, margins, and fonts. The instructions in `SKILL.md` and the guidelines in `formatting_guidelines.md` are consistent with the stated administrative purpose and do not contain any malicious prompt-injection or unauthorized commands.
能力评估
Purpose & Capability
Name/description (公文格式化) matches the bundled artifacts: formatting guidelines and three Python scripts that convert/format DOCX files and print checklists. There are no unrelated credentials, binaries, or config paths requested.
Instruction Scope
SKILL.md confines the agent to formatting, checking, and producing checklists using the included reference file. It explicitly instructs not to invent factual metadata. The runtime scripts operate on user-supplied input_path and output_path only and do not attempt to read other system files or environment variables.
Install Mechanism
No install spec (instruction-only skill plus bundled scripts). The Python scripts rely on python-docx and standard libs but there is no download-from-URL, no external installer, and no code that fetches remote resources.
Credentials
The skill requires no environment variables, credentials, or config paths. The scripts ask only for file paths (input/output) which is proportionate to the formatting purpose.
Persistence & Privilege
The skill is not always-enabled and does not modify other skills or system-wide settings. It runs locally on supplied files and does not persist credentials or enable permanent background actions.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install gongwenformat
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /gongwenformat 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of gongwen-format skill for Chinese official document formatting: - Converts drafts into compliant Chinese official documents following GB/T 9704-2012 and local standards. - Supports formatting, reviewing, or rewriting for multiple document types, including notices, reports, requests, letters, meeting minutes, and orders. - Provides detailed workflow and explicit output requirements for both review and drafting scenarios. - Enforces exact hierarchy numbering, font, and page number standards; prohibits nonstandard formats. - Bundles concise formatting guidelines and an automated checklist script.
元数据
Slug gongwenformat
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

gongwenformat 是什么?

Format, review, or rewrite Chinese official documents according to the requirements in GB/T 9704-2012 and the local file `公文标准格式.doc`. Use this skill for 公文排... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 256 次。

如何安装 gongwenformat?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install gongwenformat」即可一键安装,无需额外配置。

gongwenformat 是免费的吗?

是的,gongwenformat 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

gongwenformat 支持哪些平台?

gongwenformat 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 gongwenformat?

由 johamwon(@johamwon)开发并维护,当前版本 v1.0.0。

💬 留言讨论