← Back to Skills Marketplace
hunkguo

official Document Template

by hunkguo · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ✓ Security Clean
981
Downloads
0
Stars
2
Active Installs
2
Versions
Install in OpenClaw
/install official-document-template
Description
公文排版工具。将Markdown格式内容转换为符合GB/T 9704-2012标准的Word文档。当用户需要制作通知、请示、报告、批复、意见等公文时触发。
Usage Guidance
This skill appears coherent and low-risk, but before installing: (1) ensure you have python3 and install the dependency (pip install python-docx) in a virtualenv if preferred; (2) ensure the Chinese fonts referenced (仿宋, 黑体, 楷体, 方正小标宋) are available on your system or output may not match expectations; (3) note the usage expects you to run the included script on local files (it does not exfiltrate data), and template.docx referenced in docs is not included—if you rely on a reference template, provide one; (4) as a general precaution, review the script source yourself or run it in a sandbox if you have sensitive data.
Capability Analysis
Type: OpenClaw Skill Name: official-document-template Version: 1.0.1 This skill bundle is designed to convert Markdown text into Word documents compliant with the GB/T 9704-2012 standard for official Chinese documents. The core logic resides in scripts/convert_to_docx.py, which uses the python-docx library to handle document formatting, including specific margins, fonts (like FangSong and KaiTi), and line spacing. The instructions in SKILL.md and the various template files (e.g., 通知模板.md, 报告模板.md) are consistent with the stated purpose, and no malicious behaviors such as data exfiltration, unauthorized execution, or harmful prompt injections were identified.
Capability Assessment
Purpose & Capability
Name/description, templates, usage guide, and the included Python script all align: they implement Markdown→.docx conversion using python-docx and apply GB/T 9704-2012 formatting. No unrelated binaries, env vars, or services are requested.
Instruction Scope
SKILL.md gives a single concrete execution step that runs the included script on a user-supplied input.md and writes an output.docx. The script only reads the specified input file and writes the output file; it does not access network, system credentials, or other config files. Minor note: the docs mention Pandoc and a reference template.docx (in the usage guide) — template.docx is not included and Pandoc is described as an alternative, but these are optional/clarifying rather than scope-creep.
Install Mechanism
No install spec is present (instruction-only). The only dependency noted is python-docx (pip). There are no remote download URLs or archive extraction steps in the skill bundle.
Credentials
The skill requests no environment variables, secrets, or config paths. The script uses local file I/O only, so requested privileges are minimal and proportional to converting documents.
Persistence & Privilege
always is false and the skill is user-invocable. The skill does not modify other skills or system-wide settings; it operates on files in the user workspace. No elevated or persistent privileges are requested.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install official-document-template
  3. After installation, invoke the skill by name or use /official-document-template
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.1
- 更新了“description”,简化描述,去除限定。 - 调整了输入示例中的机构称谓和正文内容,使用更通用表达。 - 其余功能与格式说明保持一致,内容微调优化表述。
v1.0.0
公文排版工具 将Markdown格式内容转换为符合GB/T 9704-2012国家标准的Word文档。 功能特点 • 📄 符合国标 - 严格遵循《党政机关公文格式》(GB/T 9704-2012) • 🎯 自动识别 - 智能识别各级标题层次,自动应用对应样式 • 📝 多类型支持 - 支持通知、请示、报告、批复、意见等常见公文 • ⚡️ 一键转换 - Markdown输入,Word输出,省去繁琐排版 标题层次规范 | 层级 | 格式 | 字体 | | --- | --------- | ------ | | 一级 | 一、二、三、 | 黑体三号 | | 二级 | (一)(二)(三) | 楷体三号加粗 | | 三级 | 1. 2. 3. | 仿宋三号加粗 | | 四级 | (1)(2)(3) | 仿宋三号 | 页面格式 • 纸张:A4 • 页边距:上37mm / 下35mm / 左28mm / 右26mm • 正文:仿宋三号,行距28磅 使用方法 向Agent发送公文内容即可: 帮我排版一份通知: 关于加强环境保护工作的通知 ××发〔2024〕10号 各省、自治区、直辖市人民政府: 一、总体要求 ... Agent会自动识别并转换为标准格式Word文档。 依赖要求 pip install python-docx 作者 HunkGuo 许可证 MIT
Metadata
Slug official-document-template
Version 1.0.1
License MIT-0
All-time Installs 2
Active Installs 2
Total Versions 2
Frequently Asked Questions

What is official Document Template?

公文排版工具。将Markdown格式内容转换为符合GB/T 9704-2012标准的Word文档。当用户需要制作通知、请示、报告、批复、意见等公文时触发。 It is an AI Agent Skill for Claude Code / OpenClaw, with 981 downloads so far.

How do I install official Document Template?

Run "/install official-document-template" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is official Document Template free?

Yes, official Document Template is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does official Document Template support?

official Document Template is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created official Document Template?

It is built and maintained by hunkguo (@hunkguo); the current version is v1.0.1.

💬 Comments