domain-anomaly-detection

domain-anomaly-detection is a skill for Claude Code from mxslr/mlcraft. It costs 119 tokens per session (479 once invoked), scanned A, original, MIT.

A guide for finding unusual or unexpected examples in images, sensor readings, time series, tables, and networks. In many cases, the model learns what normal data looks like and flags large deviations.

In plain words
What is it for?
Use it for industrial defects, equipment monitoring, fraud or intrusion detection, unusual time-series behavior, and out-of-distribution detection.
Why use it?
It helps handle problems where abnormal examples are rare or poorly labeled and avoids misleading accuracy measurements on highly unbalanced data.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the mlcraft plugin — 23 skills, 1 command, 1 agent shipped together

Good fit Use it for industrial defects, equipment monitoring, fraud or intrusion detection, unusual time-series behavior, and out-of-distribution detection.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mxslr/mlcraft/domain-anomaly-detection
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 mxslr/mlcraft --skill domain-anomaly-detection
Clone the repo
git clone --depth 1 https://github.com/mxslr/mlcraft

Made for: Claude Code.

Or install mlcraft, the plugin that ships this one along with the rest of its 23 skills, 1 command, 1 agent.

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 domain-anomaly-detection

README.md
[![agentmods](https://agentmods.dev/badge/skills/mxslr/mlcraft/domain-anomaly-detection.svg)](https://agentmods.dev/skills/mxslr/mlcraft/domain-anomaly-detection)
Your own site
<a href="https://agentmods.dev/skills/mxslr/mlcraft/domain-anomaly-detection"><img src="https://agentmods.dev/badge/skills/mxslr/mlcraft/domain-anomaly-detection.svg" alt="Measured on agentmods" height="20"></a>
Per session 119 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 479 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.
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.00119 $0.00479
Opus 5 $0.00060 $0.00239
Sonnet 5 $0.00024 $0.00096
Haiku 4.5 $0.00012 $0.00048

Measured 7d ago against content hash 2d76e3c81113, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

domain-anomaly-detection 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 7d 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/domain-anomaly-detection/SKILL.md · 24 lines

What it actually says

Anomaly Detection - Method Selection

Anomalies are rare and often unlabeled, so most setups are one-class: train on normal data, then flag deviations. Route by data type.

Decision table

Data type Recommended (recent) Notes
Images or industrial defects PatchCore (2022) or EfficientAD (WACV 2024) few or no anomalies at train time. MVTec-style. Metric is image and pixel AUROC, and AUPRO.
Time-series or sensors reconstruction or forecasting residual with a threshold; Anomaly Transformer as a deep option read the metric caveat below.
Tabular (fraud, intrusion) Isolation Forest and LOF baselines; deep methods (deep SVDD, autoencoder) when data is large metric is AUROC and PR-AUC.
Graph or network one-class or reconstruction-based GNN fraud rings, intrusion.

Cross-cutting practice

  • Set the decision threshold on a validation set of known-normal data (plus a few anomalies if available), not on test.
  • Imbalance is extreme, so use PR-AUC or AUROC, not accuracy.
  • IMPORTANT time-series caveat: the common "point-adjustment" evaluation massively inflates F1 and is misleading. Report PR-AUC, range or affiliation-based metrics, or VUS, and state clearly whether point-adjustment was used.
  • Explainability: reconstruction-error maps (images and time-series), SHAP or feature attribution (tabular), and which timestamp or region triggered the alert.
  • Improve results: use accuracy-improvement-loop; evaluate with rigorous-evaluation.
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. 7d ago First seen · 24 lines · 119 tokens per session scan A 2d76e3c81113

Subscribe to this mod's changes

domain-anomaly-detection is a skill published in the GitHub repository mxslr/mlcraft (8 stars, last pushed 2mo ago), licensed MIT. It adds 119 tokens to every session and 479 once invoked, about $0.0006 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.

Related

Other skills, from other repositories

chief-revenue-officer

Owns the revenue engine end to end: sales, monetization, pricing, customer success, retention, and partnerships. Use this for pricing and packaging decisions, sales strategy and coverage, forecast and pipeline health, churn and expansion, partner and channel strategy, or when marketing-sourced demand is not…

cbrock84/headcount · 80 tokens

chief-strategy-officer

Owns where the business plays and how it wins over a multi-year horizon — portfolio choices, corporate development, strategic partnerships, and planning under uncertainty. Use this for a decision about which markets or businesses to be in, whether to build, buy, or partner, how to allocate capital across business…

cbrock84/headcount · 93 tokens

support-operations

Designs and runs the support function — channels, queues, routing, staffing, service levels, quality, and the metrics that show whether it is working. Use this to set up or fix support operations, choose channels, size a team, set or renegotiate service levels, reduce cost per contact, diagnose long queues or poor…

cbrock84/headcount · 77 tokens

seo-strategy

Audits and improves organic search performance — technical health, site architecture, internal linking, structured data, and the content decisions that determine what can rank. Use this to run an SEO audit, diagnose why pages are not ranking or were deindexed, plan a site's URL and navigation structure, add structured…

cbrock84/headcount · 74 tokens

financial-statement-analysis

Reads a set of financial statements and establishes what changed and why — fluctuation analysis against prior period and against budget, profitability, liquidity, solvency and efficiency ratios, benchmarking, and the non-GAAP measures presented alongside them. Use this to interpret results, review a counterparty's or…

cbrock84/headcount · 93 tokens

youtube-producer

Plans, packages, and scripts long-form video for retention and channel growth — idea selection, titles and thumbnails, script structure, and diagnosing why a video or channel underperforms. Use this for video ideas, packaging, scripting, a retention teardown, or channel strategy — including when someone describes a…

cbrock84/headcount · 86 tokens