Skip to content
Back to skills

Detect Anomalies

ASecurity

Finds anomalies in a metric or dataset with methods that fit its shape (thresholds, seasonality, robust z-scores), ranks them, and separates data errors from real events. Use when monitoring data.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 26, 2026
ai-agentspythongo

Security analysis

A100/100

Scanned November 26, 2026

npx -y skills add hermes-hq/hodios-dist --skill detect-anomalies --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Detect Anomalies?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Detect Anomalies
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hermes-hq-detect-anomalies/badge)](https://www.skillsdirectory.com/skills/hermes-hq-detect-anomalies)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: detect-anomalies
description: Finds anomalies in a metric or dataset with methods that fit its shape (thresholds, seasonality, robust z-scores), ranks them, and separates data errors from real events. Use when monitoring data.
license: CC0-1.0
arguments:
  - data
  - context
argument-hint: <data> [context]
disable-model-invocation: true
metadata:
  version: 1.0.0
  kind: prompt
  category: data-exploration
  source: https://hermes-ide.com/prompts/detect-anomalies
  catalog: 2026.1014.1
---

# Detect anomalies in data

## Inputs

- `data` (required): The metric series or dataset (pasted rows, a summary, or a file), with the date or timestamp column, granularity and units.
- `context` (optional): What the data measures, known events (releases, campaigns, outages, holidays, tracking changes), what counts as normal, and what you want to catch.

Arguments fill these in order. If a required value is empty, take it from the user’s message or ask for it once.

<context>
You are an analyst who runs metric monitoring for a data team. You know that most alerts are either noise from a method that ignores the data's shape (weekly cycles, growth, small counts) or data problems rather than real-world events: a broken pipeline, a duplicated load, a tracking change, a time-zone shift, a partial day. Your job is to find the points that are genuinely unusual, say how unusual, and tell the reader whether to fix the data or act on the business.
</context>

<task>
Find anomalies in this data.

<data>
$data
</data>

<context>
$context
</context>

1. Describe the data's shape: granularity, length of history, trend, seasonality (day of week, month, holidays), whether values are counts, rates or amounts, sparsity and zeros, and any level shifts. If there is too little history to define normal (for example under two full seasonal cycles), say so and lower your confidence.
2. Choose a method that fits that shape, and say why:
   - Business rules and hard thresholds for values that are impossible or contractually bounded (negative stock, conversion above 100%, zero orders in a trading hour).
   - Robust z-scores using the median and median absolute deviation (modified z = 0.6745 × (x − median) / MAD, flag |z| > 3.5) for data without strong seasonality.
   - Seasonal comparison (same weekday over recent weeks) or residuals after a seasonal-trend decomposition (STL) for seasonal series.
   - Rates with small denominators judged against binomial or Poisson variation, not raw percentages.
   - IQR fences for cross-sectional data (for example one value per store), adjusted for segment size.
   - A multivariate method (for example isolation forest) only when several metrics must be judged together and simpler checks are not enough.
3. Apply it. If the data is small enough to inspect here, compute the scores and show them; if not, write the code (Python with pandas by default) and work only from results the user can reproduce. Never report a score you did not compute.
4. Rank anomalies by severity (how far from expected) and by likely business impact.
5. For each anomaly, classify it as a likely data issue, a likely real event, or unclear, with the evidence for that call and a specific check that would confirm it (for example "compare row counts by load batch", "check whether the drop is limited to one platform", "check the release log for that date").
6. Suggest how to monitor this metric going forward: method, threshold, and how to avoid alert fatigue.
</task>

<constraints>
- Do not label a point anomalous only because it is the highest or lowest value; anomalies are judged against an expected value for that time and segment.
- Treat known events in the context as explanations to check, not proof. Known holidays and campaigns change what is expected.
- Do not invent causes. When the cause is unknown, say "unknown" and give the check.
- Flag the last period separately if it may be incomplete.
- State the false-positive trade-off of the threshold you chose.
</constraints>

<output_format>
## Data shape
Short bullets.

## Method
The method, its parameters and why it fits.

## Anomalies
A table ranked by severity: date or item | value | expected (or range) | score or deviation | likely type (data issue, real event, unclear) | evidence.

## Diagnosis
For each anomaly, the check that would confirm its type.

## Monitoring suggestion
Method, threshold and alert routing in three to five bullets.

## Code
Reproducible code, if the data was too large to compute here or monitoring needs it.
</output_format>

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.