docx-splitting SKILL.md skillA
docx-splitting from black-yt/skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add black-yt/skills/docx-splitting@git:20260509.cdf62b1Pins git:20260509.cdf62b1 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- black-yt/skills
- Path
docx-splitting/SKILL.md- Versions recorded
- 2
- Latest version
- git:20260509.cdf62b1, committed May 9, 2026
- First version recorded
- May 9, 2026
- Size
- 1,998 bytes
- Repository stars
- 16
- License
- none declared
当需要在 Windows + Microsoft Word 环境中按页拆分 .docx 文件并尽量保留原始格式、图片、表格和分页效果时使用。.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# DOCX 按页拆分
## 使用场景
用于把一个 `.docx` 文档按页数拆分成多个较小的 `.docx` 文件,并尽量保留 Word 原始排版。
仅适用于 Windows + Microsoft Word 环境,因为脚本通过 `win32com.client` 调用 Word COM 自动化接口,分页结果依赖本机 Word 排版引擎。
## 依赖安装
前置条件:
- Windows。
- 已安装 Microsoft Word 桌面版。
- Python 与 Word 位数兼容,通常使用当前 Windows Python 即可。
```bash
pip install pywin32
```
安装后可做最小检查:
```bash
python -c "import win32com.client; print('pywin32 ok')"
```
## 脚本
优先使用 bundled script:
```text
scripts/split_docx.py
```
## 命令行用法
拆成 4 份:
```bash
python scripts/split_docx.py input.docx
```
拆成 8 份并指定输出目录:
```bash
python scripts/split_docx.py input.docx --output-dir split_output --parts 8
```
## Python 调用
```python
from scripts.split_docx import split_docx_lossless_by_pages
split_docx_lossless_by_pages(
"input.docx",
output_dir="split_output",
parts=8,
)
```
## 注意事项
- 运行前关闭正在编辑的同一个 Word 文件。
- 建议先复制原始 `.docx`,在副本上运行。
- 字体缺失、页面设置差异或 Word 版本差异可能导致分页略有不同。
- `--parts` 必须是正整数;如果总页数少于 `parts`,脚本只会生成实际需要的 part。
- 如果拆分边界落在复杂表格、图片或分页符附近,需要人工检查边界页是否缺失或重复。
## 验证
拆分后人工打开输出文件,检查:
- 每个 part 是否能正常打开。
- 页码范围是否大致符合预期。
- 表格、图片、公式和标题格式是否保留。
- 相邻 part 之间是否有明显内容缺失或重复。Read the whole file at its exact version.
How to install
mdr add black-yt/skills/docx-splitting@sha256:1fceea3dc6873a6bThe line at the top of this page pins the label git:20260509.cdf62b1, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_gthc42bmiugoafgg)
4 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 2 versions of this file, all committed on May 9, 2026.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260509.cdf62b1 latest | 2026-05-09 | cdf62b1 | 1,998 B | A | view · diff |
| git:20260509.e0ce9ca | 2026-05-09 | e0ce9ca | 1,642 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (1998 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
black-yt/skills · 16 stars · license none declared · pushed 2026-11-05 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_gthc42bmiugoafgg GET https://markdownregistry.com/api/v1/resolve?ref=black-yt/skills/docx-splitting GET https://markdownregistry.com/api/v1/blob/1fceea3dc6873a6bcfa6a9a929dc22bb65636ef4a02e986c31653ecb8d33c07a
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.