anomaly-analysis

anomaly-analysis is a skill for Claude Code, Codex from danielrosehill/Claude-Data-Analyst-plugin. It costs 50 tokens per session (591 once invoked), scanned A, original, MIT.

A first-pass check of a dataset for unusual values, unexpected distributions, impossible entries, and odd relationships between records.

In plain words
What is it for?
For reviewing CSV, Parquet, or Excel data for missing values, duplicates, invalid types, extreme values, time-based changes, and unusual groups.
Why use it?
It can expose data-quality problems before they distort later analysis.

Skill for Claude CodeCodex

Part of the claude-data-analyst plugin — 14 skills shipped together

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.

agentmods
npx agentmods add skills/danielrosehill/claude-data-analyst-plugin/anomaly-analysis
Any agent
npx skills add danielrosehill/Claude-Data-Analyst-plugin --skill anomaly-analysis
Clone the repo
git clone --depth 1 https://github.com/danielrosehill/Claude-Data-Analyst-plugin

Made for: Claude Code, Codex.

Or install claude-data-analyst, the plugin that ships this one along with the rest of its 14 skills.

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 anomaly-analysis

README.md
[![agentmods](https://agentmods.dev/badge/skills/danielrosehill/claude-data-analyst-plugin/anomaly-analysis.svg)](https://agentmods.dev/skills/danielrosehill/claude-data-analyst-plugin/anomaly-analysis)
Your own site
<a href="https://agentmods.dev/skills/danielrosehill/claude-data-analyst-plugin/anomaly-analysis"><img src="https://agentmods.dev/badge/skills/danielrosehill/claude-data-analyst-plugin/anomaly-analysis.svg" alt="Measured on agentmods" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 591 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00050 $0.00591
Opus 5 $0.00025 $0.00296
Sonnet 5 $0.00010 $0.00118
Haiku 4.5 $0.00005 $0.00059

Measured 5d ago against content hash d2c9a4ca5ea2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

anomaly-analysis 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 5d 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/anomaly-analysis/SKILL.md · 59 lines

How it starts

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

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).
  • 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.

Read the full file on GitHub · 59 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. 5d ago First seen · 59 lines · 50 tokens per session scan A d2c9a4ca5ea2

Subscribe to this mod's changes

anomaly-analysis is a skill published in the GitHub repository danielrosehill/Claude-Data-Analyst-plugin (11 stars, last pushed 4mo ago), licensed MIT. It adds 50 tokens to every session and 591 once invoked, about $0.0003 per session on Opus 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.

Related

Other skills, from other repositories

sn-image-base

Base-layer skill for the SenseNova-Skills project, providing low-level APIs for image generation, recognition (VLM), and text optimization (LLM). This skill does not preprocess inputs; it only calls backend services and returns results. This skill is not user-facing and is intended for upper-layer skills only.

OpenSenseNova/SenseNova-Skills · 66 tokens

sn-search-academic

用于学术调研、论文精读、相关工作梳理、百科知识查询和引用链追溯。.

OpenSenseNova/SenseNova-Skills · 31 tokens

ppt-analysis

PPT (.pptx/.ppt) 全量解析。覆盖:所有 slide 文本/表格/图表提取、嵌入图片 caption、纯图片 slide 渲染识别、数据标签提取。.

OpenSenseNova/SenseNova-Skills · 51 tokens

category-statistics

提取指定类别列并统计各类别数量与占比,生成高分辨率的柱状图、饼图等组合可视化报告,适用于分类数据的分布情况分析。.

OpenSenseNova/SenseNova-Skills · 48 tokens

multi-sheet-reading-and-analysis

用于读取多工作表Excel文件,动态评估数据量以启用Parquet大文件优化,并执行正则清洗、分类汇总、线性拟合及生成带格式的图表与结果文件。.

OpenSenseNova/SenseNova-Skills · 53 tokens

sn-da-non-spreadsheet-analysis

Word / PDF / PPT 文档解析与数据分析引擎。覆盖三类文件格式的全量提取、表格数值化、图表理解与跨文档汇总分析。遇到以下任一情况就主动使用本 skill:①用户上传或指定了 .docx / .doc / .pdf / .pptx / .ppt 文件并要求分析、提取或统计其中内容;②用户出现触发词:Word分析 / PDF解析 / PPT提取 / 文档分析 / 报告解析 / 幻灯片分析 / 发票提取 / 合同分析 / 文档统计 / 错别字 / 语病 / 字号检查 / 简历分析 / 多文档对比;③任务涉及从文档中提取表格、数值、图表、格式(颜色/高亮/字号)、组织架构、时间线等结构化信息。仅不用于:Excel/CSV…

OpenSenseNova/SenseNova-Skills · 234 tokens