
clean-data-xls
SkillAnthropic 官方技能,把系统导出的杂乱 Excel 表格整理干净:去空格、统一大小写和日期格式、文本型数字转数值、去重,并标出混合类型列、乱码与错误值。默认用辅助列公式保留原数据,改动前先列方案、分步确认。可在 Excel 的 Claude 插件里用,处理本地 .xlsx 需 Python 环境。
name: clean-data-xls
description: Clean up messy spreadsheet data — trim whitespace, fix inconsistent casing, convert numbers-stored-as-text, standardize dates, remove duplicates, and flag mixed-type columns. Use when data is messy, inconsistent, or needs prep before analysis. Triggers on "clean this data", "clean up this sheet", "normalize this data", "fix formatting", "dedupe", "standardize this column", "this data is messy".
Clean Data
Clean messy data in the active sheet or a specified range.
Environment
- If running inside Excel (Office Add-in / Office JS): Use Office JS directly (
Excel.run(async (context) => {...})). Read viarange.values, write helper-column formulas viarange.formulas = [["=TRIM(A2)"]]. The in-place vs helper-column decision still applies. - If operating on a standalone .xlsx file: Use Python/openpyxl.
Workflow
Step 1: Scope
- If a range is given (e.g.
A1:F200), use it - Otherwise use the full used range of the active sheet
- Profile each column: detect its dominant type (text / number / date) and identify outliers
Step 2: Detect issues
| Issue | What to look for |
|---|---|
| Whitespace | leading/trailing spaces, double spaces |
| Casing | inconsistent casing in categorical columns (usa / USA / Usa) |
| Number-as-text | numeric values stored as text; stray $, ,, % in number cells |
| Dates | mixed formats in the same column (3/8/26, 2026-03-08, March 8 2026) |
| Duplicates | exact-duplicate rows and near-duplicates (case/whitespace differences) |
| Blanks | empty cells in otherwise-populated columns |
| Mixed types | a column that's 98% numbers but has 3 text entries |
| Encoding | mojibake (é, ’), non-printing characters |
| Errors | #REF!, #N/A, #VALUE!, #DIV/0! |
Step 3: Propose fixes
Show a summary table before changing anything:
| Column | Issue | Count | Proposed Fix |
|---|
Step 4: Apply
- Prefer formulas over hardcoded cleaned values — where the cleaned output can be expressed as a formula (e.g.
=TRIM(A2),=VALUE(SUBSTITUTE(B2,"$","")),=UPPER(C2),=DATEVALUE(D2)), write the formula in an adjacent helper column rather than computing the result in Python and overwriting the original. This keeps the transformation transparent and auditable. - Only overwrite in place with computed values when the user explicitly asks for it, or when no sensible formula equivalent exists (e.g. encoding/mojibake repair)
- For destructive operations (removing duplicates, filling blanks, overwriting originals), confirm with the user first
- After each category of fix (whitespace → casing → number conversion → dates → dedup), show the user a sample of what changed and get confirmation before moving to the next category
- Report a before/after summary of what changed
相关资源

XLSX
Skill创建、编辑与分析 Excel 表格:公式、格式、图表与数据清洗,也能在 csv、tsv 等表格格式间转换。驱动 Claude 文档能力的 Anthropic 官方技能,源码可见但非开源。
anthropics/skills182k
Excel MCP Server
MCP无需安装 Microsoft Excel 即可创建、读取和修改 xlsx 工作簿:支持公式、格式与条件格式、图表、透视表和表格,可本地 stdio 运行,也可作为远程 HTTP 服务。
haris-musa/excel-mcp-server4.2k
ExcelMcp
MCP在 Windows 上直接驱动本机 Excel:刷新 Power Query、做透视表和图表、计算 DAX、运行 VBA,并保留原有公式与格式,适合财务和行政在现有报表上自动整理数据。需要 Windows、Excel 2016 以上和 Node.js,不支持 macOS。
sbroenne/mcp-server-excel821
audit-xls
SkillAnthropic 官方金融技能,帮财务和分析师检查 Excel:找出 #REF! 等公式错误、写死在公式里的数字、漏行的求和范围和单位混用;检查整个模型时还核对资产负债表是否平衡、现金是否勾稽。只列问题清单和修改建议,改动前会先询问,结果需专业人员复核。
anthropics/financial-services40.1k
lark-sheets(飞书电子表格)
Skill飞书官方技能:创建和编辑飞书电子表格,写公式、做图表和透视表、设置条件格式与筛选,并能导入导出本地 Excel/CSV,适合统计汇总、预算和报表整理;需在装有 Node.js 的电脑上安装 lark-cli,并完成应用配置与飞书授权。
larksuite/cli17.7k
minimax-xlsx
SkillMiniMax 官方 Excel 技能:读取分析、新建、修改和校验 xlsx 表格,修复出错的公式。改已有文件时直接编辑底层结构,保留原有格式、公式与透视表;计算结果都写成公式,并按财务建模惯例用颜色区分输入值和公式,适合做预算表和财务模型。需要本地 Python(pandas),另装 LibreOffice 可重算公式。
MiniMax-AI/skills13.7k