Xlsx Pack
Documentsxlsx_packXlsx Pack is an Agent Skill for documents published in the cas-bigdatalab/piflow repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
将解压的XML目录重新打包为XLSX文件
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/cas-bigdatalab/piflow/blob/HEAD/workspace/skills/xlsx_pack/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/xlsx-pack, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
xlsx_pack 技能
功能说明
该技能将解压的XML目录重新打包为XLSX文件,与xlsx_unpack技能配合使用,实现XLSX文件的编辑和重建。
核心功能
- 将XML目录打包为标准XLSX文件
- 自动创建输出目录
- 支持UTF-8编码
使用方法
python scripts/run_xlsx_pack.py --input_dir <XML目录> --output_path <输出XLSX>
参数说明
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
| input_dir | string | 是 | - | 解压的XML目录路径 |
| output_path | string | 是 | - | 输出XLSX文件路径 |
示例
python scripts/run_xlsx_pack.py --input_dir ./unpacked/ --output_path modified.xlsx
注意事项
- 输入目录必须包含有效的XLSX XML结构
- 输出目录不存在时会自动创建
- 打包后的XLSX文件应能被Excel等软件正常打开