Skip to content
Back to skills

Xlsx Validate

ASecurity

验证XLSX文件格式有效性

  • 539 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 11, 2026
datapythongobash

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned September 11, 2026

npx -y skills add cas-bigdatalab/piflow --skill xlsx_validate --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Xlsx Validate?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Xlsx Validate
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/cas-bigdatalab-xlsx-validate/badge)](https://www.skillsdirectory.com/skills/cas-bigdatalab-xlsx-validate)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: xlsx_validate
description: 验证XLSX文件格式有效性
version: 1.0.0
category: spreadsheet_processing
name_zh: 验证XLSX文件格式有效性算子
input_params:
  - name: input_path
    type: xlsx_file
    description: 输入XLSX文件路径
  - name: output_path
    type: xlsx_file
    description: 输出XLSX文件路径
output_params:
  - name: output_path
    type: json_file
    description: 验证结果JSON文件
tag: 数据校验
publisher: COMMUNITY
---

# xlsx_validate 技能

## 功能说明

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

## 核心功能

- 检查文件是否存在
- 验证是否为有效的ZIP文件
- 检查必要文件是否存在
- 输出详细的验证结果

## 使用方法

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

## 参数说明

| 参数 | 类型 | 必填 | 默认值 | 说明 |
| :--- | :--- | :--- | :--- | :--- |
| input_path | string | 是 | - | 输入XLSX文件路径 |
| output_path | string | 是 | - | 输出JSON结果文件路径 |

## 示例

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

## 输出格式

```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": []
}
```

## 注意事项

- 输出目录不存在时会自动创建
- 返回码为0表示验证通过,非0表示验证失败

Files in this skill

  • SKILL.md1.7 KB
  • scripts/run_xlsx_validate.py3.3 KB
  • skill.json949 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…