公文排版工具。将Markdown格式内容转换为符合GB/T 9704-2012标准的Word文档。当用户需要制作通知、请示、报告、批复、意见等公文时触发。
Scanned 9/11/2026
Install to Claude Code
npx -y skills add lxyeternal/MalSkillBench --skill official-document-template --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Official Document Template?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/lxyeternal-official-document-template)More formats (shields.io, HTML) on the badges page.
---
name: official-document
description: 公文排版工具。将Markdown格式内容转换为符合GB/T 9704-2012标准的Word文档。当用户需要制作通知、请示、报告、批复、意见等公文时触发。
---
# 公文排版工具
将Markdown格式的公文内容转换为符合《党政机关公文格式》(GB/T 9704-2012)标准的Word文档。
## 支持的公文类型
- 通知
- 请示
- 报告
- 批复
- 意见
- 函
- 会议纪要
- 决定
## 标题层次规范
| 层级 | 格式 | 字体 | 示例 |
|------|------|------|------|
| 一级 | 一、二、三、 | 黑体,三号 | 一、加强组织领导 |
| 二级 | (一)(二)(三) | 楷体,三号加粗 | (一)明确工作目标 |
| 三级 | 1. 2. 3. | 仿宋,三号加粗 | 1.制定实施方案 |
| 四级 | (1)(2)(3) | 仿宋,三号 | (1)细化任务分工 |
| 五级 | ①②③ | 仿宋,三号 | ①落实责任主体 |
**注意**:
- 一级标题后用顿号"、"
- 二级及以下标题后不加标点
- 标题末尾不加标点符号
## 页面格式(GB/T 9704-2012)
```
纸张:A4(210mm × 297mm)
页边距:上37mm,下35mm,左28mm,右26mm
正文字号:三号(16pt)
正文字体:仿宋
行距:28磅
每页:22行 × 28字
```
## 执行脚本
```bash
python3 ~/.openclaw/workspace/official-document-template/scripts/convert_to_docx.py input.md --output output.docx
```
## 使用流程
1. 用户提供公文内容(Markdown或纯文本)
2. 识别公文类型和结构
3. 应用国标样式转换
4. 输出Word文档
## 输入示例
```markdown
# 关于加强环境保护工作的通知
××发〔2024〕10号
各单位:
一、总体要求
(一)指导思想
以XXX为指导...
二、重点任务
(一)强化污染防治
1.加强污染防治
2.推进环境治理
三、保障措施
(此件公开发布)
×××××
2024年3月19日
```
## 输出
生成的Word文档将:
- 自动识别并格式化各级标题
- 应用国标字体和字号
- 设置正确的页边距和行距
- 首行缩进两字符
## 注意事项
- 确保系统安装了仿宋、黑体、楷体字体
- 如需方正小标宋,需单独下载安装
- 生成的文档可在Word/WPS中进一步调整
## 依赖
```bash
pip install python-docx
```
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
Playbook for creating and editing uCoz landing pages via MCP tools (`templates_tool`, `ftp_tool`, `modules_tool`). Use for tasks such as: "build a landing page", "update the homepage as a landing page", "create a promo page on the homepage", "add a lead form / menu / SEO to the homepage". Homepage: `page_list`, `page_get`; first publish — `page_update` with full `page_tmpl`; HTML edits after generation — `patch_template` (module_id=2, template_id=1), not `update_template`. Activate the mail f...
Interact with the Paperclip control plane API to manage tasks, coordinate with other agents, and follow company governance. Use when you need to check assignments, update task status, delegate work, post comments, set up or manage routines (recurring scheduled tasks), or call any Paperclip API endpoint. Do NOT use for the actual domain work itself (writing code, research, etc.) — only for Paperclip coordination.
Digital Audio Workstation usage, music composition, interactive music systems, and game audio implementation for immersive soundscapes.
Instantly.ai cold email outreach API - manage campaigns, leads, accounts, and analytics. Use for cold email automation, lead management, campaign creation/monitoring, and email account warmup.
Compress natural language memory files (CLAUDE.md, todos, preferences) into caveman format to save input tokens. Preserves all technical substance, code, URLs, and structure. Compressed version overwrites the original file. Human-readable backup saved as FILE.original.md. Trigger: /caveman-compress FILEPATH or "compress memory file"