agentsclimarketplace

Dataset health audit

Skill serejaris/kimi-skills/skills/dataset-health-audit

执行数据质量检查,对CSV/Excel/TSV/JSON等表格数据进行12个维度的全面审计,输出质量评分、问题详情和修复建议。当用户需要进行数据质量检测、查看缺失值、重复行、异常值、格式问题、类型混淆,或提及数据质量、质检、数据清洗前检查、异常值检测、格式校验、空值、数据健康度、质量评分等关键词时触发。From its SKILL.md

Install
npx -y skills add serejaris/kimi-skills --skill dataset-health-audit

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • 22 days oldThe repository was created 22 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
  • 5 stars5 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its file declares

Copied from the file, not written here

The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

3.6 KB, ~1.1k tokens by cl100k_base, as published. Nobody here has run it

data-quality-checker

数据质检工具 —— 对表格数据执行 12 个维度的质量检测,输出每项评分(0-100)、总分和具体修复建议。

能力概览

维度说明
缺失值检测每列的空值/NaN 数量与比例
重复行检测完全重复的行数与比例
数据类型一致性同列中混杂不同类型(如数字列混入文字)
数值范围/异常值基于 IQR 方法检测离群值
格式合规性日期、邮箱、手机号等字段的格式一致性
唯一性约束ID 类字段是否存在重复
空白字符串前后空格、空字符串、仅空白字符
常量列仅含单一值的列(信息量为零)
数据分布偏斜数值列的偏度是否过大
列名规范性列名是否含空格、特殊字符、大小写不一致
基数异常唯一值数量异常(过高或过低)
跨列一致性日期先后、数值大小等跨列逻辑校验

Quick Start

# 基本质检
python3 scripts/data_quality_checker.py data.csv

# 保存报告到 JSON
python3 scripts/data_quality_checker.py data.csv --output report.json

# 指定 ID 列(用于唯一性检查)
python3 scripts/data_quality_checker.py users.csv --id-columns "user_id,email"

# 指定日期列(用于格式检查)
python3 scripts/data_quality_checker.py orders.csv --date-columns "created_at,updated_at"

详细用法

基本调用

python3 scripts/data_quality_checker.py <数据文件> [选项]

参数说明

参数缩写必填默认值说明
input输入文件路径(CSV/TSV/Excel/JSON)
--output-o标准输出输出 JSON 报告路径
--id-columns-id自动检测应唯一的列名,逗号分隔
--date-columns-dc自动检测日期类型的列名,逗号分隔
--sample-s全量采样行数(大文件时使用)
--encoding-eutf-8文件编码

输出结构(JSON)

{
  "file": "data.csv",
  "rows": 10000,
  "columns": 15,
  "overall_score": 78.5,
  "grade": "B",
  "dimensions": {
    "missing_values": {
      "score": 85.0,
      "issues": [
        {"column": "age", "missing_count": 150, "missing_pct": 1.5, "suggestion": "用中位数或众数填充"}
      ]
    },
    "duplicates": {
      "score": 95.0,
      "issues": [...]
    }
  },
  "top_suggestions": [
    "列 age 有 1.5% 缺失值,建议用中位数填充",
    "发现 200 行完全重复,建议去重"
  ]
}

评分标准

等级分数范围含义
A+95-100数据质量优秀,可直接使用
A90-95质量良好,少量小问题
B80-90质量中等,建议修复后使用
C60-80质量较差,需重点清洗
D40-60质量很差,大量问题需修复
F0-40数据基本不可用,需重新采集或大规模清洗

依赖

  • Python 3.8+
  • pandas
  • numpy
pip install pandas numpy

What ships with it: 2 files

25.6 KB alongside SKILL.md, 1 of them executable

scripts/

Keep looking

Skills are one crate of 326,871. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.