Skip to content
Back to skills

Doc Format Gw

ASecurity

公文排版工具 - 根据公文格式规范自动排版Word文档。适用于发送Word文件前进行格式调整。

  • 2 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 12, 2026
developmentpythonbashnode

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 12, 2026

npx -y skills add whyzsm/tiny-agents --skill doc-format-gw --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Doc Format Gw?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Doc Format Gw
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/whyzsm-doc-format-gw/badge)](https://www.skillsdirectory.com/skills/whyzsm-doc-format-gw)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: doc-format-gw
description: 公文排版工具 - 根据公文格式规范自动排版Word文档。适用于发送Word文件前进行格式调整。
---

# 公文排版工具

根据公文格式规范自动排版Word文档。

## 触发条件

用户要求:
- 排版Word文档
- 格式化公文
- 根据公文格式规范排版
- 发送Word前格式化

## 功能

- 自动识别标题层级(一级、二级、三级、四级)
- 设置正文格式(字体、字号、行距、对齐)
- 设置页边距
- 表格格式化
- 页码设置

## 使用方法

```bash
python3 ~/.npm-global/lib/node_modules/openclaw/skills/doc-format-gw/format_gw.py <input.docx> <output.docx>
```

或者在Python中调用:

```python
from format_gw import format_document
format_document('input.docx', 'output.docx')
```

## 格式规范

详见同目录下的 `references/format-rules.md`

## 依赖

- python3
- python-docx

Files in this skill

  • SKILL.md923 B
  • agents/openai.yaml331 B
  • format_gw.py6.8 KB
  • references/format-rules.md1.6 KB
  • source.json310 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…