---
name: Smart Document Formatting
slug: smart-document-formatting
category: Automation
description: Smart Document Formatting extracts document paragraphs, classifies them as headings, abstracts, or body text, then applies template-based formatting with python-docx. Use it to automate consistent DOCX layout and generate a formatted output file.
github: "https://github.com/guangshu100/BidMaster-Pro/tree/main/skills/output/docx_format"
language: Python
stars: 239
forks: 66
install: "npx degit https://github.com/guangshu100/BidMaster-Pro/tree/main/skills/output/docx_format ~/.claude/skills/docx_format"
installs_to: ~/.claude/skills/docx_format
source_path: skills/output/docx_format/SKILL.md
collection_size: 4
category_size: 1754
collection_url: "https://dirskills.com/collections/guangshu100/BidMaster-Pro"
added: 2026-09-03T06:03:58.447Z
last_synced: 2026-09-03T06:03:58.447Z
canonical_url: "https://dirskills.com/skills/smart-document-formatting"
---

# Smart Document Formatting

Smart Document Formatting extracts document paragraphs, classifies them as headings, abstracts, or body text, then applies template-based formatting with python-docx. Use it to automate consistent DOCX layout and generate a formatted output file.

**Install:**

```bash
npx degit https://github.com/guangshu100/BidMaster-Pro/tree/main/skills/output/docx_format ~/.claude/skills/docx_format
```

## README

# 智能排版技能

## 工作流程
1. 提取文档段落
2. ONNX分类(标题/摘要/正文等)
3. 模板查表获取格式参数
4. python-docx应用格式
5. 输出排版后文档
