Excel parsing

From aifinlab/FinClaw · View interactive version

Excel parsing is an AI agent skill from the GitHub repository aifinlab/FinClaw. 用于Excel表解析的Excel解析原子 skill,适用于通用行业文档解析场景。

How to use this skill

Skill file

Excel解析 Skill

数据来源

本 Skill 支持多种Excel文档输入格式,核心数据来源包括:

1. Excel文档类型

2. 文档内容类型

3. 文档特征

4. 数据格式要求

说明:本 Skill 不包含文档采集功能,需要用户提供Excel文档文件。建议文档格式规范,以便进行准确的解析。


功能

本 Skill 提供全面的Excel文档解析能力,涵盖多种解析功能:

1. 工作表识别

2. 表格数据提取

3. 表格结构识别

4. 格式信息提取

5. 公式处理

6. 图表识别

7. 高级处理功能


使用示例

输出示例

{
  "document_info": {
    "filename": "financial_report.xlsx",
    "file_size": 2048000,
    "sheet_count": 3,
    "language": "zh-CN"
  },
  "sheets": [
    {
      "sheet_name": "利润表",
      "sheet_index": 0,
      "row_count": 50,
      "column_count": 5,
      "data_range": "A1:E50",
      "headers": ["项目", "2024年", "2023年", "2022年", "2021年"],
      "data": [
        {
          "row": 2,
          "values": ["营业收入", "1000", "900", "800", "700"]
        },
        {
          "row": 3,
          "values": ["营业成本", "600", "550", "500", "450"]
        }
      ],
      "merged_cells": [
        {
          "range": "A1:E1",
          "value": "利润表"
        }
      ]
    }
  ],
  "format_info": {
    "number_formats": {
      "B2:E50": "0.00"
    },
    "font_info": {
      "A1:E1": {
        "font": "宋体",
        "size": 14,
        "bold": true
      }
    }
  }
}

注意事项与限制

1. 文档格式要求

2. 解析准确性

3. 性能考虑

4. 格式兼容性

5. 使用限制


参考资料

License

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.