Xlsx validate

From cas-bigdatalab/piflow · View interactive version

Xlsx validate is an AI agent skill from the GitHub repository cas-bigdatalab/piflow. 验证XLSX文件格式有效性

How to use this skill

Skill file

xlsx_validate 技能

功能说明

该技能验证XLSX文件格式的有效性,检查文件是否为有效的ZIP压缩包,以及是否包含XLSX所需的必要文件。

核心功能

使用方法

python scripts/run_xlsx_validate.py --input_path <输入XLSX> --output_path <输出JSON>

参数说明

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

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

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

| output_path | string | 是 | - | 输出JSON结果文件路径 |

示例

python scripts/run_xlsx_validate.py --input_path data.xlsx --output_path result.json

输出格式

{
  "valid": true,
  "file_exists": true,
  "is_zip": true,
  "has_required_files": true,
  "required_files": [
    "[Content_Types].xml",
    "_rels/.rels",
    "xl/workbook.xml",
    "xl/worksheets/sheet1.xml"
  ],
  "missing_files": [],
  "file_size": 102400,
  "total_files": 15,
  "errors": [],
  "warnings": []
}

注意事项

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.