data-cleaning
它能做什么
这项技能清理杂乱的电子表格和导出的表格。适合从多处合并数据或手动录入数据、且需要可靠结果的人。
适用场景
- ✓当电子表格中有重复项、空白单元格,或日期和数字格式混杂时。
- ✓当你合并了多个系统的数据,需要一张统一的表格时。
- ✓当你需要一份清理记录,准确显示每项修改及其原因的时候。
技能链接
https://github.com/genspark-ai/genoffice/blob/main/skills/recommended/data-cleaning/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 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
- 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.
- 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.
- 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.
- 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.
- Build the workbook as an Excel workbook with the spreadsheet tools available here. Title it "<Dataset> Cleaning Result".
- 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
评论
- …
同一仓库的更多技能
genoffice
12k帮你的智能体在本地创建、转换和读取 PowerPoint、Excel、Word 和 PDF 等 Office 文件,使用 GenOffice 命令行工具完成。
brand-copy
12k帮你的智能体为一款产品撰写多个版本的宣传语、卖点和品牌故事,面向目标受众,并以 Markdown 格式提供。
budget-planner
12k帮你的智能体把商业计划或项目支出转换为预算工作簿,包含科目行、月度金额、汇总和假设表。
business-plan
12k帮你的智能体撰写一份完整的商业计划书,涵盖市场、产品、商业模式、竞争对手、财务预测和团队,并以 Word 文档形式提供。