← 返回 Skills 市场
中文公文写作技能
作者
wonderslife
· GitHub ↗
· v1.1.0
· MIT-0
400
总下载
1
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install official-doc-writer
功能描述
党政机关公文生成技能,支持通知、报告、请示、函等公文类型,符合GB/T 9704-2012标准。当用户需要生成党政机关公文、创建正式文件、导出Word格式公文时调用。无论用户使用何种表述方式(如'帮我写个报告'、'生成一份通知'、'制作公文'等),只要涉及公文文档生成,都应使用此技能。
安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install official-doc-writer - 安装完成后,直接呼叫该 Skill 的名称或使用
/official-doc-writer触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.0
official-doc-writer v1.1.0 更新日志
- 新增官方详细文档(SKILL.md),全面介绍功能、使用指南和技术细节。
- 明确覆盖GB/T 9704-2012标准,支持通知、报告、请示、函等多种党政机关公文类型。
- 强化对话引导模式,详细列出交互示范和智能提示系统。
- 提供字体安装与验证的完整流程说明,确保生成公文页面规范。
- 补充技术集成方法与公文格式规范,便于用户快速配置和使用本技能。
元数据
常见问题
中文公文写作技能 是什么?
党政机关公文生成技能,支持通知、报告、请示、函等公文类型,符合GB/T 9704-2012标准。当用户需要生成党政机关公文、创建正式文件、导出Word格式公文时调用。无论用户使用何种表述方式(如'帮我写个报告'、'生成一份通知'、'制作公文'等),只要涉及公文文档生成,都应使用此技能。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 400 次。
如何安装 中文公文写作技能?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install official-doc-writer」即可一键安装,无需额外配置。
中文公文写作技能 是免费的吗?
是的,中文公文写作技能 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
中文公文写作技能 支持哪些平台?
中文公文写作技能 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 中文公文写作技能?
由 wonderslife(@wonderslife)开发并维护,当前版本 v1.1.0。
推荐 Skills