← 返回 Skills 市场
一键转换为中国公文标准
作者
zhangxue1985122219
· GitHub ↗
· v1.0.3
· MIT-0
1178
总下载
1
收藏
5
当前安装
4
版本数
在 OpenClaw 中安装
/install official-document
功能描述
Generate official government documents formatted strictly by GB/T 9704-2012 standards, including titles, body, headings, footers, attachments, and contacts.
安全使用建议
This skill appears coherent and low-risk: it generates DOCX files locally using python-docx and the included script. Before installing, note: (1) you must install python-docx (pip install python-docx) and have appropriate Chinese fonts installed in the OS/Word for exact rendering; (2) the script will automatically normalize ASCII quotes into paired Chinese curly quotes (by design) — if you need exact literal characters (e.g., code snippets), edit or disable normalize_chinese_quotes(); (3) review CONFIG/CONTENTS to ensure no sensitive content is put into the generated file; (4) run the script in a local environment (or sandbox) if you want extra caution. There are no network calls or secret exfiltration in the code provided.
功能分析
Type: OpenClaw Skill
Name: official-document
Version: 1.0.3
The skill bundle is designed to generate official Chinese government documents following the GB/T 9704-2012 standard. The core logic in `scripts/generate_docx.py` uses the standard `python-docx` library to handle document formatting, margins, and page numbering. There are no indicators of malicious behavior such as data exfiltration, unauthorized network access, or command execution; the instructions in `SKILL.md` are strictly aligned with the stated purpose of document generation.
能力评估
Purpose & Capability
Name/description promise: generate official Chinese government documents per GB/T 9704-2012. What is present: SKILL.md, reference standard text, README, and a Python script that uses python-docx to format margins, headings, page numbers, attachments, contacts, and signature/date layout. All requested artifacts and code are appropriate and proportional to the stated goal.
Instruction Scope
Runtime instructions are limited to copying the provided script, editing CONFIG/CONTENTS, and running python generate_docx.py. SKILL.md and the script only reference document content, formatting parameters, and local file output; there are no instructions to read unrelated system files, query environment variables, contact external endpoints, or exfiltrate data.
Install Mechanism
No install spec is provided; dependency is a common Python package (python-docx) called out in README. There are no downloads from arbitrary URLs, no archives/extraction steps, and no package installs beyond a normal pip dependency — this is low risk and proportionate to the function.
Credentials
The skill declares no required environment variables, credentials, or config paths. The script runs locally and only uses provided CONFIG/CONTENTS; there are no requests for secrets or unrelated credentials. This is appropriate for a document-generation tool.
Persistence & Privilege
Skill is not always-enabled and has no install actions that modify other skills or global agent settings. It does not request persistent privileges or background execution; default autonomous invocation is allowed but not unusual for an invocable skill.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install official-document - 安装完成后,直接呼叫该 Skill 的名称或使用
/official-document触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.3
Version 1.0.3
- No file changes detected.
- Documentation minor update: phone number in contact field now displays with hyphen ('029-XXXXXXXX') for consistency.
- All functionality and configuration remain unchanged.
v1.0.2
- No code changes detected in this version.
- Documentation updated: minor adjustments to contact information examples, using placeholder numbers (e.g., 029-XXXXXX/181XXXXXXXX) for privacy.
- All formatting rules, structure, and usage instructions remain the same.
v1.0.1
- Improved compliance with GB/T 9704-2012 by enhancing layout, font, and spacing rules in documentation.
- Updated contact information configuration: supports string or structured dictionary format with customizable formatting options.
- Expanded details for page numbering: added explicit requirements for font, alignment, and implementation notes.
- Clarified falling signature (落款) rules: right alignment and right-side spacing now fully documented.
- SKILL.md content revised for greater completeness and precision; added explanations and configuration code samples.
- Internal file change: added generate_docx.cpython-313.pyc sample, removed obsolete template_docx.js from assets.
v1.0.0
- Initial release of "official-document" skill for standardized Chinese government documents based on GB/T 9704-2012.
- Supports formal document types: notifications, requests, reports, and official letters.
- Provides detailed layout, spacing, and font guidelines for compliance, including six-angled brackets for document numbers.
- Includes Python 3 generation script (using python-docx) and configuration instructions.
- Emphasizes correct use of Chinese curly quotation marks and font/size requirements.
- Sample folder structure and usage guide provided.
元数据
常见问题
一键转换为中国公文标准 是什么?
Generate official government documents formatted strictly by GB/T 9704-2012 standards, including titles, body, headings, footers, attachments, and contacts. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1178 次。
如何安装 一键转换为中国公文标准?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install official-document」即可一键安装,无需额外配置。
一键转换为中国公文标准 是免费的吗?
是的,一键转换为中国公文标准 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
一键转换为中国公文标准 支持哪些平台?
一键转换为中国公文标准 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 一键转换为中国公文标准?
由 zhangxue1985122219(@zhangxue1985122219)开发并维护,当前版本 v1.0.3。
推荐 Skills