Przejdź do treści
Biblioteka skilli
Dane i analityka · Analiza

nixtla-anomaly-detector

/nixtla-anomaly-detector

Wykrywa anomalie w szeregach czasowych z TimeGPT: wartości odstające, przesunięcia poziomu i załamania trendu, bez trenowania modelu.

Repozytorium
plugins-nixtla ↗
Licencja
MIT
Ostatnia zmiana repozytorium
14.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
2
Skrypty
1
Komentarze HTML
0
Adresy URL w SKILL.md
2
Przestarzałość

Brak sygnałów. Repozytorium zmienione 14.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co sprawdzić przed instalacją
  • 1 skrypt w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.

Skrypty: scripts/detect_anomalies.py

Co robi i kiedy

Wykrywa anomalie w szeregach czasowych z TimeGPT: wartości odstające, przesunięcia poziomu i załamania trendu, bez trenowania modelu.

Wyzwalacze z opisu

detect anomaliesfind outliersanomaly detection
Oryginalny opis (EN)

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".

Jak działa

  1. Overview
  2. Prerequisites
  3. Instructions
  4. Output
  5. Error Handling
  6. Examples
  7. Resources
Sekcje z nagłówków SKILL.md, w oryginale · 131 linii, 395 słów
Podgląd SKILL.md
---
name: nixtla-anomaly-detector
description: |
  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".
allowed-tools: "Read,Write,Bash,Glob,Grep"
version: "1.0.0"
---

# Nixtla Anomaly Detector

Automatically detect and flag anomalies in time series data using TimeGPT.

## Overview

This skill leverages TimeGPT's anomaly detection capabilities to identify outliers, level shifts, and trend breaks in time series data without requiring model training. It accepts CSV data, runs anomaly detection via the Nixtla API, and produces a detailed report with visualizations.

## Prerequisites

**Required**:
- Python 3.8+
- `nixtla`, `pandas`, `matplotlib` packages

**Environment Variables**:
- `NIXTLA_TIMEGPT_API_KEY`: Your TimeGPT API key

**Installation**:
```bash
pip install nixtla pandas matplotlib
```

## Instructions

### Step 1: Prepare Input Data

Ensure your CSV file has the required Nixtla schema columns:

| Column | Type | Description |
|--------|------|-------------|
| `unique_id` | string | Series identifier |
| `ds` | datetime | Timestamp |
| `y` | numeric | Value to analyze |

### Step 2: Set API Key

```bash
export NIXTLA_TIMEGPT_API_KEY=your_api_key_here
```

### Step 3: Run Anomaly Detection

Execute the detection script:

```bash
python {baseDir}/scripts/detect_anomalies.py --input your_data.csv
```

**Available options**:
- `--input`, `-i`: Input CSV file (required)
- `--output-csv`, `-o`: Anomaly output CSV (default: `anomalies.csv`)
- `--output-plot`, `-p`: Visualization plot (default: `anomalies_plot.png`)
- `--output-summary`, `-s`: Summary text file (default: `anomaly_summary.txt`)

### Step 4: Review Results

The script generates three output files:
1. **anomalies.csv** - Detailed anomaly records
2. **anomalies_plot.png** - Visual highlighting of anomalies
3. **anomaly_summary.txt** - Summary counts by type

## Output

- **anomalies.csv**: Contains detected anomalies with timestamps, values, and anomaly types (outlier, level_shift, trend_break)
- **anomalies_plot.png**: Time series visualization with anomalies highlighted in red
- **anomaly_summary.txt**: Human-readable summary of detection results

## Error Handling

1. **Error**: `NIXTLA_TIMEGPT_API_KEY not set`
   **Solution**: Run `export NIXTLA_TIMEGPT_API_KEY=your_key`

2. **Error**: `CSV file missing required columns`
   **Solution**: Ensure CSV has `unique_id`, `ds`, and `y` columns

3. **Error**: `No anomalies detected`
   **Solution**: This is valid output - data may have no anomalies

4. **Error**: `Connection error to TimeGPT API`
   **Solution**: Check network connection and API key validity

## Examples

### Example 1: Detect outliers in website traffic

**Input** (`traffic.csv`):
```csv
unique_id,ds,y
website_1,2024-01-01,1000
website_1,2024-01-02,1050
website_1,2024-01-03,300
website_1,2024-01-04,980
```

**Command**:
```bash
python {baseDir}/scripts/detect_anomalies.py --input traffic.csv
```

**Output** (anomalies.csv):
```csv
unique_id,ds,y,anomaly_type
website_1,2024-01-03,300,outlier
```

### Example 2: Identify trend break in sales data

**Input** (`sales.csv`):
```csv
unique_id,ds,y
store_1,2023-12-28,50
store_1,2023-12-29,55
store_1,2023-12-30,60
store_1,2023-12-31,150
store_1,2024-01-01,145
```

**Command**:
```bash
python {baseDir}/scripts/detect_anomalies.py -i sales.csv -o sales_anomalies.csv
```

**Output**: Detects trend break at 2023-12-31

## Resources

- Script: `{baseDir}/scripts/detect_anomalies.py`
- Nixtla Docs: https://nixtla.github.io/
- TimeGPT API: https://docs.nixtla.io/
Pliki w paczce (2)
  • SKILL.md 4 KB
  • scripts/detect_anomalies.py 8 KB

Wersje

W bazie nie ma innych skilli o nazwie nixtla-anomaly-detector.

Identyczna treść występuje jeszcze w 1 innych folderach na GitHubie. Tu pokazujemy jedną, najlepiej ocenioną kopię.

Migawka bazy z 28.10.2026 · wersja paczki efaeecec9b16 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100detecting-data-anomalies
    Wykrywa anomalie i wartości odstające w zbiorach danych algorytmami uczenia maszynowego.
  • 100detecting-data-anomalies
    Wykrywa anomalie i wartości odstające w zbiorach danych algorytmami uczenia maszynowego.
  • 90anomaly-detection
    Wykrywa wartości odstające i anomalie w danych metodami Isolation Forest lub Local Outlier Factor.
  • 100anomaly-detector
    Wykrywa anomalie w metrykach: odstające wartości statystyczne, nagłe zmiany i nieoczekiwane wzorce, także w automatycznym monitorowaniu stanu.
  • 100detect-anomalies
    Wykrywa anomalie w zbiorach danych Axiom metodami statystycznymi: nietypowe wzorce, skoki wolumenu, wartości odstające i nowe typy błędów w danych obserwowalności.
  • 100anomaly-detector
    Prawdopodobnie wykrywa anomalie w danych i uruchamia się automatycznie na frazy związane z detekcją anomalii w kategorii analityki danych.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.