Install
openclaw skills install docx-formatter生成符合中国公文格式规范的Word文档,支持标题、正文样式、自动格式排版和中文引号配对。
openclaw skills install docx-formatter公文格式规范生成器
严格按照中国公文格式规范生成 Word 文档。
当用户请求以下任务时,自动使用此 skill:
关键词识别:
首次使用前,运行一次安装脚本:
cd ~/.openclaw/workspace/skills/docx-formatter
./install.sh
或者直接使用,脚本会自动检测并安装依赖。
推荐用法(从 Markdown 转换):
# 基本用法
./docx-formatter --from-markdown input.md --output output.docx
# 带署名
./docx-formatter --from-markdown input.md --output output.docx --author "长春市农业农村局\n2026年2月2日"
高级用法(JSON 输入):
./docx-formatter --title "文档标题" --author "作者" --content content.json --output output.docx
Markdown 格式规范:
# 文档标题(自动识别为大标题)
## 一、一级标题(黑体 3号)
### (一)二级标题(楷体 3号)
正文段落(仿宋 3号)
**1. ** 带加粗前缀的段落(前缀加粗)
见 examples/ 目录。