ai-anomaly-detection

ai-anomaly-detection is a skill for Claude Code from GAJETOso/financeskills. It costs 73 tokens per session (757 once invoked), scanned A, original, MIT.

A machine-learning workflow for finding unusual patterns, errors, or possible fraud in large amounts of financial data.

In plain words
What is it for?
Preparing transaction data, detecting unusual individual or grouped activity, scoring records for review, and applying models such as Isolation Forest or Local Outlier Factor.
Why use it?
It can identify suspicious records or groups of records that fixed rules or manual review may overlook.

Skill for Claude Code

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

Part of the finance-skills plugin — 48 skills, 52 commands shipped together

Good fit Preparing transaction data, detecting unusual individual or grouped activity, scoring records for review, and applying models such as Isolation Forest or Local Outlier Factor.

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

Made for: Claude Code.

Or install finance-skills, the plugin that ships this one along with the rest of its 48 skills, 52 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 ai-anomaly-detection

README.md
[![agentmods](https://agentmods.dev/badge/skills/gajetoso/financeskills/ai-anomaly-detection/github.svg)](https://agentmods.dev/skills/gajetoso/financeskills/ai-anomaly-detection)
Your own site
<a href="https://agentmods.dev/skills/gajetoso/financeskills/ai-anomaly-detection"><img src="https://agentmods.dev/badge/skills/gajetoso/financeskills/ai-anomaly-detection/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 ai-anomaly-detection

Your own site · 80×15
<a href="https://agentmods.dev/skills/gajetoso/financeskills/ai-anomaly-detection"><img src="https://agentmods.dev/badge/skills/gajetoso/financeskills/ai-anomaly-detection.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 757 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.00073 $0.00757
Opus 5 $0.00036 $0.00378
Sonnet 5 $0.00015 $0.00151
Haiku 4.5 $0.00007 $0.00076

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

Security

Grade A, and why

ai-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 12d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/calculate.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/ai-anomaly-detection/SKILL.md · 85 lines

How it starts

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

AI Anomaly Detection

You are an AI Financial Systems Engineer. Your goal is to deploy machine learning models to identify "needles in the haystack"—anomalies that human-coded rules might miss.

Initial Assessment

  1. Data Volume & Velocity

    • How many transactions are we analyzing? (e.g., 10,000 vs 10,000,000).
    • Is the data structured (CSV/SQL) or semi-structured (JSON logs)?
  2. Anomaly Definition

    • Are we looking for "Point Anomalies" (one weird transaction)?
    • "Contextual Anomalies" (weird for this specific user/time)?
    • "Collective Anomalies" (a series of transactions that are weird together)?

AI Framework

Technical Limitation

LLMs are not ML Models. While LLMs (like Claude/GPT) can reason about small sets of anomalies, for millions of rows, you should use specialized Python libraries (Scikit-Learn, PyOD). This skill provides the logic and code for those implementations.

Priority Order

  1. Feature Engineering (Creating inputs like 'time_since_last_txn', 'distance_from_home').
  2. Unsupervised Learning (Isolation Forest, Local Outlier Factor).
  3. Cluster Analysis (K-Means to identify unusual spending groups).
  4. Scoring & Flagging (Assigning a "Risk Score" to every row).

Technical AI Steps

1. Isolation Forest Implementation

  • Use the IsolationForest algorithm to isolate observations by randomly selecting a feature and a split value.
  • Anomalies are the points that require fewer splits to isolate.

2. Autoencoder Analysis (Advanced)

  • Train a neural network to compress and reconstruct "normal" data.
  • High "Reconstruction Error" identifies anomalies that don't fit the normal pattern.

3. Feature Scaling

  • Apply StandardScaler or MinMaxScaler to ensure transaction amounts don't overwhelm other features (like frequency).

Output Format

AI Audit Report Structure

Model Performance

  • Anomaly rate detected (e.g., 0.5% of total data).
  • Top features driving the anomaly score.

Read the full file on GitHub · 85 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 12d ago First seen · 85 lines · 73 tokens per session scan A dc4a97fed808

Subscribe to this mod's changes

ai-anomaly-detection is a skill published in the GitHub repository GAJETOso/financeskills (20 stars, last pushed 11d ago), licensed MIT. It adds 73 tokens to every session and 757 once invoked, about $0.0004 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

edgartools

Python library for accessing, analyzing, and extracting data from SEC EDGAR filings. Use when working with SEC filings, financial statements (income statement, balance sheet, cash flow), XBRL financial data, insider trading (Form 4), institutional holdings (13F), company financials, annual/quarterly reports (10-K…

foryourhealth111-pixel/Vibe-Skills · 110 tokens

jangbu-tag

A bookkeeping tool that assigns Korean business transactions to accounting categories using rules first, with masked data sent for further classification only when rules cannot decide.

kimlawtech/korean-jangbu-for · 80 tokens

accountant-expert

Expert-level accounting, tax, financial reporting, and accounting systems. Use when the user mentions accounting, tax, financial reporting, GAAP, or IFRS, or when the task involves Accounting Principles, Financial Statements, Tax & Compliance, or Accounting Systems.

personamanagmentlayer/pcl · 56 tokens

context-manager

Gestion avancée du contexte pour agents IA — fenêtre de contexte, compression, RAG dynamique, sliding window, prompt caching. Se déclenche avec "context window", "contexte agent", "token limit", "context management", "context overflow", "trop de contexte", "agent context", "context stuffing", "context compression".…

khalilbenaz/claude-skills-collection · 84 tokens

data-analyst-agent

Création d'agents d'analyse de données qui explorent, visualisent et expliquent les données. Se déclenche avec "data analyst agent", "agent analyse données", "agent data", "agent qui analyse", "automated analysis", "data exploration agent", "agent SQL", "agent pandas". Also triggers on "agent that analyzes data"…

khalilbenaz/claude-skills-collection · 81 tokens

mcp-server-builder

Création de serveurs MCP (Model Context Protocol) pour exposer des outils, ressources et prompts aux LLMs. Se déclenche avec "MCP", "Model Context Protocol", "MCP server", "MCP tool", "MCP resource", "serveur MCP", "connecter Claude à", "exposer une API à Claude", "claude desktop config". Also triggers on "build an…

khalilbenaz/claude-skills-collection · 105 tokens