/elastic-kibana:kibana-agent-builderfrom elastic-kibana
Creates, inspects, updates, deletes, and tests Kibana Agent Builder agents and custom tools via the Elastic CLI. Useful for managing LLM agents grounded in Elasticsearch data.
Ships in elastic-kibana. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Create, inspect, update, delete, and test Agent Builder tools and agents. Ground LLM responses in Elasticsearch data through scoped search tools, parameterized ES|QL, and workflow integrations.
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.
Agent Builder exposes three distinct resource kinds — do not conflate them:
| Kind | Purpose | Typical API |
|---|---|---|
| Tool | Reusable function an agent invokes to retrieve or act on data (index_search, esql, workflow) | POST kbn:/api/agent_builder/tools |
| Agent | LLM entity with instructions and a curated toolset | POST kbn:/api/agent_builder/agents |
| Chat / conversation | Ephemeral messaging session with an existing agent | POST kbn:/api/agent_builder/converse/async |
Creating a tool does not create an agent. Listing or chatting with an agent does not create a tool. When the user asks to "create an agent" or "create a tool," identify which resource they mean before calling a write API.
Built-in tools use the platform.core.* prefix (for example platform.core.search). Custom tools and agents are
user-defined. Read architecture-guide.md for built-in tool inventory, context
engineering, and security notes.
Classify the task. Decide whether the user needs a tool, an agent, or chat with an existing agent. If they ask what already exists ("what agents are there?", "list agents"), treat the request as read-only discovery — answer from live data before proposing any create, update, or delete.
Discover existing resources before any write. When creating or updating:
GET kbn:/api/agent_builder/tools to list available tools (built-in and custom). Do not invent tool IDs.GET kbn:/api/agent_builder/agents to list existing agents and avoid duplicate IDs or names.When the user only asks what agents exist, stop after GET kbn:/api/agent_builder/agents. Enumerate each agent's id
and name. If the list is empty, say so plainly — do not fabricate agents. Only proceed to creation when the user
explicitly asks to create one and you have confirmed the target id is unused.
Choose the tool type (for tool tasks). Match intent to the narrowest tool type:
index_search with a specific pattern (for example
customer-feedback-*), never * or all-indices scope unless the user explicitly requires it.esql with ?param placeholders and a params
object (use {} when there are no parameters).workflow referencing an existing workflow id.For ES|QL syntax and query design, follow the elasticsearch-esql skill. For workflow YAML, follow the
kibana-workflows skill.
Build the tool payload. Required fields: id, type, description, configuration. Optional: tags.
API constraints (violations return 400):
id, type, description, configuration, tags. name is not valid on tools."pattern", not "index"."params" even when empty: "params": {}.type and description — not default or optional. Hard-code defaults in the query.description, configuration, and tags. id and type are immutable.Index search example (scoped pattern):
{
"id": "customer_feedback_search",
"type": "index_search",
"description": "Searches customer feedback and support tickets in the customer-feedback indices.",
"configuration": {
"pattern": "customer-feedback-*"
}
}
ES|QL example (parameterized, with LIMIT):
{
"id": "feedback_sentiment_trend",
"type": "esql",
"description": "Returns positive vs negative feedback counts by product category over a lookback window.",
"configuration": {
"query": "FROM customer-feedback-* | WHERE @timestamp >= NOW() - ?lookback_days::integer * 1d | STATS positive = COUNT(*) WHERE sentiment == \"positive\", negative = COUNT(*) WHERE sentiment == \"negative\" BY product_category | SORT negative DESC | LIMIT 20",
"params": {
"lookback_days": {
"type": "integer",
"description": "Number of days to look back, e.g. 7, 30, 90"
}
}
}
}
Create and verify the tool. Call POST kbn:/api/agent_builder/tools with the payload. Confirm success by calling
GET kbn:/api/agent_builder/tools/{toolId} and reporting the created id, type, description, and configuration back
to the user — do not claim success without a live API response.
Optionally validate ES|QL tools with POST kbn:/api/agent_builder/tools/_execute, passing tool_id and
tool_params. Always include | LIMIT N in ES|QL queries to control token use.
Build the agent payload (for agent tasks). Required fields: id, name, description, configuration.
Configuration must include instructions and a tools array with tool_ids drawn from Step 2 — only IDs returned
by GET kbn:/api/agent_builder/tools.
Derive a stable id from the name (lowercase, hyphens, alphanumeric). Check Step 2's agent list for conflicts before
posting.
{
"id": "customer-feedback-agent",
"name": "Customer Feedback Analyst",
"description": "Analyzes customer sentiment and feedback trends.",
"configuration": {
"instructions": "Always use tools to retrieve data. Never answer data questions from memory.",
"tools": [
{
"tool_ids": ["customer_feedback_search", "platform.core.search"]
}
]
}
}
Agent update constraints: PUT accepts only description, configuration, and tags (plus avatar/labels when
applicable). Do not send immutable fields like id, name, or type on update — they cause 400 errors.
Create and verify the agent. Call POST kbn:/api/agent_builder/agents. Confirm with
GET kbn:/api/agent_builder/agents or GET kbn:/api/agent_builder/agents/{agentId}. Report the live response.
Update or delete (when requested). Confirm destructive actions with the user first.
PUT kbn:/api/agent_builder/tools/{toolId}DELETE kbn:/api/agent_builder/tools/{toolId}PUT kbn:/api/agent_builder/agents/{agentId}DELETE kbn:/api/agent_builder/agents/{agentId}Chat (when requested). Chat is not agent or tool creation. Use POST kbn:/api/agent_builder/converse/async with
an existing agent_id and user input. Expect multi-step reasoning and tool calls; allow sufficient time for
streaming completion.
customer-feedback-* over *. Broad patterns increase noise, token cost, and
RBAC surface area.User: "Create a custom Agent Builder tool that searches the customer-feedback-* index. Use the tool id 'eval-feedback-search'."
eval-feedback-search does not already exist.index_search scoped to customer-feedback-* (not *).configuration.pattern.User: "I want to create a new agent in Kibana Agent Builder. What agents already exist?"
GET kbn:/api/agent_builder/agents — read-only.User: "Create a sales-helper agent using the esql-sales-data tool."
esql-sales-data exists.| HTTP API (shorthand) | elastic CLI command |
|---|---|
GET kbn:/api/agent_builder/tools | elastic kb agent-builder get-agent-builder-tools |
POST kbn:/api/agent_builder/tools | elastic kb agent-builder post-agent-builder-tools --id '<id>' --type '<type>' --description '<desc>' --configuration '<json>' |
GET kbn:/api/agent_builder/tools/{toolId} | elastic kb agent-builder get-agent-builder-tools-toolid --tool-id '<toolId>' |
PUT kbn:/api/agent_builder/tools/{toolId} | elastic kb agent-builder put-agent-builder-tools-toolid --tool-id '<toolId>' [--description '<desc>'] [--configuration '<json>'] |
DELETE kbn:/api/agent_builder/tools/{toolId} | elastic kb agent-builder delete-agent-builder-tools-toolid --tool-id '<toolId>' [--force] |
POST kbn:/api/agent_builder/tools/_execute | elastic kb agent-builder post-agent-builder-tools-execute --tool-id '<toolId>' --tool-params '<json>' |
GET kbn:/api/agent_builder/agents | elastic kb agent-builder get-agent-builder-agents |
POST kbn:/api/agent_builder/agents | elastic kb agent-builder post-agent-builder-agents --id '<id>' --name '<name>' --description '<desc>' --configuration '<json>' |
GET kbn:/api/agent_builder/agents/{agentId} | elastic kb agent-builder get-agent-builder-agents-id --id '<agentId>' |
PUT kbn:/api/agent_builder/agents/{agentId} | elastic kb agent-builder put-agent-builder-agents-id --id '<agentId>' [--description '<desc>'] [--configuration '<json>'] |
DELETE kbn:/api/agent_builder/agents/{agentId} | elastic kb agent-builder delete-agent-builder-agents-id --id '<agentId>' |
POST kbn:/api/agent_builder/converse/async | elastic kb agent-builder post-agent-builder-converse-async --agent-id '<agentId>' --input '<message>' |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub elastic/agent-skills --plugin elastic-kibana7 skills in this plugin
/kibana-alerting-rulesCreate and manage Kibana alerting rules and the action policies that notify on their alerts, for both Universal Alerting and classic alerting. Use when the user wants to be alerted or notified about conditions in their data, change where or how often alerts notify (including snoozing notifications), edit, enable, disable, or delete existing rules or action policies, or list existing alerting, including managing rules with Terraform. Not for Security detection rules.
/kibana-anomaly-detectionElastic ML anomaly detection — investigation/RCA, score explanation, job lifecycle troubleshooting, and job operations. Use when answering "what broke?"/"which entity?"/RCA, "why is score high/low?"/renormalization, "datafeed stopped"/"memory limit"/hard_limit, or configuring ML anomaly detection jobs. Reads results from `.ml-anomalies-*` and job state from ML REST APIs.
/kibana-casesManage investigation and incident cases across Elastic Security, Observability, and Stack Management — create, search, update, and enrich cases with comments, alerts, events, and observables (IOCs). Use when tracking incidents, correlating alerts to a case, adding investigation notes, updating status or severity, or managing triage output.
/kibana-context-engineQuery Elastic Context Engine AI Indices, and the Knowledge Indicators (KIs) they store. Use when asked to search, explore, count, or answer questions from an AI Index / KI / Context Engine knowledge index, and when writing the ES|QL that queries one.
/kibana-dashboardsCreate and manage Kibana Dashboards and Lens visualizations. Use when you need to define dashboards and visualizations declaratively, version control them, automate their deployment, or improve layout, sections, controls, or chart design.
/kibana-workflowsAuthor, validate, test, run, and inspect Elastic Workflow YAML definitions. Use when the user wants to turn natural language into a Kibana workflow, fix workflow YAML, understand triggers or steps, or run a quick test loop against a real Kibana.
2 plugins ship this exact skill · first indexed Sep 6, 2026
Other plugins' skills for the same job