/numeric-format-normalization
对 Excel 数据进行数值格式标准化与清洗,支持大规模数据的 Parquet 转换流程,并完成关键指标的合计核对与结果文件导出。
$ npx -y skills add OpenSenseNova/SenseNova-Skills --skill numeric-format-normalization --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/numeric-format-normalization
Context preview
The summary Claude sees to decide when to auto-load this skill.
对 Excel 数据进行数值格式标准化与清洗,支持大规模数据的 Parquet 转换流程,并完成关键指标的合计核对与结果文件导出。
SKILL.md
numeric-format-normalization.SKILL.mdname: numeric-format-normalization
description: "对 Excel 数据进行数值格式标准化与清洗,支持大规模数据的 Parquet 转换流程,并完成关键指标的合计核对与结果文件导出。"
Skill Steps
> This sub-skill covers one capability of the Excel workflow. For reading/counting/Parquet optimization, see the parent workflow SKILL.md.
Step1 对目标列进行数据清洗(去除空值、标准化数值格式),计算合计值,并与指定汇总 Sheet 中的合计行进行精确核对。
target_col = '目标数值列' # 示例:'建筑面积'
summary_sheet_name = 'Summary' # 示例汇总Sheet名
summary_item_col = '项目'
summary_value_col = '数值'
# 数据清洗:去除空值、强制转换为数值格式
df_cleaned = df_processed.dropna(subset=[target_col]).copy()
df_cleaned[target_col] = pd.to_numeric(df_cleaned[target_col], errors='coerce')
# 计算合计
total_calculated = df_cleaned[target_col].sum()
# 从指定 Sheet 中读取“合 计”行数值进行核对
try:
summary_sheet = pd.read_excel(file_path, sheet_name=summary_sheet_name)
expected_total = summary_sheet.loc[summary_sheet[summary_item_col] == '合 计', summary_value_col].values[0]
# 核对一致性 (处理浮点数精度问题)
if abs(total_calculated - expected_total) < 1e-6:
consistency = "一致"
difference = 0
else:
consistency = "不一致"
difference = abs(total_calculated - expected_total)
print(f"计算合计: {total_calculated}, 指定合计: {expected_total}, 一致性: {consistency}")
except Exception as e:
print(f"核对失败: {e}")
expected_total = None
consistency = "未知"
difference = NoneStep2 将分析与核对结果保存为表格文件,并生成可供下载的文件链接。
output_path_xlsx = 'analysis_result.xlsx'
output_path_csv = 'analysis_result.csv'
# 构建结果表格
result_data = {
'统计项': ['总行数', f'{target_col}合计(计算值)', f'{target_col}合计(指定值)', '一致性', '差异值'],
'数值': [total_rows, total_calculated, expected_total, consistency, difference]
}
result_df = pd.DataFrame(result_data)
# 保存为多种格式
result_df.to_excel(output_path_xlsx, index=False)
result_df.to_csv(output_path_csv, index=False, encoding='utf-8-sig')
# 输出下载链接(在报告中展示)
print("分析结果已保存,可下载:")
print(f"- [{output_path_xlsx}](sandbox:/{output_path_xlsx})")
print(f"- [{output_path_csv}](sandbox:/{output_path_csv})")Read more
name: numeric-format-normalization description: "对 Excel 数据进行数值格式标准化与清洗,支持大规模数据的 Parquet 转换流程,并完成关键指标的合计核对与结果文件导出。"
Skill Steps
> This sub-skill covers one capability of the Excel workflow. For reading/counting/Parquet optimization, see the parent workflow SKILL.md.
Step1 对目标列进行数据清洗(去除空值、标准化数值格式),计算合计值,并与指定汇总 Sheet 中的合计行进行精确核对。
target_col = '目标数值列' # 示例:'建筑面积'
summary_sheet_name = 'Summary' # 示例汇总Sheet名
summary_item_col = '项目'
summary_value_col = '数值'
# 数据清洗:去除空值、强制转换为数值格式
df_cleaned = df_processed.dropna(subset=[target_col]).copy()
df_cleaned[target_col] = pd.to_numeric(df_cleaned[target_col], errors='coerce')
# 计算合计
total_calculated = df_cleaned[target_col].sum()
# 从指定 Sheet 中读取“合 计”行数值进行核对
try:
summary_sheet = pd.read_excel(file_path, sheet_name=summary_sheet_name)
expected_total = summary_sheet.loc[summary_sheet[summary_item_col] == '合 计', summary_value_col].values[0]
# 核对一致性 (处理浮点数精度问题)
if abs(total_calculated - expected_total) < 1e-6:
consistency = "一致"
difference = 0
else:
consistency = "不一致"
difference = abs(total_calculated - expected_total)
print(f"计算合计: {total_calculated}, 指定合计: {expected_total}, 一致性: {consistency}")
except Exception as e:
print(f"核对失败: {e}")
expected_total = None
consistency = "未知"
difference = NoneStep2 将分析与核对结果保存为表格文件,并生成可供下载的文件链接。
output_path_xlsx = 'analysis_result.xlsx'
output_path_csv = 'analysis_result.csv'
# 构建结果表格
result_data = {
'统计项': ['总行数', f'{target_col}合计(计算值)', f'{target_col}合计(指定值)', '一致性', '差异值'],
'数值': [total_rows, total_calculated, expected_total, consistency, difference]
}
result_df = pd.DataFrame(result_data)
# 保存为多种格式
result_df.to_excel(output_path_xlsx, index=False)
result_df.to_csv(output_path_csv, index=False, encoding='utf-8-sig')
# 输出下载链接(在报告中展示)
print("分析结果已保存,可下载:")
print(f"- [{output_path_xlsx}](sandbox:/{output_path_xlsx})")
print(f"- [{output_path_csv}](sandbox:/{output_path_csv})")The SenseNova model family plugs directly into agent runtimes such as OpenClaw and hermes-agent, with the skills in this repository extending the models with concrete, end-to-end office capabilities.
Repo: OpenSenseNova/SenseNova-Skills
Other skills on sensenova-skills.
- /sn-da-excel-workflow
Excel 数据分析多步编排器。覆盖:(1) 读取多 Sheet Excel 文件并统计行数,(2) 大文件检测(≥10k 行自动 Parquet 优化),(3) 数据清洗(缺失值、文本标准化、无效字符),(4) 条件筛选与分类提取,(5) 跨 Sheet 统计聚合,(6) 导出 Excel/CSV 并提供下载链接。覆盖从数据读取到报告生成全流程,按步骤编排 capability 子 skill。**遇到以下任一情况就主动使用本 skill,不要自行写几行 pandas 就回答**:①用户出现触发词:Excel 分析 / 表格分析 / 数据分析 /
Open skill - /category-coloring
当Excel文件总行数超过1万行时,通过转换为Parquet格式提升读取性能,提取目标指标并计算最大值,最后将结果输出为Excel并对特定行进行高亮标注。
Open skill - /duplicate-value-coloring
对比Excel多表中的特定系数并对异常值进行颜色标记。
Open skill - /outlier-coloring
识别 Excel 中的超限数值与错误单元格并进行高亮标注。
Open skill - /threshold-cell-coloring
根据Excel总行数自动切换Parquet加速读取,计算特定维度的时间序列平均值,并使用openpyxl输出带有条件格式(如低于均值标绿)和自定义样式的分析报告。
Open skill - /top-value-coloring
根据数据规模动态选择处理策略,对多表数据进行合并、统计筛选,并利用 openpyxl 实现关键指标的自动化样式高亮与格式化导出。
Open skill

