Tooluck logoTooluck
SKILL.md

sn-da-excel-workflow

Agent skill fromOpenSenseNova/SenseNova-Skills

Excel 数据分析多步编排器。覆盖:(1) 读取多 Sheet Excel 文件并统计行数,(2) 大文件检测(≥10k 行自动 Parquet 优化),(3) 数据清洗(缺失值、文本标准化、无效字符),(4) 条件筛选与分类提取,(5) 跨 Sheet 统计聚合,(6) 导出 Excel/CSV 并提供下载链接。覆盖从数据读取到报告生成全流程,按步骤编排 capability 子 skill。**遇到以下任一情况就主动使用本 skill,不要自行写几行 pandas 就回答**:①用户出现触发词:Excel 分析 / 表格分析 / 数据分析 / 数据清洗 / 数据统计 / 数据筛选 / 数据可视化 / 数据导出 / 汇总统计 / 透视表 / 分组统计 / 交叉分析 / 趋势分析 / 对比分析 / 异常值检测 / 去重 / 缺失值处理 / Excel 报告 / 生成报表 / analyze Excel / data analysis / data cleaning / pivot table;②用户上传或指定了 .xlsx / .xls / .csv 文件并要求分析、清洗、统计或可视化;③任务涉及多 Sheet 读取、条件筛选、分类汇总、图表生成中的任意一项;④用户要求导出带格式的 Excel 报告或下载链接。仅不用于:不涉及表格数据的纯文本处理、图片分析(使用 sn-da-image-caption)、单个公式计算的简单问答。

How to install sn-da-excel-workflow

install sn-da-excel-workflow
# install the SenseNova-Skills pack with the skills CLI
npx skills add OpenSenseNova/SenseNova-Skills

# or add only this skill to Claude Code: copy the folder

skills/sn-da-excel-workflow/

# into

~/.claude/skills/sn-da-excel-workflow/ (all projects)

.claude/skills/sn-da-excel-workflow/ (one project)

skills/sn-da-excel-workflow/SKILL.md

MITFull file
1# Excel Data Analysis Workflow
2
3End-to-end workflow for structured Excel analysis. Each step maps to a
4capability sub-skill that can be loaded for detailed patterns.
5
6## Workflow
7
8### Step 1 — Count rows across all sheets (lightweight, no full load)
9
10Count rows per sheet **without loading data into memory**. Use openpyxl
11`read_only` mode — this works for any file size.
12
13```python
14import openpyxl, gc
15
16wb = openpyxl.load_workbook(file_path, read_only=True, data_only=True)
17total_rows = 0
18sheet_info = {}
19for name in wb.sheetnames:
20 ws = wb[name]
21 row_count = sum(1 for _ in ws.iter_rows(min_row=2, values_only=True))
22 total_rows += row_count
23 sheet_info[name] = row_count
24 print(f"Sheet '{name}': {row_count} rows")
25wb.close()
26print(f"总行数={total_rows}")
27```
28
29⚠️ **Do NOT use `pd.read_excel()` to count rows** — it loads all data into
30memory, which will OOM on large files.
31
32→ capability: `excel-reading/multi-sheet-reading`
33
34### Step 2 — Large file gate (CRITICAL — choose strategy by row count)
35
36| total_rows | Strategy | What to do |
37|-----------|----------|------------|
38| < 10k | Direct read | `df = pd.read_excel(file_path, sheet_name=target_sheet)` |
39| 10k – 100k | Parquet cache | `pd.read_excel()` once → `df.to_parquet()` → all later reads from Parquet |
40| **>= 100k** | **STOP. Load `sn-da-large-file-analysis` skill** | Read its SKILL.md, then follow its streaming read + Parquet pattern. **Do NOT use `pd.read_excel()` at all** — it will OOM or timeout on 100k+ rows. |
41…

Excerpt shown under the repository's MIT license.

More skills in SenseNova-Skills

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates