Time anomaly marker

From cas-bigdatalab/piflow · View interactive version

Time anomaly marker is an AI agent skill from the GitHub repository cas-bigdatalab/piflow. 时序/数值异常标记工具。对指定或全部数值列进行 Z-Score 异常和差分突变检测, 输出 anomaly_flag 与 anomaly_reasons,不删除数据,适用于时序稳态/突变异常识别。

How to use this skill

Skill file

time_anomaly_marker 时序/数值异常标记

功能概述

触发条件

参数说明

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

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

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

| --output_path | 是 | | 输出文件路径(标记后的文件) |

| --numeric_columns | 否 | | 需检测的数值列,逗号分隔;不填默认所有数值列 |

| --z_threshold | 否 | | Z-Score 阈值,默认 3.0 |

| --diff_threshold | 否 | | 差分突变阈值(倍数标准差),默认 3.0 |

使用方法

python scripts/time_anomaly_marker.py \
  --input_path <输入文件> \
  --output_path <输出文件> \
  [--numeric_columns col1,col2] \
  [--z_threshold 3.0] \
  [--diff_threshold 3.0]

输出说明

注意事项

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.