AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Skill 017

skill-legendtkl-agentic-skill-router-skill-017 · by legendtkl

Methods for detecting anomalies in time series data across various domains, including finance and IoT. Use when working with datasets where outlier detection is crucial.

No reviews yet
0 installs
27 views
0.0% view→install

Install

$ agentstack add skill-legendtkl-agentic-skill-router-skill-017

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-legendtkl-agentic-skill-router-skill-017)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
3mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Skill 017? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Time Series Anomaly Detection

This skill provides guidance on identifying anomalies within time series data, a critical task in fields such as finance, manufacturing, and IoT.

Overview

Anomalies in time series can indicate critical events, fraud, or operational issues. Detecting these anomalies is vital for:

  • Fraud detection in transactions
  • Monitoring equipment health
  • Alerting on unexpected system behavior

Techniques for Anomaly Detection

Several methods can be utilized for detecting anomalies in time series data, including:

  • Statistical methods (Z-scores, IQR)
  • Machine learning models (Isolation Forest, LSTM)
  • Change point detection

Statistical Methods

Z-Score Method

The Z-score method involves calculating the Z-score for each data point to identify how far it is from the mean. A common threshold is a Z-score of +/- 3.

Python Implementation
import numpy as np
import pandas as pd

# Load your time series data
# data = pd.read_csv('your_time_series.csv')

mean = np.mean(data['value'])
std_dev = np.std(data['value'])

# Calculate Z-scores
data['z_score'] = (data['value'] - mean) / std_dev

# Identify anomalies
anomalies = data[(data['z_score'] > 3) | (data['z_score'] < -3)]
print(anomalies)

Machine Learning Methods

Isolation Forest

Isolation Forest is an effective algorithm for anomaly detection that isolates anomalies instead of profiling normal data points.

Python Implementation
from sklearn.ensemble import IsolationForest

# Load your time series data
# data = pd.read_csv('your_time_series.csv')

model = IsolationForest(contamination=0.01)
model.fit(data[['value']])

# Predict anomalies
data['anomaly'] = model.predict(data[['value']])
# Anomalies will be labeled as -1
anomalies = data[data['anomaly'] == -1]
print(anomalies)

Change Point Detection

Change point detection helps find points in time series where the statistical properties change significantly. This is useful for monitoring systems that may exhibit sudden shifts.

Python Implementation

from ruptures import Pelt
from ruptures.costs import CostL2

# Load your time series data
# data = pd.read_csv('your_time_series.csv')

algo = Pelt(CostL2()).fit(data['value'].values)
change_points = algo.predict(pen=10)
print(change_points)

Conclusion

Detecting anomalies in time series is essential for various applications. The choice of method will depend on the data characteristics and the specific requirements of the task.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.