Skip to content
Back to skills

Spreadsheet Analysis

ASecurity

清洗、合并、核对并分析 Excel、CSV 和 TSV 数据

  • 52 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 2, 2026
ai-agentspython

Works with

  • mcp

Security analysis

A100/100

Scanned November 9, 2026

npx -y skills add wangzhe04/ruyi-workbench-oss --skill spreadsheet-analysis --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Spreadsheet Analysis?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Spreadsheet Analysis
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/wangzhe04-spreadsheet-analysis/badge)](https://www.skillsdirectory.com/skills/wangzhe04-spreadsheet-analysis)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: 表格分析
description: 清洗、合并、核对并分析 Excel、CSV 和 TSV 数据
---

# 表格分析

适用于 Excel、CSV、TSV 的清洗、合并、核对、汇总和基础图表。默认保持源文件不变,并让每个结果可追溯。

## 工具

- CSV/TSV/JSON/JSONL:先用 `data_profile` 看行列数、类型、空值和异常值。它只读文本数据,xlsx 会被拒;默认只统计前 2000 行(`maxRows` 可调到 50000),超出时 `sampled: true`,真实总行数看 `totalRowCount`;文件过大被截断时看 `truncatedInput`。
- .xlsx/.xlsm:`file_read` 会拒读,用桌面控制 MCP 的 `excel_read`(工具清单里没直接看到时先用 `tool_search` 找,自适应装载下它可能要经 `tool_invoke_read` 调用)。它不支持老 .xls(请用户另存为 .xlsx)和 CSV;默认最多回 200 行,用 `max_rows` 调大,`truncated` 给出真实总行数;不传 `sheet` 时读活动表并在 `sheets` 列出全部工作表,再用 `sheet` 逐张读;`include_formulas: true` 才回读公式。
- 更重的合并、清洗、复算用 `script_run`(Python)。脚本里同时出现 openpyxl 等 Office 库和 .xlsx 路径会被拦下(只读也一样):优先处理 CSV 或 `excel_read` 读出的数据;输出 xlsx 用 `write_excel`;确需脚本直接读写 xlsx 时按提示加 `force: true`,并告诉用户该产出不可自动撤销。

## 工作流程

1. 清点文件与工作表,识别表头行、数据范围、公式、合并单元格和隐藏列;先报告明显异常。
2. 建立字段字典:列名、含义、类型、空值率、示例值和可能的主键。不要仅凭外观猜类型。
3. 清洗时分别处理空值、重复行、日期、金额、百分比和编码;记录每类规则影响的行数。
4. 合并时按列名对齐,并添加“来源文件/来源工作表”;列冲突或单位不同时显式保留两列或暂停确认。
5. 汇总计算要写清口径、筛选范围和分母;对总计做独立复算。
6. 输出到新文件,并重新读取关键工作表核对行数、列数、公式和抽样值。

## 质量门

- 结果行数能由“输入行数 − 删除 + 新增”解释。
- 不把文本编号、身份证号、前导零编码误转成数字。
- 不静默覆盖公式;若转为值,必须说明。
- 对异常值只标记,不擅自删除,除非用户给出规则。

## 交付

报告输入规模、采用的规则、受影响行数、无法处理的文件、结果路径和至少一项复核证据。

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.