Skip to content
Back to skills

Data Peek

ASecurity

对超大 CSV/TSV、多 Sheet Excel(.xlsx/.xls/.ods)、Parquet、JSONL 与 SQLite 实验数据做快速只读探查时使用。流式扫全貌(文件大小、工作表或数据表清单、行列数、字段类型、缺失率、数值分布、数据警告、随机抽样与带上限分组统计),绝不修改原始数据文件,避免全量加载卡死内存或刷爆对话上下文。

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added December 2, 2026
developmentpythonbashsql

Security analysis

A100/100

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

Scanned December 2, 2026

npx -y skills add hongtongzhou-design/ccode --skill data-peek --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Data Peek?

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

Security grade badge for Data Peek
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hongtongzhou-design-data-peek/badge)](https://www.skillsdirectory.com/skills/hongtongzhou-design-data-peek)

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: data-peek
description: 对超大 CSV/TSV、多 Sheet Excel(.xlsx/.xls/.ods)、Parquet、JSONL 与 SQLite 实验数据做快速只读探查时使用。流式扫全貌(文件大小、工作表或数据表清单、行列数、字段类型、缺失率、数值分布、数据警告、随机抽样与带上限分组统计),绝不修改原始数据文件,避免全量加载卡死内存或刷爆对话上下文。
outputs: [verify/data-peek.md]
provides: [data-peek]
---

# 超大表格与实验数据只读探查(data-peek)

在写清洗脚本、统计建模或画图前,先用随包固定脚本快速扫清数据全貌。**严格只读,绝不原地修改任何数据文件**。

## 一、优先调用随包固定脚本(不要手写全量读取脚本)

命令里优先使用 `$MESA_PYTHON`(Windows 用 `%MESA_PYTHON%`);脚本自带扫描行数与输出上限,大文件不会卡死内存:

1. **看全貌(结构、类型、缺失率、数值分布、数据警告与前 5 行)**:
   ```bash
   "$MESA_PYTHON" "<技能目录>/scripts/data_peek.py" profile --input "<数据路径>" --max-scan 50000
   ```
   - 多工作表 Excel 或多表 SQLite 可加 `--sheet "<表名>"` 切换探查目标。
2. **随机水塘抽样(避免只看前几行产生偏见)**:
   ```bash
   "$MESA_PYTHON" "<技能目录>/scripts/data_peek.py" sample --input "<数据路径>" --mode random --rows 10
   ```
   - 宽表可加 `--cols "colA,colB,colC"` 只看关键列。
3. **带上限只读分组统计(快速核对实验组样本量与均值范围)**:
   ```bash
   "$MESA_PYTHON" "<技能目录>/scripts/data_peek.py" groupby --input "<数据路径>" --by "<分组列>" --metric "<数值列>" --top 20
   ```

## 二、探查结果解读规范

1. **先报规模与扫描边界**:写清文件格式、体积、工作表/数据表列表、总行数/本次扫描行数(若仅扫了前段要明说,不把抽样当全量结论)。
2. **优先亮出数据警告**:把高缺失列(≥ 20%)、数值文本混排(常见于带单位/检测限符号 `<0.01`)、常量列、重复列名与编码问题摆在最前面提醒。
3. **不凭列名猜单位与含义**:遇到缩写字段或缺失码(如 `-999`、`ND`)标明待确认;发现问题只提清洗或分析建议,除非用户明确要求否则不改源数据、不自动填补缺失值。

Files in this skill

  • SKILL.md2.3 KB
  • scripts/data_peek.py24.8 KB

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.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.