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.
npx skills add LGDiMaggio/predictive-maintenance-mcp --skill anomaly-detectiongit clone --depth 1 https://github.com/LGDiMaggio/predictive-maintenance-mcpWrote 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.
[](https://agentmods.dev/skills/lgdimaggio/predictive-maintenance-mcp/anomaly-detection)<a href="https://agentmods.dev/skills/lgdimaggio/predictive-maintenance-mcp/anomaly-detection"><img src="https://agentmods.dev/badge/skills/lgdimaggio/predictive-maintenance-mcp/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.
<a href="https://agentmods.dev/skills/lgdimaggio/predictive-maintenance-mcp/anomaly-detection"><img src="https://agentmods.dev/badge/skills/lgdimaggio/predictive-maintenance-mcp/anomaly-detection.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00105 | $0.01269 |
| Opus 5.5 | $0.00042 | $0.00508 |
| Sonnet 5.5 | $0.00021 | $0.00254 |
| Haiku 4.5 | $0.00011 | $0.00127 |
Grade A, and why
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 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.
How it starts
The opening of the file, as written. The whole thing — 125 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Anomaly Detection
Train and use machine learning models to detect anomalous vibration patterns. Supports OneClassSVM and LocalOutlierFactor novelty detection with PCA visualization. The models flag statistical outliers for the engineer to investigate — they supplement, and never replace, physics-based diagnosis.
Prerequisite: The predictive-maintenance-mcp MCP server must be connected.
Workflow
Training a New Model
Step 1 — Prepare the Healthy Baseline
Gather signals representing NORMAL machine operation. Check what is loaded
with list_signals(scope="memory"); browse files with
list_signals(scope="disk"). Load the training set in one atomic batch:
Call load_signal(filepath=["real_train/baseline_1.csv", "real_train/baseline_2.csv"], signal_unit="g")
The batch is fail-fast: if any file is missing or an id collides, ONE error
names the offending entries and nothing is loaded. For raw binary files
(.bin/.raw/.dat), also declare sample_format and sampling_rate
(broadcast to the whole batch), or provide companion <stem>_metadata.json
files — see the signal-management skill.
Ask the user:
- Which signals represent normal/healthy operation?
- Which algorithm? (
"OneClassSVM"recommended for small datasets,"LocalOutlierFactor"for larger ones)
Step 2 — Screen the Baseline Quality
For each baseline signal, call analyze_statistics(signal_id="<id>").
Signals with very high kurtosis or crest factor may already contain damage
and should be excluded from the healthy baseline — confirm with the user.
Step 3 — Train the Model
Call train_anomaly_model(healthy_signal_ids=["real_train_baseline_1", "real_train_baseline_2"], model_type="OneClassSVM", model_name="pump_a_health")
Parameters:
- healthy_signal_ids: signal_ids of the healthy baseline (training data)
- model_type:
"OneClassSVM"or"LocalOutlierFactor" - model_name: name for the saved model files (echoed in the result; pass the same name to predict_anomalies later)
- fault_signal_ids (optional): known-fault signal_ids used to tune the hyperparameters (semi-supervised mode), never to fit the model. The reported fault detection rate comes from the same signals, so it is not a held-out figure
- healthy_validation_ids (optional): held-out healthy signal_ids for the specificity check. Without them, the check runs only when fault_signal_ids are given, on the last 20% of the training windows
- segment_duration / overlap_ratio: feature-extraction segmentation (defaults 0.1 s / 0.5)
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.
- 8d ago Changed · +6 lines 7b71c794a647
- 18d ago Changed · +2 lines · +5 tokens per session 8fc44b96ea47
- 3mo ago First seen · 117 lines · 100 tokens per session scan A eb9a8ec05a42
anomaly-detection is a skill published in the GitHub repository LGDiMaggio/predictive-maintenance-mcp (122 stars, last pushed yesterday), licensed MIT. It adds 105 tokens to every session and 1,269 once invoked, about $0.0004 per session on Opus 5.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.
anomaly-detection compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| anomaly-detectionLGDiMaggio/predictive-maintenance-mcp | Skill | 122 | yesterday | MIT | A | 105 | Claude Code |
| agent-work-verificationWeaverse/.agents | Skill | 1 | 21d ago | MIT | A | 45 | Claude Code |
| pr-merge-gatesWeaverse/.agents | Skill | 1 | 21d ago | MIT | A | 52 | Claude Code |
| debug-logsWeaverse/.agents | Skill | 1 | 21d ago | MIT | A | 42 | Claude Code |
| fix-prWeaverse/.agents | Skill | 1 | 21d ago | MIT | A | 40 | Claude Code |
| shipWeaverse/.agents | Skill | 1 | 21d ago | MIT | A | 43 | Claude Code |
| workWeaverse/.agents | Skill | 1 | 21d ago | MIT | A | 43 | Claude Code |