Back to Skills

kibana-anomaly-detection

Elastic ML anomaly detection skill — investigation/RCA, score explanation, job operations (create, datafeed, start/stop, results), and troubleshooting (missing docs, memory limits, datafeed health, lifecycle). Operates against Kibana Agent Builder MCP tools (`ad_*`) on `.ml-anomalies-*`, `.ml-config`, `.ml-notifications-*`, `.ml-annotations-*`. Use when answering "what broke?"/"which entity?"/RCA, "why is score high/low?"/renormalization, "datafeed stopped"/"memory limit", or any request to set

549stars45forksUpdated 8/14/2026

Security Assessment

Safe(92/100)
Security Score92/100

About kibana-anomaly-detection

This skill equips an agent to perform end-to-end Elastic ML anomaly detection work against Kibana Agent Builder, exposed through MCP tools prefixed `ad_*` and ES|QL queries over Elastic's machine-learning system indices (`.ml-anomalies-*`, `.ml-config`, `.ml-notifications-*`, `.ml-annotations-*`). It solves the problem of interpreting and operating anomaly detection jobs without deep prior ML expertise: it answers investigation and root-cause questions ("what broke?", "which entity?", blast radius), explains why anomaly scores are high or low (renormalization, model bounds, forecasts), troubleshoots operational issues (missing documents, memory limits, stalled datafeeds, cross-cluster search, lifecycle), and manages jobs and datafeeds (create, configure, start/stop, retrieve results).

The skill is organized around a Mode Selector (Investigate, Explain, Troubleshoot, Manage) that shares a common tool surface, with a documented investigation ordering (Investigate then Explain then Troubleshoot). It ships a large reference library: an anomaly score quick-reference and score bands, RCA ES|QL tool definitions (correlation, blast radius, cross-job entity matching, detector fingerprinting), workflow YAML files for datafeed and job operations, a permissions matrix, and specialized framing guides for security (attack chains, MITRE, exfiltration signals) and observability/SRE (degradation, capacity, deployment regression). It emphasizes running `ad_validate_ml_tool_permissions` as a preflight because missing privileges are the most common cause of misleading empty results.

Target users are SREs, platform engineers, security analysts, and observability practitioners running Elasticsearch machine learning who want a guided, defensive analysis and operations layer. Typical use cases include incident scoping across co-firing jobs, attributing anomalies to deployments, sizing model memory, and suppressing false positives during maintenance windows via calendar events.

FAQ

What platforms and versions does this skill require?

Per its compatibility metadata, it targets Kibana 8.x-9.x with Agent Builder and Workflows, and Elasticsearch 8.x-9.x with machine learning enabled. It operates against the Kibana Agent Builder MCP endpoint at {KIBANA_URL}/api/agent_builder/mcp.

How does the skill decide which approach to take?

It uses a Mode Selector that maps user intent to one of four modes: Investigate (RCA, blast radius, influencers), Explain (score bands, renormalization, forecasts), Troubleshoot (memory limits, datafeed health, lifecycle), and Manage (create jobs, configure datafeeds, retrieve results). When a question spans modes it runs Investigate then Explain then Troubleshoot.

Why might tool calls return empty or misleading results?

The skill notes that missing privileges are the most common cause of false negatives and instructs running ad_validate_ml_tool_permissions first, with a full permissions matrix in references/permissions-matrix.md.

Can it handle security and observability framings specifically?

Yes. It provides dedicated reference guides: references/security-anomaly-expert.md for attack-chain, MITRE, and exfiltration interpretation, and references/observability-anomaly-expert.md for reliability, capacity, and deployment-regression interpretation.

Does it modify data or only read it?

The read path is ES|QL against the ML system indices. It also supports management operations such as creating jobs, configuring datafeeds, reverting model snapshots, and creating calendar events through documented workflows, so it can perform ML configuration changes when asked.

All Files

69 files
references/kibana/tools/esql/ad_ts_model_memory_health.json1.2 KB
View
references/kibana/workflows/ad_discover_jobs_by_datafeed_index.yaml2.1 KB
View
references/kibana/workflows/ad_manage_datafeed.yaml1.0 KB
View
references/kibana/workflows/ad_ts_ccs_diagnostics.yaml0.8 KB
View
references/kibana/workflows/ad_validate_ml_tool_permissions.yaml1.4 KB
View
references/observability-anomaly-expert.md6.7 KB
View
references/security-anomaly-expert.md6.3 KB
View
references/tools.md13.1 KB
View
references/workflow-tools.md21.0 KB
View
package-lock.json0.2 KB
View
references/job-creation-recipes.md7.9 KB
View
references/kibana/tools/esql/ad_get_available_metadata.json1.1 KB
View
references/kibana/tools/esql/ad_get_model_plot.json1.0 KB
View
references/kibana/tools/esql/ad_rca_blast_radius.json1.6 KB
View
references/kibana/tools/esql/ad_rca_multi_job_entities.json1.7 KB
View
references/kibana/tools/esql/ad_ts_bucket_event_gaps.json1.0 KB
View
references/kibana/workflows/ad_create_calendar_event.yaml1.2 KB
View
references/kibana/workflows/ad_open_job.yaml0.6 KB
View
references/kibana/workflows/ad_update_datafeed_query_delay.yaml1.2 KB
View
references/kibana/workflows/ad_wf_troubleshoot_anomaly_score.yaml4.7 KB
View
references/permissions-matrix.md10.7 KB
View
scripts/agent_builder_constants.json0.8 KB
View
references/anomaly-detection-functions.md11.7 KB
View
references/kibana/agent/anomaly_explainer.json0.3 KB
View
references/kibana/tools/esql/ad_get_forecast_results.json0.6 KB
View
references/kibana/tools/esql/ad_query_anomaly_records.json1.7 KB
View
references/kibana/tools/esql/ad_rca_cross_job_entity_match.json2.0 KB
View
references/kibana/tools/esql/ad_rca_source_evidence.json1.3 KB
View
references/kibana/tools/esql/ad_ts_ingest_latency_estimate.json1.5 KB
View
references/kibana/workflows/ad_get_log_categories.yaml1.0 KB
View
references/kibana/workflows/ad_search_log_category_examples.yaml1.8 KB
View
references/kibana/workflows/ad_validate_job_spec.yaml0.9 KB
View
references/kibana/workflows/ad_wf_ts_field_cardinality.yaml2.2 KB
View
references/score-reference.md6.8 KB
View
references/worked-example.md8.2 KB
View
package.json0.5 KB
View
references/kibana/agent/anomaly_detective.json0.5 KB
View
references/kibana/tools/esql/ad_get_categories.json0.6 KB
View
references/kibana/tools/esql/ad_get_model_snapshots.json0.6 KB
View
references/kibana/tools/esql/ad_rca_correlation.json1.6 KB
View
references/kibana/tools/esql/ad_rca_score_reassessment.json1.7 KB
View
references/kibana/tools/esql/ad_ts_delayed_data_annotations.json0.7 KB
View
references/kibana/workflows/ad_create_job.yaml1.2 KB
View
references/kibana/workflows/ad_estimate_memory_requirement.yaml2.6 KB
View
references/kibana/workflows/ad_get_job_datafeed_config.yaml1.0 KB
View
references/kibana/workflows/ad_revert_model_snapshot.yaml1.5 KB
View
references/kibana/workflows/ad_update_model_memory_limit.yaml1.8 KB
View
references/kibana/workflows/ad_wf_troubleshoot_query_delay.yaml4.5 KB
View
references/README.md5.9 KB
View
references/troubleshoot-anomaly-tool-reference.md13.8 KB
View
SKILL.md27.4 KB
View
references/investigate-anomaly-esql-tools.md13.4 KB
View
references/kibana/tools/esql/ad_discover_related_jobs.json1.3 KB
View
references/kibana/tools/esql/ad_get_jobs.json1.0 KB
View
references/kibana/tools/esql/ad_query_influencers.json1.5 KB
View
references/kibana/tools/esql/ad_rca_entity_profile.json1.3 KB
View
references/kibana/tools/esql/ad_search_log_category_examples.json1.3 KB
View
references/anomaly-detection-openapi-spec-discover.md2.4 KB
View
references/kibana/agent/anomaly_maintainer.json0.8 KB
View
references/kibana/tools/esql/ad_get_job_messages.json0.8 KB
View
references/kibana/tools/esql/ad_query_anomaly_timeline.json1.5 KB
View
references/kibana/tools/esql/ad_rca_detector_fingerprint.json1.4 KB
View
references/kibana/workflows/ad_create_datafeed.yaml1.0 KB
View
references/kibana/workflows/ad_get_calendar_events.yaml0.6 KB
View
references/kibana/workflows/ad_preview_datafeed_with_latency.yaml0.8 KB
View
references/kibana/workflows/ad_update_delayed_data_check_config.yaml1.6 KB
View
references/kibana/workflows/ad_wf_troubleshoot_memory_limit.yaml5.8 KB
View
references/protocols/investigation.md7.0 KB
View
scripts/kibana-agent-builder.mjs48.0 KB
View

Install kibana-anomaly-detection

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill