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 公文排...
MIT-0 · Free to use, modify, and redistribute. No attribution required.
⭐ 0 · 60 · 0 current installs · 0 all-time installs
MIT-0
Security Scan
OpenClaw
Benign
high confidencePurpose & 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.
Assessment
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.Like a lobster shell, security has layers — review code before you run it.
Current versionv1.0.0
Download ziplatest
License
MIT-0
Free to use, modify, and redistribute. No attribution required.
SKILL.md
Gongwen Format
Overview
Use this skill to turn a draft into a compliant Chinese official document, or to review an existing document against the standard in 公文标准格式.doc.
Read references/formatting_guidelines.md before making layout decisions. It contains the extracted rules from 公文标准格式.doc.
When To Use
- Formatting or checking
doc/docx/ plain-text drafts into standard 公文格式 - Rewriting notices, reports, requests, replies, letters, meeting minutes, or orders into compliant layout
- Reviewing whether an existing document matches the national standard
- Producing a formatting checklist before a human finishes the document in Word/WPS
Workflow
- Identify the document type:
- Standard 公文
- 信函格式
- 命令(令)格式
- 纪要格式
- Extract or confirm the core elements:
- 发文机关
- 发文字号
- 标题
- 主送机关
- 正文层级
- 附件说明 / 附件
- 署名、日期、印章或签发人
- 抄送、印发机关、印发日期
- Apply the layout rules in
references/formatting_guidelines.md. - If the source data is incomplete, do not invent factual elements such as 发文字号、密级、签发人、抄送机关. Mark them as missing and continue.
- When direct binary Word editing is not practical, output:
- a normalized final text structure
- an explicit formatting checklist for Word/WPS execution
- any unresolved missing metadata
Output Requirements
For review tasks, return:
- Non-compliant items
- Correct standard for each item
- A corrected version or exact revision instruction
For drafting or rewriting tasks, return:
- The normalized document text in final order
- The layout instructions needed to reproduce it in Word/WPS
- Any assumptions you made
Rules To Enforce
- Prefer explicit user or organization template rules over the generic national standard.
- If no local rule conflicts, use the requirements extracted from
公文标准格式.doc. - Keep wording formal, concise, and administrative in tone.
- Preserve factual content; do not silently rewrite policy meaning.
- Ensure the first page contains body text.
Hierarchy Numbering (层次序号)
Must use the following format (GB/T 9704-2012):
- Level 1:
一、,二、,三、... (中文数字+顿号) - Level 2:
(一),(二),(三)... (全角括号+中文数字) - Level 3:
1.,2.,3.... (阿拉伯数字+英文句点) - Level 4:
(1),(2),(3)... (全角括号+阿拉伯数字)
Do NOT use Roman numerals (I, II, III) or other formats.
Hierarchy Fonts (层次字体)
- Level 1:
3号黑体(Heiti / SimHei) - Level 2:
3号楷体(Kai / KaiTi) - Level 3 and 4:
3号仿宋(Fangsong / FangSong_GB2312)
Page Numbers (页码)
- Font:
4号半角宋体Arabic numerals - Format:
— 1 —(一字线 + 页码 + 一字线) - Position: below the core text area bottom edge
- Alignment: odd pages right-aligned, even pages left-aligned
Bundled Resources
- references/formatting_guidelines.md: concise rulebook extracted from
公文标准格式.doc - scripts/gongwen_checklist.py: prints a checklist for standard, letter, order, or minutes format
Files
12 totalSelect a file
Select a file to preview.
Comments
Loading comments…
