Skip to content
Skills Library
Data & analytics · Analysis

anomaly-analysis

/anomaly-analysis

Scan a dataset for significant anomalies — outliers, distribution shifts, impossible values, and unusual groupings. Use when the user wants a first-pass integrity and anomaly sweep of a CSV/Parquet/Excel file before deeper analysis.

Licence
MIT
Last repository change
15.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 15.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Scan a dataset for significant anomalies — outliers, distribution shifts, impossible values, and unusual groupings. Use when the user wants a first-pass integrity and anomaly sweep of a CSV/Parquet/Excel file before deeper analysis.

Original author description

Scan a dataset for significant anomalies — outliers, distribution shifts, impossible values, and unusual groupings. Use when the user wants a first-pass integrity and anomaly sweep of a CSV/Parquet/Excel file before deeper analysis.

How it works

  1. Inputs
  2. Recommended CLI tooling
  3. Procedure
  4. Output
Original SKILL.md headings · 55 lines, 339 words
SKILL.md preview
---
name: anomaly-analysis
description: Scan a dataset for significant anomalies — outliers, distribution shifts, impossible values, and unusual groupings. Use when the user wants a first-pass integrity and anomaly sweep of a CSV/Parquet/Excel file before deeper analysis.
---

# Anomaly Analysis

Identify significant anomalies in a dataset across three layers: value-level, distribution-level, and relational.

## Inputs

- Path to a dataset file or folder.
- Optional: timestamp column name (enables temporal anomaly checks).
- Optional: group-by column (for per-segment anomaly detection).

## Recommended CLI tooling

- `duckdb` — percentile, z-score, and windowed queries.
- `uv run --with pandas --with scikit-learn python -c '...'` — IsolationForest and LOF for multivariate anomalies.
- `csvstat` (csvkit) — quick min/max/null sanity check.

## Procedure

### Layer 1 — Value-level sanity

For each column:
- Nulls: count and percentage; flag columns >20% null.
- Duplicates: flag rows duplicated on a natural key, or full-row duplicates.
- Impossible values: negative ages, dates in the future, percentages >100, etc. Use column name hints.
- Type coherence: mixed types in one column (e.g. numbers stored as strings with stray text).

### Layer 2 — Distribution-level outliers

For each numeric column:
- **IQR method**: flag values below Q1 − 1.5·IQR or above Q3 + 1.5·IQR.
- **Z-score**: flag |z| > 3.
- **Top/bottom 5**: list the extreme values explicitly so the user can eyeball them.

For categorical columns:
- Rare categories (<1% frequency) — possible typos or data-entry errors.
- Unexpected values outside a known vocabulary (if provided).

### Layer 3 — Multivariate and temporal

- **IsolationForest** on numeric columns → flag rows in the top 1% anomaly score.
- If a timestamp column exists: detect gaps, spikes, and level shifts in row volume over time.
- If a group-by column is provided: re-run Layer 2 within each group — an anomaly in-group may not be one globally.

## Output

Write `<dataset>-anomalies.md`:

1. **Summary**: one-line severity (low / medium / high) and headline anomaly count.
2. **By layer**: sections for value-level, distribution, and multivariate.
3. **Evidence**: concrete example rows (with row numbers / keys) for each flagged anomaly.
4. **Recommendations**: which anomalies warrant investigation vs. are likely expected tail behaviour.

Be specific — "17 rows have negative `order_total`" is useful; "there are some outliers" is not.

Versions

The database has no other skills named anomaly-analysis.

Database snapshot: 13.11.2026 · package version 8367e05b5a97 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 1 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100nixtla-anomaly-detector
    Detects anomalies in time series data using TimeGPT. Identifies outliers, level shifts, and trend breaks without model training. Use when identifying anomalies, outliers, or unusual patterns in time series. Trigger with "detect anomalies", "find outliers", "anomaly detection".
  • 100data-analysis
    Explore, clean, summarize or answer questions about a tabular dataset (CSV, Excel, Parquet, JSON, or a pasted table): distributions, outliers, correlations, group comparisons, trends, seasonality. Use whenever the answer must be computed from rows and columns. Writes code,…
  • 90anomaly-detection
    Detect outliers and anomalies in data using isolation forest or local outlier factor. Use when identifying unusual observations or suspicious patterns.
  • 100pii-flag
    Scan a dataset and flag columns or values that appear to contain personally identifiable information (PII). Use when the user wants a quick privacy audit of a CSV/Parquet/Excel file before sharing, publishing, or ingesting into another system.
  • 100data-dictionary-creator
    Generate a data dictionary for a dataset, combining automatic profiling with the user's description of what the data represents. Use when the user wants documentation of columns — names, types, semantic meaning, units, allowed values, and nullability — for a CSV/Parquet/Excel file.
  • 100anomaly-detector
    Proactive anomaly detection — scan metrics for statistical outliers, sudden changes, and unexpected patterns. Use when the user wants to know if something unusual happened, when a metric changed unexpectedly, or for automated health monitoring.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.