Tooluck logoTooluck
SKILL.md

sn-da-large-file-analysis

Agent skill fromOpenSenseNova/SenseNova-Skills

万行以上 Excel 数据集的高性能分析引擎。提供 openpyxl read_only 流式读取(iter_rows 支持 10 万行以上)、Parquet 转换加速、内存优化、分块处理和大文件写入模式。**遇到以下任一情况就主动使用本 skill**:①数据行数 ≥ 10k(由 sn-da-excel-workflow 的行数评估步骤触发);②用户出现触发词:大文件 / 大数据量 / 性能优化 / 内存不足 / OOM / 百万行 / 十万行 / 流式读取 / Parquet / 分块处理 / large file / big data / streaming read / chunked processing;③直接使用 pd.read_excel() 导致超时或内存溢出;④用户明确要求对大规模数据集进行高性能处理。仅不用于:小于 10k 行的常规 Excel 分析(使用 sn-da-excel-workflow 即可)。

How to install sn-da-large-file-analysis

install sn-da-large-file-analysis
# 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-large-file-analysis/

# into

~/.claude/skills/sn-da-large-file-analysis/ (all projects)

.claude/skills/sn-da-large-file-analysis/ (one project)

skills/sn-da-large-file-analysis/SKILL.md

MITFull file
1# Large Scale Excel Analysis Skill
2
3## Mandatory Rules
4
5> **When total rows >= 10,000, you MUST use the methods in this skill.**
6
7| Data Scale | Read Strategy | Reason |
8|-----------|---------------|--------|
9| < 10k rows | `pd.read_excel()` directly | No memory pressure |
10| 10k–100k rows | `pd.read_excel()` → convert to Parquet → `pd.read_parquet()` for analysis | Avoid repeated slow reads |
11| 100k–1M rows | **openpyxl `read_only` + `iter_rows` streaming** → Parquet | `pd.read_excel()` will OOM or timeout |
12| > 1M rows | Streaming read + **multi-sheet split** (Excel max 1,048,576 rows per sheet) | Must chunk |
13
14**Prohibited:**
15- Do NOT use `pd.read_excel()` to fully load 100k+ row files
16- Do NOT search for fonts with `fc-list`, `find ... fonts`, or install packages with `pip install`
17- Do NOT use `df.iterrows()` on large DataFrames (use `itertuples()` or vectorized ops)
18- Do NOT use `df.apply(lambda...)` for operations that can be vectorized
19
20---
21
22## Environment Setup
23
24```python
25import pandas as pd
26import numpy as np
27import os
28import gc
29
30pd.options.mode.copy_on_write = True
31
32# CJK font setup (fixed paths — do NOT search for fonts)
33# ⚠️ Copy this block as-is. Do NOT use fc-list, find, subprocess, or glob to locate fonts.
34import matplotlib
35import matplotlib.pyplot as plt
36import matplotlib.font_manager as fm
37
38_FONT_PATHS = [
39 '/mnt/afs_agents/SimHei.ttf',
40 '/mnt/afs_agents/mnt/data/SimHei.ttf',
41 os.path.expanduser('~/.fonts/SimHei.ttf'),
42…

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