用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/OpenSenseNova/SenseNova-Skills --skill excel-basic-statistics-and-routing命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Base-layer skill for the SenseNova-Skills project, providing low-level APIs for image generation, recognition (VLM), and text optimization (LLM). This skill does not preprocess inputs; it only calls backend services and returns results. This skill is not user-facing and is intended for upper-layer skills only.
Standard and fast PPT pipeline. All LLM / VLM / T2I calls are wrapped in a single CLI entry (scripts/run_stage.py). The main agent's job is simple: emit ONE shell command per stage, never write loops, never write prompts. Standard mode plans thoroughly with a three-sample deck preview checkpoint (three concatenated deck images plus a preview URL), web research, image search, and user-selected final output format (PPTX or PDF) for polished, delivery-ready presentations. Fast mode builds a complete draft immediately with autonomous decisions, then provides structured refinement suggestions so the user can iterate quickly. Supports AI-generated infographics (U1) for diagrams and flowcharts, web image search (Serper) for real photos, and ECharts for data charts.
用于用户请求深度研究、系统性研究、竞品分析、方案对比、趋势分析或事实核查时。**遇到以下任一情况就主动使用本 skill,不要自行搜几条就回答**:①用户出现触发词:深度研究 / 深度调研 / 深入研究 / 全面研究 / 系统研究 / 调研 / 调查 / 尽调 / 行业研究 / 市场研究 / 竞品分析 / 政策研究 / 技术研究 / 趋势研究 / 事实核查 / 写一份研究报告 / 调研报告 / 深度报告 / research / deep research;②请求需要跨多来源取证、多维度对比、交叉验证才能给出可靠结论;③用户要求产出报告、白皮书、行业分析或尽调文档;④话题涉及最新政策/市场/产品/价格/法规,需要系统核查。明确要求核验来源的单点事实可走 quick;无核验要求的简单常识问答不使用。模糊或宽泛的"研究/了解一下 X"也优先触发。仅不用于:一句话摘要、已给定单一来源的整理、纯文字润色改写。
基于 SOC 职业分类
正在显示 SKILL.md
| name | excel-basic-statistics-and-routing |
| description | 对多Sheet Excel文件进行基础统计与,支持按条件筛选计算均值,以及从指定行区间提取数据去重求和,并生成结果文件与下载链接。 |
This sub-skill covers one capability of the Excel workflow. For reading/counting/Parquet optimization, see the parent workflow SKILL.md.
Step1 筛选指定分组数据,将目标列转换为数值类型并计算平均值。
group_col = '班级' # 占位示例
target_group_value = '358' # 占位示例
target_cols = ['总分', '理数'] # 占位示例
if group_col not in df_analysis.columns:
raise ValueError(f"数据中缺少'{group_col}'列。")
df_analysis[group_col] = df_analysis[group_col].astype(str)
filtered_df = df_analysis[df_analysis[group_col] == target_group_value]
avg_scores = {}
for col in target_cols:
if col not in filtered_df.columns:
raise ValueError(f"数据中缺少'{col}'列。")
try:
filtered_df[col] = pd.to_numeric(filtered_df[col], errors='raise')
avg_scores[f'平均{col}'] = filtered_df[col].mean()
except Exception as e:
raise ValueError(f"列'{col}'无法转换为数值类型: {str(e)}")
output("筛选结果统计: " + str(avg_scores))
Step2 对于小文件,从特定 Sheet 的指定行区间提取目标字段,去重后计算总和。
unique_components = {}
total_power = 0
if total_rows < 10000:
target_sheet = 'Sheet2' # 占位示例
df_sheet2 = pd.read_excel(file_path, sheet_name=target_sheet)
extracted_data = []
# 提取区间1 (例如 21-28行)
for i in range(21, 29):
if i < len(df_sheet2):
row = df_sheet2.iloc[i]
component = row.iloc[0]
power = row.iloc[6]
if pd.notna(component) and pd.notna(power):
try:
extracted_data.append({'Component': component, 'Value': float(power)})
except:
pass
# 提取区间2 (例如 51-58行)
for i in range(51, 59):
if i < len(df_sheet2):
row = df_sheet2.iloc[i]
component = row.iloc[0]
power = row.iloc[1]
if pd.notna(component) and pd.notna(power):
try:
extracted_data.append({'Component': component, 'Value': float(power)})
except:
pass
# 合并并去重 (保留首次出现的值)
for item in extracted_data:
name = item[]
val = item[]
name unique_components:
unique_components[name] = val
total_power = (unique_components.values())
Step3 将计算结果、筛选数据和统计信息保存为Excel文件,并生成本地下载链接。
import os
# 保存区间提取与汇总结果
if total_rows < 10000:
result_df = pd.DataFrame([
{'Component Name': name, 'Est. Power (kW)': power}
for name, power in unique_components.items()
])
total_row = pd.DataFrame([{'Component Name': '合计', 'Est. Power (kW)': total_power}])
result_df = pd.concat([result_df, total_row], ignore_index=True)
output_path_power = "output_power_sum.xlsx"
result_df.to_excel(output_path_power, index=False)
output(f"功率计算结果已保存。下载链接: file://{os.path.abspath(output_path_power)}")
# 保存筛选与统计结果
output_path_analysis = "output_analysis_result.xlsx"
with pd.ExcelWriter(output_path_analysis, engine='openpyxl') as writer:
filtered_df.to_excel(writer, sheet_name="筛选数据", index=False)
pd.DataFrame([avg_scores]).to_excel(writer, sheet_name="统计信息", index=False)
output(f"分析完成,结果已保存。下载链接: file://{os.path.abspath(output_path_analysis)}")