Docx unpack

From cas-bigdatalab/piflow · View interactive version

Docx unpack is an AI agent skill from the GitHub repository cas-bigdatalab/piflow. 将DOCX文件解压为XML目录

How to use this skill

Skill file

docx_unpack 技能

功能说明

该技能将DOCX文件解压为XML目录结构,方便查看和编辑DOCX内部的XML文件。DOCX本质上是一个ZIP压缩包,包含多个XML文件和资源文件。

核心功能

使用方法

python scripts/run_docx_unpack.py --input_path <输入DOCX> --output_dir <输出目录> [--merge_runs]

参数说明

| 参数 | 类型 | 必填 | 默认值 | 说明 |

| :--- | :--- | :--- | :--- | :--- |

| input_path | string | 是 | - | 输入DOCX文件路径 |

| output_dir | string | 是 | - | 输出目录路径 |

| merge_runs | bool | 否 | true | 是否合并相邻的文本运行 |

示例

python scripts/run_docx_unpack.py --input_path document.docx --output_dir ./unpacked/

输出结构

解压后的目录结构:

output_dir/
├── [Content_Types].xml
├── _rels/
│   └── .rels
└── word/
    ├── document.xml
    ├── styles.xml
    ├── settings.xml
    └── ...

注意事项

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.