← Back to Skills Marketplace
一键转换为中国公文标准
by
zhangxue1985122219
· GitHub ↗
· v1.0.3
· MIT-0
1178
Downloads
1
Stars
5
Active Installs
4
Versions
Install in OpenClaw
/install official-document
Description
Generate official government documents formatted strictly by GB/T 9704-2012 standards, including titles, body, headings, footers, attachments, and contacts.
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install official-document - After installation, invoke the skill by name or use
/official-document - Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Frequently Asked Questions
What is 一键转换为中国公文标准?
Generate official government documents formatted strictly by GB/T 9704-2012 standards, including titles, body, headings, footers, attachments, and contacts. It is an AI Agent Skill for Claude Code / OpenClaw, with 1178 downloads so far.
How do I install 一键转换为中国公文标准?
Run "/install official-document" 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 zhangxue1985122219 (@zhangxue1985122219); the current version is v1.0.3.
More Skills