Lowinfo filter

From cas-bigdatalab/piflow · View interactive version

Lowinfo filter is an AI agent skill from the GitHub repository cas-bigdatalab/piflow. 低信息量过滤工具。读取结构化数据文件,对指定文本列同时校验字符总数与行数是否落在阈值区间内,输出过滤后的合规行。 当用户提到低信息量过滤、字符数筛选、短文本过滤、超长文本过滤、行数过滤、信息量阈值等需求时使用此skill。 即使用户没有明确说出"低信息量",只要任务涉及同时按字符数和行数两个维度过滤文本行,就应该使用此skill。 不负责按单词数过滤(用words_num_filter)、按token数过滤(用token_num_filter)、按最长单行长度过滤(用maximum_line_length_filter)或按平均行长度过滤(用average_line_length_filter

How to use this skill

Skill file

lowinfo_filter 低信息量过滤

功能概述

参数说明

| 参数 | 必填 | 默认值 | 说明 |

|------|------|--------|------|

| --input_path | 是 | | 输入文件路径(支持CSV/TSV/Excel等) |

| --output_path | 是 | | 输出文件路径(过滤后的文件) |

| --text_columns | 否 | | 需检测的文本列,逗号分隔;不填默认全部字符串列 |

| --min_chars | 否 | | 最小字符数,默认 10 |

| --max_chars | 否 | | 最大字符数(0 表示不限),默认 2000 |

| --min_lines | 否 | | 最小行数,默认 1 |

| --max_lines | 否 | | 最大行数(0 表示不限),默认 200 |

使用方法

python scripts/lowinfo_filter.py \
  --input_path <输入文件> \
  --output_path <输出文件> \
  [--text_columns col1,col2] \
  [--min_chars 10] [--max_chars 2000] \
  [--min_lines 1] [--max_lines 200]

输出说明

注意事项

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.