elasticsearch-anomaly-detection-explainer
БесплатноБез исполняемых скриптовНе проверенExplain Elasticsearch ML anomaly detection scores, model behavior, and result interpretation. Use when the user asks why a score is high or low, how the model…
от elastic★ 615 звёзд на GitHubОб этом скилле
Anomaly Detection Score Explainer
Explain anomaly scores, model behavior, and why results look the way they do. Use the ML REST API for job config and
the standard _search API against .ml-anomalies-* for results — no ES|QL, fully compatible with Elastic
Serverless. For job lifecycle (create, start, stop), use the elasticsearch-anomaly-detection skill.
Environment Configuration
This skill executes Elasticsearch operations through the elastic CLI. If the
elastic CLI is not installed, tell the user what it is needed for. Do
not guess credentials, call the HTTP API directly, or attempt other workarounds.
This skill references operations in HTTP-shorthand form (e.g., GET /, GET /_cat/indices, GET /{index}/_mapping,
GET /{index}/_settings/index.mode, POST /_query). The Operations table at the end of this document
maps each shorthand to the equivalent elastic CLI command — always use the CLI rather than calling the HTTP API
directly.
Prerequisite: ML anomaly detection requires a Platinum-equivalent license on self-managed clusters. Serverless projects include ML. The caller needs
monitor_mlto read job config and anomaly results.Serverless note: The
_ml/.../results/*REST endpoints return HTTP 410 in Elastic Serverless. Always usePOST /.ml-anomalies-*/_searchfor result queries instead — fully supported everywhere this skill runs.
Process
Decide whether to fetch data or interpret what the user supplied. If the user embeds an anomaly record (or job config) in the prompt, interpret it directly using the domain knowledge below — do not call APIs to re-fetch fields already present. If the job ID, time range, or record is missing, retrieve it from the cluster.
The decision: proceed with judgment-only explanation when the record contains
record_score,initial_record_score,actual,typical, andfunction; otherwise fetch the missing pieces before explaining.Verify connectivity when calling the cluster. Call
GET /. If the call fails, stop and surface the connection error — do not guess endpoints or credentials.Resolve the job ID and load config. When the job ID is unknown, call
GET /_ml/anomaly_detectorsto list candidates. CallGET /_ml/anomaly_detectors/{job_id}for fullanalysis_config(bucket_span, detectors, custom_rules, use_null, model_plot_config) andGET /_ml/anomaly_detectors/{job_id}/_statsforstate,model_size_stats.memory_status, and data counts.The decision: confirm detector function and direction match the user's question before interpreting scores. A
low_countjob legitimately fires on drops; ahigh_countjob does not.Retrieve anomaly records for the time range. Call
POST /.ml-anomalies-*/_searchwithresult_type: record, the job ID, a timestamp range, and optionalrecord_scorefilter. Readinitial_record_score,record_score,actual,typical,function,multi_bucket_impact, andanomaly_score_explanation.Always show both
initial_record_scoreandrecord_score. The gap is the renormalization story.Classify the score pattern before speculating on causes.
initial_record_score>>record_score— Renormalization. A later, more extreme anomaly rescale this record downward. This is expected, healthy model behavior — not a broken model or reason to distrust the detection. Useinitial_record_scorefor alerting severity; show both scores and explain the gap explicitly.initial_record_score==record_score— No renormalization has occurred since detection.actual<<typicalwithlow_count,count, orlow_mean— Absence / drop anomaly. A high score is legitimate — the job detected an outage, pipeline stall, or service failure. This is not a false positive. Recommend incident investigation, not score tuning.actual>>typicalwithhigh_countorhigh_mean— Spike anomaly; confirm withsingle_bucket_impact.
Only cite
anomaly_score_explanationfactors present in the record. Ifhigh_variance_penaltyisfalse, do not blame variance. If a factor is absent, note that it was not returned — do not invent it.Quantify renormalization across the job (optional). Re-query
POST /.ml-anomalies-*/_searchfor records in the time range sorted bytimestampascending. Computescore_drift = initial_record_score − record_scoreper record and filter to|score_drift| ≥ 20. Large negative drift (initial >> record) confirms renormalization after a more extreme anomaly appeared later.Add context when the user asks "what caused this?" or "why so low/high?"
- Model bounds — If
model_plot_config.enabledis true, callPOST /.ml-anomalies-*/_searchwith `re
- Model bounds — If
Установить elasticsearch-anomaly-detection-explainer в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл elasticsearch-anomaly-detection-explainer?
Explain Elasticsearch ML anomaly detection scores, model behavior, and result interpretation. Use when the user asks why a score is high or low, how the model learns, what the numbers mean, or how to troubleshoot unexpected anomaly scores.
Как установить скилл elasticsearch-anomaly-detection-explainer?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл elasticsearch-anomaly-detection-explainer запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
patterns
Find patterns worth sharing from recent PRs and repo history, both repeats to fix and good practices worth spreading. Use when a champion wants to know what…
от Anthropiccopilot-cli-quickstart
Use this skill when someone wants to learn GitHub Copilot CLI from scratch. Offers interactive step-by-step tutorials with separate Developer and…
от GitHubvardoger-analyze
Use when the user asks to personalize the GitHub Copilot CLI assistant, adapt Copilot to their style, use vardoger, or analyze their Copilot CLI conversation…
от GitHubpolicy-lookup
Find and explain company policies in plain language. Trigger with "what's our PTO policy", "can I work remotely from another country", "how do expenses work"…
от Anthropic