data-cleaning-guide

data-cleaning-guide is a skill for Claude Code, Codex from Morningstar202604/awesome-skillkit. It costs 81 tokens per session (1,027 once invoked), scanned A, original, Apache-2.0.

A practical guide to turning messy source data into consistent, traceable tables. It covers missing and duplicate values, unusual values, standard formats, and a repeatable raw-to-clean workflow.

In plain words
What is it for?
Use it to inspect data quality, remove duplicates, handle missing values, flag unusual records, standardize fields, and produce before-and-after quality reports.
Why use it?
It reduces errors caused by silently changing data, inconsistent labels or units, and undocumented manual edits. It also makes cleaning decisions reviewable and repeatable.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to inspect data quality, remove duplicates, handle missing values, flag unusual records, standardize fields, and produce before-and-after quality reports.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/morningstar202604/awesome-skillkit/data-cleaning-guide
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Morningstar202604/awesome-skillkit --skill data-cleaning-guide
Clone the repo
git clone --depth 1 https://github.com/Morningstar202604/awesome-skillkit

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for data-cleaning-guide

README.md
[![agentmods](https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/data-cleaning-guide/github.svg)](https://agentmods.dev/skills/morningstar202604/awesome-skillkit/data-cleaning-guide)
Your own site
<a href="https://agentmods.dev/skills/morningstar202604/awesome-skillkit/data-cleaning-guide"><img src="https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/data-cleaning-guide/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for data-cleaning-guide

Your own site · 80×15
<a href="https://agentmods.dev/skills/morningstar202604/awesome-skillkit/data-cleaning-guide"><img src="https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/data-cleaning-guide.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,027 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00081 $0.01027
Opus 5.5 $0.00032 $0.00411
Sonnet 5.5 $0.00016 $0.00205
Haiku 4.5 $0.00008 $0.00103

Measured 2mo ago against content hash 05592efa67a0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

data-cleaning-guide scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

expert-teams/teams/data-analysis-team/skills/data-cleaning-guide/SKILL.md · 52 lines

What it actually says

数据清洗操作指南

本 skill 是数据清洗的工作手册。核心原则:先备份再清洗,可追溯、可复跑,每一步都留痕。 清洗不是"把脏的变好看",而是把不可信的原始数据变成口径一致、可复算的分析底表。

这是什么

一套分层清洗流程。原始数据进 raw 层只读不动,所有清洗动作在 staging 层记录规则,产出 clean 层分析底表。清洗规则沉淀为可复跑脚本,不手工改数。

何时使用

  • data-cleaning-engineer 接到"数据脏/口径对不上"任务时必须加载。
  • data-python-engineer 用 pandas 批量处理前,按本指南定清洗规则。
  • data-governance 制定数据质量规则时,参考本指南的检查项。
  • data-qa-reviewer 复核清洗逻辑时,按本指南判断是否漏处理。

核心步骤

  1. 摸底:跑 describe()/info(),记录行数、字段类型、缺失率、唯一值数;缺失率 >60% 的字段单独标注,不盲目删列。
  2. 去重:按业务主键去重(如 order_id+用户),保留最新一条;记录删除行数,不直接 drop 不留痕。
  3. 缺失值处理:数值型按中位数/均值填充并标注;类别型填充"未知";时间戳缺失直接剔除该行;不允许静默填 0 当真实值。
  4. 异常值判定:数值型用 IQR(Q1-1.5×IQR ~ Q3+1.5×IQR)或 3σ 标记,业务量纲超 3σ 的先查是不是埋点错误,再决定剔除或截断。
  5. 标准化:枚举值统一大小写与别名(如"广东/Guangdong/粤"归一);金额统一分/元;时间统一 UTC+8;手机号/邮箱正则校验。
  6. 产出质量报告:清洗前后行数、各步删除/填充条数、字段缺失率对照表、剩余风险字段。

清单

  • 原始数据已备份/只读,未在 raw 层直接修改。
  • 记录了总行数与各字段缺失率、唯一值数。
  • 去重按业务主键执行,删除条数已记录。
  • 缺失值按字段类型分别处理,没有静默填 0。
  • 异常值用 IQR/3σ 标记并标注是否为埋点错误。
  • 枚举、单位、时间、币种已统一。
  • 清洗规则可复跑(脚本/规则文档),不是手改。
  • 输出了清洗前后对照与剩余风险字段。
  • 关键异常样本抽 5 条人工核对过。

易错点

  • 静默填 0:金额缺失填 0 会让 GMV 被低估,且统计上看不出。缺失就是缺失,单独成一类。
  • 盲目删行:缺失率高的行整行删掉,可能把一个用户群删没了。先看缺失是不是系统性的。
  • 异常值一律剔除:3σ 之外可能是大客/爆款,直接删会低估头部。先查业务含义再决定。
  • 别名不统一:"已完成/完成/done"算三个状态,漏斗就错了。枚举必须归一。
  • 清洗不留痕:手工 Excel 改完无法复跑,下次同样问题再来一遍。规则必须脚本化。
  • 时间时区不统一:UTC 与北京时间混用,按天聚合就会错位 8 小时。
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 52 lines · 81 tokens per session scan A 05592efa67a0

Subscribe to this mod's changes

data-cleaning-guide is a skill published in the GitHub repository Morningstar202604/awesome-skillkit (0 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 81 tokens to every session and 1,027 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-27.

Related

data-cleaning-guide compared with skills from other repositories

data-cleaning-guide next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
data-cleaning-guideMorningstar202604/awesome-skillkitSkill02mo agoApache-2.0A81Claude Code, Codex
safe-refactorJuliusBrussee/cavemanSkill124ktodayApache-2.0A29Claude Code, Codex
mem0-oss-to-platformmem0ai/mem0Skill70k3d agoApache-2.0A217Claude Code, Codex
auditing-subgroup-fairnessmaziyarpanahi/openmedSkill5.9kyesterdayApache-2.0A148Claude Code
memoryopensquilla/opensquillaSkill7.2k4d agoApache-2.0A44Claude Code, Codex
infographic-template-updaterantvis/InfographicSkill7.2k1mo agoMITA43Claude Code
pulse-configureSnowflake-Labs/cocoplusSkill72923d agoMITA12Claude Code, Codex