Install any skill in seconds. Free to start, no credit card required.
Get Started Free →根据数据规模动态选择处理策略。
.claude/skills/opensensenova-condition-filtering-and-large-file-optimization/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-04 | ✗→✓ | ▲ Improved | 9% | 0% |
| case-05 | ✗→✓ | ▲ Improved | -8% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 29% | 0% |
| case-09 | ✗→✓ | ▲ Improved | 10% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 68% | 0% |
> Note: This sub-skill covers one step of the Excel analysis workflow. For the full pipeline (file reading, row counting, large-file optimization, export), see the parent workflow SKILL.md.
Step1 执行多维度数据清洗与条件筛选,包含列名自动识别、RGB 颜色过滤、前缀匹配及正则提取。
python# 1. 自动识别同义列名并筛选非空值 target_cols = ['域名', '缩写', 'code', 'domain'] for col in target_cols: if col in df.columns: df = df[df[col].notna()] break # 2. 基于数值通道的精确筛选(如 RGB 颜色过滤) # 技巧:多条件组合筛选时使用 & 符号 if all(c in df.columns for c in ['Red', 'Green', 'Blue']): df = df[(df['Red'] == 0) & (df['Green'] == 0) & (df['Blue'] == 0)] # 3. 基于字符串前缀筛选并进行数值转换计算 if '编号' in df.columns: # 筛选特定前缀的项目 df = df[df['编号'].astype(str).str.startswith('TXL3')] # 技巧:使用 errors='coerce' 处理无法转换的脏数据 df['val_a'] = pd.to_numeric(df['技工'], errors='coerce') df['val_b'] = pd.to_numeric(df['普工'], errors='coerce') df['total_val'] = df['val_a'] + df['val_b'] avg_val = df['total_val'].mean() # 4. 基于特定分类值的筛选与统计 if '钢筋级别' in df.columns: sub_df = df[df['钢筋级别'] == 'Ⅱ'].copy() sub_df['target_val'] = pd.to_numeric(sub_df['屈服荷载'], errors='coerce') avg_target = sub_df['target_val'].mean() # 5. 正则表达式匹配提取特定字段 if '命令' in df.columns: pattern = r'--pct-' matched_df = df[df['命令'].astype(str).str.contains(pattern, na=False)] # 提取关键列保留追溯性 extracted_data = matched_df[['NO', '命令', '说明']].copy()
Step2 将处理结果保存至 Excel,并对输出文件进行样式美化(如全行标红),最后生成下载链接。
pythonfrom openpyxl.styles import PatternFill output_path = "filtered_result.xlsx" with pd.ExcelWriter(output_path, engine='openpyxl') as writer: if 'total_val' in df.columns: df.to_excel(writer, sheet_name='统计结果', index=False) if 'extracted_data' in locals(): extracted_data.to_excel(writer, sheet_name='正则提取', index=False) # 技巧:使用 openpyxl 进行后期样式加工,突出显示关键结果 wb = openpyxl.load_workbook(output_path) red_fill = PatternFill(start_color='FFFF0000', end_color='FFFF0000', fill_type='solid') for sheet_name in wb.sheetnames: ws = wb[sheet_name] for row in ws.iter_rows(min_row=2): # 跳过表头 for cell in row: cell.fill = red_fill wb.save(output_path) # 输出标准下载链接格式 print(f"[下载结果文件](sandbox:{output_path})")
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→fail | 25,322 | 11,166 | -56% | 1 | 1 | 0% | 5,890 | 2,859 | -51% | 0 | 0 | — |
case-02 | fail→fail | 23,717 | 13,624 | -43% | 1 | 1 | 0% | 4,644 | 3,461 | -25% | 0 | 0 | — |
case-03 | fail→fail | 19,879 | 15,286 | -23% | 1 | 1 | 0% | 4,285 | 4,404 | +3% | 0 | 0 | — |
case-04 | fail→pass | 7,378 | 3,831 | -48% | 1 | 1 | 0% | 1,482 | 1,612 | +9% | 0 | 0 | — |
case-05 | fail→pass | 10,598 | 4,385 | -59% | 1 | 1 | 0% | 1,675 | 1,534 | -8% | 0 | 0 | — |
case-06 | pass→pass | 10,595 | 5,954 | -44% | 1 | 1 | 0% | 2,232 | 2,129 | -5% | 0 | 0 | — |
case-07 | pass→pass | 7,018 | 4,441 | -37% | 1 | 1 | 0% | 1,419 | 1,831 | +29% | 0 | 0 | — |
case-08 | fail→pass | 5,778 | 3,531 | -39% | 1 | 1 | 0% | 1,153 | 1,490 | +29% | 0 | 0 | — |
case-09 | fail→pass | 6,673 | 3,420 | -49% | 1 | 1 | 0% | 1,460 | 1,607 | +10% | 0 | 0 | — |
case-10 | fail→pass | 4,968 | 4,621 | -7% | 1 | 1 | 0% | 1,093 | 1,841 | +68% | 0 | 0 | — |
case-11 | fail→pass | 2,430 | 2,683 | +10% | 1 | 1 | 0% | 446 | 1,271 | +185% | 0 | 0 | — |
case-12 | pass→pass | 6,914 | 4,137 | -40% | 1 | 1 | 0% | 1,306 | 1,651 | +26% | 0 | 0 | — |
case-13 | pass→pass | 8,811 | 7,481 | -15% | 1 | 1 | 0% | 1,448 | 1,767 | +22% | 0 | 0 | — |
case-14 | pass→pass | 8,283 | 5,350 | -35% | 1 | 1 | 0% | 1,688 | 1,741 | +3% | 0 | 0 | — |
case-15 | pass→pass | 5,266 | 5,975 | +13% | 1 | 1 | 0% | 1,215 | 1,714 | +41% | 0 | 0 | — |
case-16 | pass→pass | 6,742 | 6,299 | -7% | 1 | 1 | 0% | 947 | 2,005 | +112% | 0 | 0 | — |
case-17 | pass→pass | 3,856 | 4,028 | +4% | 1 | 1 | 0% | 697 | 1,444 | +107% | 0 | 0 | — |
case-18 | fail→pass | 3,426 | 2,655 | -23% | 1 | 1 | 0% | 593 | 1,320 | +123% | 0 | 0 | — |
case-19 | fail→pass | 9,367 | 1,816 | -81% | 1 | 1 | 0% | 1,358 | 1,136 | -16% | 0 | 0 | — |
case-20 | pass→pass | 3,001 | 3,460 | +15% | 1 | 1 | 0% | 431 | 1,367 | +217% | 0 | 0 | — |
case-21 | pass→pass | 9,420 | 8,320 | -12% | 1 | 1 | 0% | 1,869 | 2,616 | +40% | 0 | 0 | — |
case-22 | pass→pass | 12,144 | 12,289 | +1% | 1 | 1 | 0% | 2,478 | 3,120 | +26% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +36 percentage points is the difference between those two pass rates over the 22 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.