dr-anomalies

dr-anomalies is a skill for Claude Code, Codex from Datarails/dr-claude-code-plugins-re. It costs 100 tokens per session (5,154 once invoked), scanned A, original, MIT.

A skill for finding data-quality problems in one Datarails Finance OS table, including unusual values, duplicates, missing values, and rare categories. It reviews the latest complete financial year and reports the findings in chat.

In plain words
What is it for?
Use it to inspect a table for outliers, duplicate records, missing-value rates, and uncommon values, with findings ranked by severity.
Why use it?
It highlights potentially unreliable or unusual data without creating a separate file.

Skill for Claude CodeCodex

Part of the datarails-financeos plugin — 19 skills, 4 commands 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/datarails/dr-claude-code-plugins-re/anomalies
Any agent
npx skills add Datarails/dr-claude-code-plugins-re --skill anomalies
Clone the repo
git clone --depth 1 https://github.com/Datarails/dr-claude-code-plugins-re

Made for: Claude Code, Codex.

Or install datarails-financeos, the plugin that ships this one along with the rest of its 19 skills, 4 commands.

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 dr-anomalies

README.md
[![agentmods](https://agentmods.dev/badge/skills/datarails/dr-claude-code-plugins-re/anomalies.svg)](https://agentmods.dev/skills/datarails/dr-claude-code-plugins-re/anomalies)
Your own site
<a href="https://agentmods.dev/skills/datarails/dr-claude-code-plugins-re/anomalies"><img src="https://agentmods.dev/badge/skills/datarails/dr-claude-code-plugins-re/anomalies.svg" alt="Measured on agentmods" height="20"></a>
Per session 100 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,154 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.00100 $0.05154
Opus 5 $0.00050 $0.02577
Sonnet 5 $0.00020 $0.01031
Haiku 4.5 $0.00010 $0.00515

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

Security

Grade A, and why

dr-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 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/anomalies/SKILL.md · 303 lines

How it starts

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

Datarails Anomaly Detection

Find data quality issues in Finance OS tables. The MCP server's profile tools are deliberately thin — they return baseline aggregates and nothing more. This skill computes the actual findings (outliers, severity, duplicate counts, null rates) by post-processing those aggregates. Be explicit about which numbers came from the tool versus which the skill derived.

Tool reality check

Before designing the analysis, read what each tool actually returns:

Tool What it returns What it does NOT compute
profile_numeric_fields SUM, AVG, MIN, MAX, COUNT per numeric field — in the backend-native DR_Values/col_keys/row_keys layout, no per-value aggregator labels median, std dev, percentiles, outlier flags, null counts
profile_categorical_fields distinct-count + first 10 sample values per field (capped at 5 fields; bare calls default to upload/mapping metadata columns — always pass fields) per-value frequency, null counts, uniqueness ratio
start_aggregation_by_id / …_by_alias → poll get_aggregation_result_by_id / …_by_alias grouped totals with no row limit anything not expressible as GROUP BY + aggregation
get_data_by_id / …_by_alias raw rows (≤500/page) with value-list and advanced filters

For severity, percentiles, std dev, z-scores, and most named anomaly categories below — the skill computes them, not the tool. There is no server-side anomaly tool; everything is derived here.

Workflow

Step 1: Verify Authentication

If any tool call fails with an authentication or connection error, guide the user to connect via the Connectors UI ("+" → Connectors → Datarails → Connect).

Step 2: Gather baseline aggregates

  1. get_fields_by_id(table_id) — field ids, names, types. (If you only have a name/alias, resolve the table via list_data_models first.)

Async fetch — aggregations and distinct values run as start → poll. start_aggregation_by_id/_by_alias and start_distinct_values_by_id/_by_alias take the same arguments as the retired blocking calls (dimensions/metrics/filters; table id + field id, or alias + field alias) and return immediately with {"status": "pending", "handle": {...}}. Echo that handle back verbatim to the matching get_aggregation_result_by_* / get_distinct_values_result_by_* tool: a {"status": "running", "retry_after_seconds": N} response means poll again with the same handle after ~N seconds (≈5s) — it is not an error, and large jobs may take several polls; when ready, the result arrives in the familiar shape (for distinct values, pass limit to the result tool). An expired/unknown-handle error means restart with the start_* tool. Transitional fallback: if the start_* tools aren't available on the connector (older server), the blocking twins get_aggregated_data_by_* / get_distinct_values_by_* still work with the same arguments.

Read the full file on GitHub · 303 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 · 303 lines · 100 tokens per session scan A 29dbe270224b

Subscribe to this mod's changes

dr-anomalies is a skill published in the GitHub repository Datarails/dr-claude-code-plugins-re (3 stars, last pushed 6d ago), licensed MIT. It adds 100 tokens to every session and 5,154 once invoked, about $0.0005 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-31.