ml-analyst

ml-analyst is an agent for Claude Code from ChrisGVE/localdata-mcp. It costs 40 tokens per session (1,348 once invoked), scanned A, original, Apache-2.0.

An agent for finding patterns in datasets with machine-learning methods. It covers grouping similar records, spotting unusual records, simplifying many data fields, and predicting numeric values.

In plain words
What is it for?
Use it to discover clusters, detect anomalies, reduce dimensions for visualization or feature creation, and build validated regression models.
Why use it?
It helps choose an analysis method that fits the data instead of applying one algorithm without checking its assumptions or results.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the localdata-mcp plugin — 18 skills, 11 agents, 1 MCP server shipped together

Good fit Use it to discover clusters, detect anomalies, reduce dimensions for visualization or feature creation, and build validated regression models.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/chrisgve/localdata-mcp/ml-analyst
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.

Clone the repo
git clone --depth 1 https://github.com/ChrisGVE/localdata-mcp

Made for: Claude Code.

Or install localdata-mcp, the plugin that ships this one along with the rest of its 18 skills, 11 agents, 1 MCP server.

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 ml-analyst

README.md
[![agentmods](https://agentmods.dev/badge/agents/chrisgve/localdata-mcp/ml-analyst/github.svg)](https://agentmods.dev/agents/chrisgve/localdata-mcp/ml-analyst)
Your own site
<a href="https://agentmods.dev/agents/chrisgve/localdata-mcp/ml-analyst"><img src="https://agentmods.dev/badge/agents/chrisgve/localdata-mcp/ml-analyst/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 ml-analyst

Your own site · 80×15
<a href="https://agentmods.dev/agents/chrisgve/localdata-mcp/ml-analyst"><img src="https://agentmods.dev/badge/agents/chrisgve/localdata-mcp/ml-analyst.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,348 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.00040 $0.01348
Opus 5 $0.00020 $0.00674
Sonnet 5 $0.00008 $0.00270
Haiku 4.5 $0.00004 $0.00135

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

Security

Grade A, and why

ml-analyst 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 8d 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.

agents/ml-analyst.md · 87 lines

How it starts

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

You are an applied machine learning analyst. Your job is to discover structure in data through clustering, detect anomalies, reduce dimensionality for visualization or feature engineering, and build regression models with proper validation. You select methods based on data characteristics, not habit.

Decision Framework

Clustering

  • K-Means: use when clusters are roughly spherical and you have a target k or can evaluate with the elbow method. Fast, scales well. Sensitive to outliers.
  • DBSCAN: use when clusters have irregular shapes or you expect noise points. Does not require specifying k. Sensitive to the epsilon parameter -- use the k-distance graph to set it.
  • Hierarchical: use when you need a dendrogram to understand cluster relationships at multiple granularities, or when the number of clusters is unknown and the dataset is small enough (< 10k rows).

Always evaluate clusters with silhouette score and Davies-Bouldin index. Report both. High silhouette with low DB index indicates well-separated, compact clusters.

Anomaly Detection

  • Isolation Forest: good general-purpose detector. Works well in moderate dimensions (< 50 features). Fast on large datasets.
  • Local Outlier Factor (LOF): better when anomalies are defined by local density rather than global isolation. Preferred for datasets where normal behavior varies across regions.

Report the contamination rate assumption and how it affects results. Always return the anomaly scores, not just binary labels.

Dimensionality Reduction

  • PCA: use for feature engineering, preprocessing, or when you need linear interpretability (loadings map back to original features). Always report explained variance ratio.
  • t-SNE: use for 2D/3D visualization of high-dimensional data. Not suitable for downstream modeling -- distances in the embedding are not globally meaningful.
  • UMAP: use when you need both visualization and a degree of global structure preservation. Faster than t-SNE on large datasets.

Read the full file on GitHub · 87 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. 8d ago First seen · 87 lines · 40 tokens per session scan A 489009593e48

Subscribe to this mod's changes

ml-analyst is an agent published in the GitHub repository ChrisGVE/localdata-mcp (4 stars, last pushed 25d ago), licensed Apache-2.0. It adds 40 tokens to every session and 1,348 once invoked, about $0.0002 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 agents, from other repositories

report-generator

Performs blind comparison of repeated prompt-execution pairs, then maps observed differences to optimization findings after identity reveal. Use when original and optimized prompt trials are available.

shinpr/rashomon · 35 tokens

prompts-guide

Interactive guide for using prompt-factory skill to generate mega-prompts. Helps choose from 69 presets or create custom prompts, select formats (XML/Claude/ChatGPT/Gemini), and explains usage. Use when user wants to generate production-ready prompts for any LLM.

alirezarezvani/claude-code-skill-factory · 60 tokens

data-engineer

Expert in data engineering, ETL/ELT pipelines, Medallion architecture (Bronze/Silver/Gold), Databricks, PySpark, and orchestration. Triggers on pipeline, ingestion, spark, databricks, medallion, etl, elt, orchestration, airflow, dagster.

luccapinto/agentic-data-kit · 69 tokens

ai-engineer

An AI engineer who builds production applications powered by LLMs — designing RAG pipelines, agent architectures, tool use patterns, and evaluation frameworks. Distinct from ML engineer (who trains models) — focuses on integrating and orchestrating AI capabilities. Use for LLM application architecture, RAG design…

The-AI-Directory-Company/agents-and-skills · 72 tokens

prompt-engineer

A prompt engineer who designs, tests, and optimizes instructions for large language models — building evaluation frameworks, implementing chain-of-thought reasoning, and creating guardrails for reliable AI outputs. Use for prompt design, LLM evaluation, system prompt authoring, and AI output quality.

The-AI-Directory-Company/agents-and-skills · 60 tokens

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens