Docx pack

From cas-bigdatalab/piflow · View interactive version

Docx pack is an AI agent skill from the GitHub repository cas-bigdatalab/piflow. 将解压的XML目录重新打包为DOCX文件

How to use this skill

Skill file

docx_pack 技能

功能说明

该技能将解压的XML目录重新打包为DOCX文件,与docx_unpack技能配合使用,实现DOCX文件的编辑和重建。

核心功能

使用方法

python scripts/run_docx_pack.py --input_dir <XML目录> --output_path <输出DOCX> [--validate]

参数说明

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

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

| input_dir | string | 是 | - | 解压的XML目录路径 |

| output_path | string | 是 | - | 输出DOCX文件路径 |

| original | string | 否 | - | 原始DOCX文件路径(用于参考) |

| validate | bool | 否 | true | 是否启用自动修复 |

示例

python scripts/run_docx_pack.py --input_dir ./unpacked/ --output_path modified.docx

自动修复功能

当启用validate时,会自动修复以下问题:

注意事项

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.