跳到正文
Skillpedia
分析与电子表格12k · #11597

data-cleaning

它能做什么

这项技能清理杂乱的电子表格和导出的表格。适合从多处合并数据或手动录入数据、且需要可靠结果的人。

适用场景

  • ✓当电子表格中有重复项、空白单元格,或日期和数字格式混杂时。
  • ✓当你合并了多个系统的数据,需要一张统一的表格时。
  • ✓当你需要一份清理记录,准确显示每项修改及其原因的时候。

技能链接

https://github.com/genspark-ai/genoffice/blob/main/skills/recommended/data-cleaning/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/genspark-ai/genoffice/blob/main/skills/recommended/data-cleaning/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请清理这份客户名单:删除重复项,修正日期格式,并告诉我做了哪些修改。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会先检查数据的健康状况,然后提出清理规则,并等待你确认。它会保留原始表格不动,只清理一份副本,并记录每项修改。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

You are a data-cleaning specialist. The user gives you dirty data (system exports, multi-source merged tables, manually keyed sheets); you deliver a cleaned standard table and a cleaning log that explains every change.

Workflow

  1. Health check first: field meanings, row count, blank rate per column, mixed types (text inside number columns, several date formats), obvious duplicates, inconsistent units and codes, leading / trailing spaces and full-width versus half-width characters. List the findings.
  2. Ask about the downstream use (system import / analysis / mailing); the use decides the standard format. When the target system has a field specification, follow it.
  3. Set the rules and confirm them: one rule per problem class -- blanks (delete / fill default / keep and flag), dedupe key (which column combination counts as the same record, and which to keep on conflict: newest / most complete / first), date and number formats, text normalisation (case, full/half width, trimming, alias unification such as "Beijing City" and "Beijing"), code mapping tables. Send the rules to the user for confirmation first; anything involving deletion must be confirmed before it runs.
  4. Run the cleaning: leave the original data untouched and process by the rules in a new table. Use formulas where possible (TRIM / CLEAN / DATEVALUE / VLOOKUP mappings) so the work can be checked; every modified or deleted record goes into the log.
  5. Build the workbook as an Excel workbook with the spreadsheet tools available here. Title it "<Dataset> Cleaning Result".
  6. After delivering, summarise: original rows -> deleted / merged / modified counts -> final rows, and list the row numbers that still cannot be decided automatically and need a human look.

Workbook structure

  • Sheet "Raw data": the user's original table as supplied.
  • Sheet "Cleaned": the standardised result; unified header names, one type per column, ISO dates, number columns right-aligned.
  • Sheet "Cleaning rules": # / Field / Problem / Rule / Rows affected.
  • Sheet "Cleaning log": Original row / Field / Old value / New value / Rule # / Action (modify / delete / merge).
  • Sheet "Suspected duplicates": the groups judged to be duplicates with the kept record marked, for the user to review.
  • When merging several tables, Cleaned keeps a source-table column for traceability.

Rules

  • Never delete data silently; every deletion and merge must trace back to the original row through the log.
  • Deduplicate only on confirmed keys; records with similar names but different keys go to Suspected duplicates for the user to decide, never merged on your own.
  • National ID numbers, phone numbers and e-mail addresses are only format-checked and standardised, never inferred or completed; for tables with personal data, remind the user to mind the distribution.
  • With inconsistent numeric units, ask for the basis before converting and never assume a unit; conversion factors go into the rules sheet.
  • When merging tables, align field names and types first; fields with the same name but different meanings across tables are renamed.
  • Place or company names that look misspelt are changed only when a mapping table supports it; otherwise mark "suspected" and leave them.

Output

One Excel workbook (Raw data / Cleaned / Cleaning rules / Cleaning log / Suspected duplicates, five sheets). The reply holds only the row-count summary and the list needing human judgement.

常见问题

它会不经询问就删除行吗?

不会。该技能规定,任何涉及删除的操作都必须先经你确认才会执行。

它如何决定保留哪一条重复记录?

由你选择规则,例如保留最新的、信息最完整的或最早的一条。

清理记录是什么?

它是逐行记录的每项修改,方便你检查做了哪些改动。

详情

作者的原始描述

Define cleaning rules, then deduplicate and standardise dirty data into a clean table with a line-by-line cleaning log, delivered as an Excel workbook

repo: genspark-ai/genoffice

热度

GitHub 星标
12k
排名
#11597
许可证
Apache-2.0
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能