Skip to content
Back to skills

Zh

ASecurity

拿到一份新的 CSV / 表格数据时使用:先用附带脚本看行列、缺失、重复和每列取值,再决定怎么分析。

  • 824 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentspython

Security analysis

A100/100

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

Scanned December 3, 2026

npx -y skills add w01fb0ss/PiBot --skill zh --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Zh?

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

Security grade badge for Zh
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/w01fb0ss-pibot-6a73a046/badge)](https://www.skillsdirectory.com/skills/w01fb0ss-pibot-6a73a046)

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: csv-profile
description: "拿到一份新的 CSV / 表格数据时使用:先用附带脚本看行列、缺失、重复和每列取值,再决定怎么分析。"
metadata:
  pibot-name: "数据初探"
  pibot-params: "[{\"name\":\"数据文件\",\"description\":\"CSV 文件的路径;Excel 文件也可以,用 office_read 读取\"}]"
  pibot-version: "1"
---

# 数据初探

数据:{数据文件}

## 步骤
1. 确认文件在工作文件夹里。Excel(xlsx / xls)先用 `office_read` 读取,说明看的是哪个工作表;需要脚本的完整统计时再请用户另存为 CSV。
2. 运行附带脚本(只读文件,不改数据、不联网)。命令遵守本次实际权限和审批结果:
   - macOS / Linux:`python3 "<本技能目录>/scripts/profile_csv.py" "{数据文件}"`
   - Windows:`python "<本技能目录>\scripts\profile_csv.py" "{数据文件}"`
   - 分隔符不是逗号时加 `--delimiter ";"`(制表符用 `--delimiter tab`);中文乱码时加 `--encoding gb18030`。
3. 电脑上没有 Python、或用户拒绝运行时:直接读文件的前 50 行和后 20 行,手动给出同样的概况,并说明是抽样看的。
4. 根据结果写数据质量小结:
   - 缺失多的列(> 20%)、全空的列
   - 完全重复的行
   - 列数不齐的行(可能是分隔符或引号问题)
   - 类型可疑的列(数字列里混了文本、日期格式不统一)
   - 明显的异常值(负数金额、未来日期)
5. 提出下一步:要不要清洗、清洗规则是什么(写成新文件,不改原文件)、可以回答哪些问题。

## 输出
```
**数据概况**:(脚本输出的表)
**质量问题**:1. … 2. …
**对分析的影响**:…
**建议的清洗规则**:…
**可以回答的问题**:…
```

## 使用边界

优先使用已有信息;用户的数量、格式和任务范围优先于本文默认模板。工具权限、主目录/附加只读、Plan 模式与预算以当次实际能力为准;不换工具规避拒绝。这里只给工作方法,不授权写入、命令、付费、发送、提交或发布;未执行/验证的步骤如实标明。

Files in this skill

  • SKILL.md2.1 KB
  • scripts/profile_csv.py5.2 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 ai-agents →

Comments

Loading comments…

Newsletter

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