← 返回 Skills 市场
hunkguo

official Document Template

作者 hunkguo · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ✓ 安全检测通过
981
总下载
0
收藏
2
当前安装
2
版本数
在 OpenClaw 中安装
/install official-document-template
功能描述
公文排版工具。将Markdown格式内容转换为符合GB/T 9704-2012标准的Word文档。当用户需要制作通知、请示、报告、批复、意见等公文时触发。
安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install official-document-template
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /official-document-template 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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
元数据
Slug official-document-template
版本 1.0.1
许可证 MIT-0
累计安装 2
当前安装数 2
历史版本数 2
常见问题

official Document Template 是什么?

公文排版工具。将Markdown格式内容转换为符合GB/T 9704-2012标准的Word文档。当用户需要制作通知、请示、报告、批复、意见等公文时触发。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 981 次。

如何安装 official Document Template?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install official-document-template」即可一键安装,无需额外配置。

official Document Template 是免费的吗?

是的,official Document Template 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

official Document Template 支持哪些平台?

official Document Template 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 official Document Template?

由 hunkguo(@hunkguo)开发并维护,当前版本 v1.0.1。

💬 留言讨论