detect-anomalies

detect-anomalies is a skill for Claude Code from axiomhq/cli. It costs 37 tokens per session (1,514 once invoked), scanned A, original, MIT.

A statistical tool for finding unusual patterns in Axiom observability data, such as unexpected traffic volume, spikes, outliers, or new error types. Axiom is a service for storing and querying logs and other operational data.

In plain words
What is it for?
Use it to investigate anomalies in a named Axiom dataset, provided it has at least 30 samples per time bucket and roughly 24 hours of usable history.
Why use it?
It compares recent data with historical patterns so unusual behaviour is easier to spot than by reviewing logs manually. Reliable statistical comparisons need enough data and a continuous historical baseline.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the axiom-cli plugin — 4 skills, 1 hook shipped together

Good fit Use it to investigate anomalies in a named Axiom dataset, provided it has at least 30 samples per time bucket and roughly 24 hours of usable history.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/axiomhq/cli/detect-anomalies
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add axiomhq/cli --skill detect-anomalies
Clone the repo
git clone --depth 1 https://github.com/axiomhq/cli

Made for: Claude Code.

Or install axiom-cli, the plugin that ships this one along with the rest of its 4 skills, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for detect-anomalies

README.md
[![agentmods](https://agentmods.dev/badge/skills/axiomhq/cli/detect-anomalies/github.svg)](https://agentmods.dev/skills/axiomhq/cli/detect-anomalies)
Your own site
<a href="https://agentmods.dev/skills/axiomhq/cli/detect-anomalies"><img src="https://agentmods.dev/badge/skills/axiomhq/cli/detect-anomalies/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for detect-anomalies

Your own site · 80×15
<a href="https://agentmods.dev/skills/axiomhq/cli/detect-anomalies"><img src="https://agentmods.dev/badge/skills/axiomhq/cli/detect-anomalies.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,514 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00037 $0.01514
Opus 5.5 $0.00015 $0.00606
Sonnet 5.5 $0.00007 $0.00303
Haiku 4.5 $0.00004 $0.00151

Measured 1mo ago against content hash cb0f04e97c29, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

detect-anomalies scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/detect-anomalies/SKILL.md · 212 lines

How it starts

The opening of the file, as written. The whole thing — 212 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Anomaly Detection

Detect anomalies in Axiom datasets by comparing recent patterns to historical baselines using statistical analysis.

Arguments

When invoked with a dataset name (e.g., /detect-anomalies logs), it's available as $ARGUMENTS.

Prerequisites

Statistical anomaly detection requires sufficient data:

  • Minimum data points: Z-score and standard deviation need ≥30 samples per bucket for statistical significance
  • Historical baseline: At least 24 hours of data for meaningful comparison (methods use 25h lookback)
  • Consistent ingestion: Gaps in data collection will skew baselines

If these aren't met, results may be misleading. Consider using simpler threshold-based alerting instead.

Schema Discovery

Always verify field names first:

axiom query "['<dataset>'] | getschema" --start-time -1h

Anomaly Detection Methods

1. Volume Anomaly Detection

Compare recent volume to baseline:

Calculate baseline (past 24h excluding last hour):

axiom query "['<dataset>']
| where _time between (ago(25h) .. ago(1h))
| summarize count() by bin(_time, 1h)
| summarize
    avg_hourly = avg(count_),
    stdev_hourly = stdev(count_)" --start-time -25h -f json

Check recent volume:

axiom query "['<dataset>']
| where _time >= ago(1h)
| summarize
    current_count = count(),
    current_hour = min(_time)" --start-time -1h -f json

Z-score calculation:

  • z_score = (current - avg) / stdev
  • |z_score| > 2 indicates anomaly

2. New Value Detection

Find values that appeared recently but weren't seen before:

axiom query "['<dataset>']
| where _time >= ago(1h)
| summarize by error_code
| join kind=leftanti (
    ['<dataset>']
    | where _time between (ago(25h) .. ago(1h))
    | summarize by error_code
  ) on error_code" --start-time -25h -f json

Replace error_code with any categorical field (service, endpoint, status).

3. Statistical Outliers

Find values outside normal distribution:

Read the full file on GitHub · 212 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 212 lines · 37 tokens per session scan A cb0f04e97c29

Subscribe to this mod's changes

detect-anomalies is a skill published in the GitHub repository axiomhq/cli (60 stars, last pushed 4d ago), licensed MIT. It adds 37 tokens to every session and 1,514 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.