Token导航 LogoToken导航

Agent Skill · 前端设计

excel-parser(Excel 解析器)

用于辅助数据整理、表格处理、CSV/Excel 分析、指标计算和图表准备。它适合让 Agent 清洗字段、汇总数据、发现异常、生成统计口径或把分析结果转成可读说明。使用时需要确认数据来源、字段含义和时间范围,避免把样本数据当全量事实;涉及敏感数据、导出文件或批量写回时,应先确认权限和脱敏边界。

excel-parser 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在前端设计类的 10,216 个 Skill 里排第 8,138。

总安装 312周安装 13GitHub Stars 96下载 104核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:excel-parser(Excel 解析器)
来源仓库:https://github.com/harryoung/efka
仓库路径:skills/excel-parser
安装命令:
npx skills add https://github.com/harryoung/efka --skill excel-parser
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/harryoung/efka --skill excel-parser

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

用于辅助数据整理、表格处理和指标计算。excel-parser 属于前端设计类 Skill,可作为该场景下的辅助能力补充。适合清洗字段、汇总数据或生成统计口径说明。使用时需确认数据来源和时间范围,避免误判全量事实。涉及敏感数据时应先确认脱敏方式和操作权限。建议结合原始 README 核验具体输入格式和限制。

来源仓库内路径:skills/excel-parser

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/harryoung/efka --skill excel-parser;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

excel-parser 怎么安装?

在终端执行 npx skills add https://github.com/harryoung/efka --skill excel-parser。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

excel-parser 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

excel-parser 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

excel-parser 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

excel-parser 用的人多吗?

公开数据是累计安装 312 次,近一周安装 13 次,下载 104 次,GitHub 96 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

excel-parser 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
excel-parser

Excel 解析器 · 本页

31296需要联网未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Excel Parser

Table of Contents

Overview

Provide intelligent routing strategies for parsing Excel/CSV files by analyzing complexity and choosing the optimal processing path. The skill implements a "Scout Pattern" that scans file metadata before processing to balance speed (Pandas) with accuracy (semantic extraction).

Core Philosophy: Scout Pattern

Before processing data, deploy a lightweight "scout" to analyze file metadata and make intelligent routing decisions:

  1. Metadata Scanning - Use openpyxl to scan file structure without loading data
  2. Complexity Scoring - Calculate score based on merged cells, row count, and layout
  3. Path Selection - Choose between Pandas (fast) or HTML (accurate) processing
  4. Optimized Execution - Execute with the most appropriate tool for the file type

Key Principle: "LLM handles metadata decisions, Pandas/HTML processes bulk data"

When to Use This Skill

Use excel-parser when:

  • Processing Excel/CSV files with unknown structure or varying complexity
  • Handling files ranging from simple data tables to complex financial reports
  • Need to optimize between processing speed and extraction accuracy
  • Working with files that may contain merged cells, multi-level headers, or irregular layouts

Skip this skill when:

  • File structure is already known and documented
  • Processing simple, well-structured tables with confirmed format
  • Using predefined scripts for specific file formats

Processing Workflow

Step 1: Analyze File Complexity

Use the scripts/complexity_analyzer.py to scan file metadata:

python scripts/complexity_analyzer.py <file_path> [sheet_name]

What it analyzes (without loading data):

  • Merged cell distribution (shallow vs deep in the table)
  • Row count and data continuity
  • Empty row interruptions (indicates multi-table layouts)

Output (JSON format):

{
  "is_complex": false,
  "recommended_strategy": "pandas",
  "reasons": ["No deep merges detected", "Row count exceeds 1000, forcing Pandas mode"],
  "stats": {
    "total_rows": 5000,
    "deep_merges": 0,
    "empty_interruptions": 0
  }
}

Step 2: Route to Optimal Strategy

Based on complexity analysis:

  • is_complex = false → Use Path A (Pandas Standard Mode)
  • is_complex = true → Use Path B (HTML Semantic Mode)

Step 3: Execute Processing

Follow the selected path's workflow to extract data.

Complexity Scoring Rules

Rule 1: Deep Merged Cells

  • Condition: Merged cells appearing beyond row 5
  • Interpretation: Complex table structure (not just header formatting)
  • Decision: Mark as complex if >2 deep merges detected
  • Example: Financial reports with merged category labels in data region

Rule 2: Empty Row Interruptions

  • Condition: Multiple empty rows within the table
  • Interpretation: Multiple sub-tables in single sheet
  • Decision: Mark as complex if >2 empty row interruptions found
  • Example: Summary table + detail table in one sheet

Rule 3: Row Count Override

  • Condition: Total rows >1000
  • Interpretation: Too large for HTML processing (token explosion)
  • Decision: Force Pandas mode regardless of complexity
  • Rationale: HTML conversion would exceed token limits

Rule 4: Default (Standard Table)

  • Condition: No deep merges, continuous data, moderate size
  • Interpretation: Standard data table
  • Decision: Use Pandas for optimal speed

Path A: Pandas Standard Mode

When: Simple/large tables (most common case)

Strategy: Agent analyzes ONLY the first 20 rows to determine header position, then use Pandas to read full data at native speed.

Workflow:

  1. Sample First 20 Rows

- Read only the first 20 rows using pd.read_excel(..., nrows=20) - Convert to CSV format for analysis

  1. Determine Header Position

- Examine the sampled rows to identify which row contains the actual column headers - Common patterns: Row 0 (standard), Row 1-2 (if title rows exist), Row with distinct column names

  1. Read Full Data

- Use pd.read_excel(..., header=<detected_row>) to load complete data - The header parameter ensures proper column naming

Token Cost: ~500 tokens (only 20 rows analyzed) Processing Speed: Very fast (Pandas native speed)

For implementation details, see references/smart_excel_router.py

Path B: HTML Semantic Mode

When: Complex/irregular tables (merged cells, multi-level headers)

Strategy: Convert to semantic HTML preserving structure (rowspan/colspan), then extract data understanding the visual layout.

Workflow:

  1. Convert to Semantic HTML

- Load workbook with openpyxl - Build HTML table preserving merged cell spans - Use rowspan and colspan attributes to maintain structure

  1. Extract Structured Data

- Analyze HTML table structure - Identify hierarchical headers from merged cells - Extract data preserving semantic relationships

Token Cost: Higher (full HTML structure analyzed) Processing Speed: Slower (semantic extraction) Use Case: Only for small (<1000 rows), complex files where Pandas would fail

For implementation details, see references/smart_excel_router.py

Best Practices

1. Trust the Scout

Always run complexity analysis before processing. The metadata scan is fast (<1 second) and prevents wasted effort on wrong approach.

2. Respect the Row Count Rule

Never attempt HTML mode on files >1000 rows. Token limits will cause failures.

3. Pandas First for Unknown Files

When in doubt, try Pandas mode first. It fails fast and clearly when structure is incompatible.

4. Cache Analysis Results

If processing multiple sheets from same file, run analysis once and cache results.

5. Preserve Original Files

Never modify the original Excel file during analysis or processing.

Troubleshooting

File Cannot Be Opened

  • Symptom: FileNotFoundError or permission errors
  • Causes: Invalid path, file locked by another process, insufficient permissions
  • Solutions:

- Verify file path is correct and file exists - Close the file if open in Excel or another application - Check read permissions on the file

Corrupted File Errors

  • Symptom: BadZipFile or InvalidFileException
  • Causes: Incomplete download, file corruption, wrong file extension
  • Solutions:

- Re-download or obtain fresh copy of the file - Verify file is actual Excel format (not CSV with.xlsx extension) - Try opening in Excel to confirm file integrity

Memory Issues with Large Files

  • Symptom: MemoryError or system slowdown
  • Causes: File too large for available RAM
  • Solutions:

- Use read_only=True mode in openpyxl - Process file in chunks using Pandas chunksize parameter - Increase system memory or use machine with more RAM

Encoding Problems

  • Symptom: Garbled text or UnicodeDecodeError
  • Causes: Non-UTF8 encoding in source data
  • Solutions:

- Specify encoding when reading CSV: pd.read_csv(..., encoding='gbk') - For Excel, data is usually UTF-8; check source data generation

HTML Mode Token Overflow

  • Symptom: Truncated output or API errors
  • Causes: Complex file exceeds token limits despite row count check
  • Solutions:

- Force Pandas mode even for complex files - Split sheet into smaller ranges and process separately - Extract only essential columns before HTML conversion

Incorrect Header Detection

  • Symptom: Wrong columns or data shifted
  • Causes: Unusual header patterns not caught by sampling
  • Solutions:

- Manually specify header row if known - Increase sample size beyond 20 rows - Use HTML mode for better structure understanding

Dependencies

Required Python packages:

  • openpyxl - Metadata scanning and Excel file manipulation
  • pandas - High-speed data reading and manipulation

Resources

This skill includes:

  • scripts/complexity_analyzer.py - Standalone executable for complexity analysis
  • references/smart_excel_router.py - Complete implementation reference with both processing paths

平台分布

Codex

38.26%
按下载量换算40

Claude

31.98%
按下载量换算33

Cursor

17.21%
按下载量换算18

Gemini CLI

9.55%
按下载量换算10

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills