Ask me what skills you need
What are you building?
Tell me what you're working on and I'll find the best agent skills for you.
对比Excel多表中的特定系数并对异常值进行颜色标记。
This sub-skill covers one capability of the Excel workflow. For reading/counting/Parquet optimization, see the parent workflow SKILL.md.
Step1 提取不同Sheet中特定维度(如“B1层”)的数值,并进行跨表逻辑对比。
# 定义提取逻辑:定位目标行(如包含'B1'的行)并获取其关联的系数
def extract_target_value(df, target_label='B1', label_col_idx=0, offset_row=1, value_col_idx=2):
"""
在指定列搜索标签,并返回其相对偏移位置的数值
"""
extracted_values = []
for idx, row in df.iterrows():
if str(row.iloc[label_col_idx]).strip() == target_label:
# 提取目标行下方或特定偏移位置的数值
if idx + offset_row < len(df):
val = df.iloc[idx + offset_row].iloc[value_col_idx]
extracted_values.append(val)
return extracted_values
# 分别读取需要对比的Sheet
sheet1_df = pd.read_excel(file_path, sheet_name='Sheet1')
sheet2_df = pd.read_excel(file_path, sheet_name='Sheet2')
# 提取系数(示例:B1层的换算系数)
# 注意:不同Sheet的列索引可能不同,需根据实际结构调整
s1_coeffs = extract_target_value(sheet1_df, target_label='B1', label_col_idx=1, value_col_idx=3)
s2_coeffs = extract_target_value(sheet2_df, target_label='B1', label_col_idx=0, value_col_idx=2)
# 汇总对比数据
comparison_results = []
npx skills add OpenSenseNova/SenseNova-Skills --skill duplicate-value-coloringHow clear and easy to understand the SKILL.md instructions are, rated from 1 to 5.
Mostly clear, but there are still a few confusing or poorly structured parts.
How directly an agent can act on the SKILL.md instructions, rated from 1 to 5.
Partially actionable with several concrete steps, but still missing important details.