outlier-scan

Detect CSV anomalies using Z-score, IQR, and moving-average methods.

12|2|Updated Apr 21, 2026
One-click install
npx skills add https://github.com/haomingz/kimi-skills --skill outlier-scan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: outlier-scan
Source: https://github.com/haomingz/kimi-skills/tree/main/skills/outlier-scan
Command: npx skills add https://github.com/haomingz/kimi-skills --skill outlier-scan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

CSV data often contains outliers that distort analysis and complicate data quality assessments. This tool detects outliers using Z-score, IQR, and moving-average methods, then categorizes them for targeted review and reporting.

Core Features & Use Cases

  • Multi-method anomaly detection using Z-score, IQR, and moving-average to cover different data distributions.
  • Automatic labeling of anomalies as "explainable" or "needs_attention" to prioritize investigation.
  • JSON report summarizing per-row details and column statistics for downstream analysis and dashboards.
  • Use case: sensor streams, finance data, or any tabular dataset where outliers matter.

Quick Start

Run python3 scripts/anomaly_detector.py data.csv to detect outliers across numeric columns and generate a JSON report.

Frequently Asked Questions about outlier-scan

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect outliers in a CSV file using Z-score and IQR?

You can detect outliers by applying Z-score, IQR, and moving-average methods across automatically detected numeric columns in your CSV dataset. The tool generates a structured JSON report with per-row anomaly details and categorizes each anomaly as needs_attention or explainable.

What is the best way to identify anomalies in sensor stream or finance tabular data?

Identifying anomalies in sensor streams or finance data uses multi-method detection combining Z-score, IQR, and moving-average to cover different data distributions. Each detected outlier is labeled explainable or needs_attention to prioritize investigation and remediation.

Can I configure thresholds and window sizes for moving-average anomaly detection?

Yes, the moving-average anomaly detection method supports configurable thresholds and window sizes. You can adjust these parameters to fit your dataset characteristics and generate per-column statistics that support remediation decisions.

How do I generate a JSON report for CSV data quality assessment?

Generating a JSON report for CSV data quality involves running multi-method anomaly detection across numeric columns to produce per-entry method results and per-column statistics. The structured output summarizes per-row anomaly details for downstream analysis and dashboards.

Does automatic numeric column detection work with mixed-type CSV datasets?

Automatic numeric column detection works with mixed-type CSV datasets by identifying and processing only numeric columns for outlier detection. Non-numeric data is excluded from Z-score, IQR, and moving-average calculations to ensure accurate anomaly results.

When should I use IQR versus Z-score for anomaly detection?

Use IQR for anomaly detection when your data is skewed or non-normally distributed since it relies on quartiles. Use Z-score when data follows a normal distribution, and apply moving-average methods for time-ordered or sequential data to detect contextual outliers.