← Back to Skills Marketplace
中文公文写作技能
by
wonderslife
· GitHub ↗
· v1.1.0
· MIT-0
400
Downloads
1
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install official-doc-writer
Description
党政机关公文生成技能,支持通知、报告、请示、函等公文类型,符合GB/T 9704-2012标准。当用户需要生成党政机关公文、创建正式文件、导出Word格式公文时调用。无论用户使用何种表述方式(如'帮我写个报告'、'生成一份通知'、'制作公文'等),只要涉及公文文档生成,都应使用此技能。
Usage Guidance
This package appears to do what it says: generate GB/T 9704-2012 style .docx documents and assist with collecting fields via dialog. Before installing/running: 1) Review the scripts locally (you already have the code) and confirm there are no unexpected network calls — none were found. 2) The install_fonts.py script will read from system font folders and may copy files into system font directories and (on Windows) write registry entries — this requires admin rights. Only run it if you trust the author. 3) Check licensing for fonts (especially 方正 fonts) — they often require commercial licenses; the README mentions official-site licensing. The repository README seems to imply font binaries may be present, but the manifest shown did not list .ttf files — confirm whether the package actually includes font binaries to avoid unlicensed font distribution. 4) If you prefer less privilege, do not run the installer as administrator; instead manually install only fonts you legally own or use open-source substitutes (the SKILL suggests Source Han/思源 fonts). 5) If you need higher assurance, run the scripts in an isolated environment (VM or container) and inspect outputs before using them in production.
Capability Analysis
Type: OpenClaw Skill
Name: official-doc-writer
Version: 1.1.0
The skill bundle is designed to generate official Chinese government documents following the GB/T 9704-2012 standard. It is classified as suspicious because the font installation utility (scripts/install_fonts.py) performs high-privilege system operations, including modifying the Windows Registry (winreg) and executing shell commands (os.system) to update font caches. While these actions are aligned with the stated purpose of ensuring document formatting accuracy, the use of such risky capabilities within an automated agent skill warrants caution, despite the lack of clear malicious intent or data exfiltration logic.
Capability Assessment
Purpose & Capability
Name/description (generate GB/T 9704-2012-compliant party/government documents) align with the included code: document generation (python-docx), dialog manager and smart prompts, and font support. Required env/config/credentials are empty and appropriate.
Instruction Scope
SKILL.md and scripts instruct the agent/user to run local Python scripts (generate_official_doc.py, install_fonts.py) and to copy fonts from system font directories. The skill accesses local system font directories (e.g., C:\Windows\Fonts, /usr/share/fonts) and may read/write those paths — this is within scope for installing/displaying fonts but is a system-level operation users should expect.
Install Mechanism
No network download/install steps or remote URLs in the code; fonts are installed by copying local files and invoking platform font registration (winreg) or fc-cache. No arbitrary remote code fetches were observed. This is lower-risk than downloading and executing archives, but it still writes to system font directories.
Credentials
The skill requests no environment variables or external credentials. Access to system font directories and registry via the font installer is proportional to the stated need to install fonts to render documents correctly, though it requires elevated filesystem/registry access on some OSes.
Persistence & Privilege
The skill is not always-enabled and does not autonomously require extra platform privileges. However, the install_fonts.py script attempts to write into system font directories and (on Windows) registry keys, which requires administrator privileges — this is legitimate for font installation but has system-wide effect and should be run only if you trust the package.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install official-doc-writer - After installation, invoke the skill by name or use
/official-doc-writer - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.1.0
official-doc-writer v1.1.0 更新日志
- 新增官方详细文档(SKILL.md),全面介绍功能、使用指南和技术细节。
- 明确覆盖GB/T 9704-2012标准,支持通知、报告、请示、函等多种党政机关公文类型。
- 强化对话引导模式,详细列出交互示范和智能提示系统。
- 提供字体安装与验证的完整流程说明,确保生成公文页面规范。
- 补充技术集成方法与公文格式规范,便于用户快速配置和使用本技能。
Metadata
Frequently Asked Questions
What is 中文公文写作技能?
党政机关公文生成技能,支持通知、报告、请示、函等公文类型,符合GB/T 9704-2012标准。当用户需要生成党政机关公文、创建正式文件、导出Word格式公文时调用。无论用户使用何种表述方式(如'帮我写个报告'、'生成一份通知'、'制作公文'等),只要涉及公文文档生成,都应使用此技能。 It is an AI Agent Skill for Claude Code / OpenClaw, with 400 downloads so far.
How do I install 中文公文写作技能?
Run "/install official-doc-writer" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is 中文公文写作技能 free?
Yes, 中文公文写作技能 is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does 中文公文写作技能 support?
中文公文写作技能 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created 中文公文写作技能?
It is built and maintained by wonderslife (@wonderslife); the current version is v1.1.0.
More Skills