
kibana-agent-builder
Create and manage Kibana Agent Builder agents and custom tools. Use when asked to create, update, delete, test, or inspect agents or tools in Agent Builder, or when the user wants to understand what agents or tools already exist.
- Installs
- 4K
- Last 24h
- +21
- Trending rank
- #5694
- Security
- Pass
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/elastic/agent-skills --skill kibana-agent-builder- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads kibana-agent-builder automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
Security audits
Independent scans of the skill's instructions and bundled files.
SKILL.md
The instructions your agent reads when the skill is triggered.
Kibana Agent Builder
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.
<!-- begin-partial: preamble -->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.
Resource model
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.
Process
-
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:
- Call
GET kbn:/api/agent_builder/toolsto list available tools (built-in and custom). Do not invent tool IDs. - Call
GET kbn:/api/agent_builder/agentsto 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. - Call
-
Choose the tool type (for tool tasks). Match intent to the narrowest tool type:
- Open-ended search over a known index pattern →
index_searchwith a specific pattern (for examplecustomer-feedback-*), never*or all-indices scope unless the user explicitly requires it. - Fixed analytics, aggregations, or parameterized queries →
esqlwith?paramplaceholders and aparamsobject (use{}when there are no parameters). - Multi-step automation beyond retrieval →
workflowreferencing an existing workflow id.
For ES|QL syntax and query design, follow the
elasticsearch-esqlskill. For workflow YAML, follow thekibana-workflowsskill. - Open-ended search over a known index pattern →
-
Build the tool payload. Required fields:
id,type,description,configuration. Optional:tags.API constraints (violations return 400):
- POST accepts only
id,type,description,configuration,tags.nameis not valid on tools. - Index search configuration uses
"pattern", not"index". - ES|QL tools require
"params"even when empty:"params": {}. - Each param accepts only
typeanddescription— notdefaultoroptional. Hard-code defaults in the query. - PUT on tools accepts only
description,configuration, andtags.idandtypeare 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" } } } } - POST accepts only
-
Create and verify the tool. Call
POST kbn:/api/agent_builder/toolswith the payload. Confirm success by callingGET 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, passingtool_idandtool_params. Always include| LIMIT Nin ES|QL queries to control token use. -
Build the agent payload (for agent tasks). Required fields:
id,name,description,configuration. Configuration must includeinstructionsand atoolsarray withtool_idsdrawn from Step 2 — only IDs returned byGET kbn:/api/agent_builder/tools.Derive a stable
idfrom 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, andtags(plus avatar/labels when applicable). Do not send immutable fields likeid,name, ortypeon update — they cause 400 errors. -
Create and verify the agent. Call
POST kbn:/api/agent_builder/agents. Confirm withGET kbn:/api/agent_builder/agentsorGET kbn:/api/agent_builder/agents/{agentId}. Report the live response. -
Update or delete (when requested). Confirm destructive actions with the user first.
- Update tool:
PUT kbn:/api/agent_builder/tools/{toolId} - Delete tool:
DELETE kbn:/api/agent_builder/tools/{toolId} - Update agent:
PUT kbn:/api/agent_builder/agents/{agentId} - Delete agent:
DELETE kbn:/api/agent_builder/agents/{agentId}
- Update tool:
-
Chat (when requested). Chat is not agent or tool creation. Use
POST kbn:/api/agent_builder/converse/asyncwith an existingagent_idand user input. Expect multi-step reasoning and tool calls; allow sufficient time for streaming completion.
Guidelines
- Discover before create. Always list agents (and tools when relevant) before creating resources. When asked "what agents exist?", answer that question first — read-only — even if the user also mentions wanting a new agent later.
- Scope index search narrowly. Prefer
customer-feedback-*over*. Broad patterns increase noise, token cost, and RBAC surface area. - Write descriptive tool descriptions. The agent selects tools based on descriptions alone — include when to use each tool and example trigger phrases.
- Minimize toolsets. Every assigned tool adds tokens to the agent system prompt on every turn.
- Validate ES|QL before deployment. Execute the tool after creation when parameters or query shape are non-trivial.
- Use aggregations and KEEP. Prefer summary stats over raw document dumps for analytics questions.
Examples
Create an index search tool (eval pattern)
User: "Create a custom Agent Builder tool that searches the customer-feedback-* index. Use the tool id 'eval-feedback-search'."
- List tools — confirm
eval-feedback-searchdoes not already exist. - Choose
index_searchscoped tocustomer-feedback-*(not*). - POST the tool with id, description, and
configuration.pattern. - GET the tool by id and confirm creation to the user.
Answer "what agents already exist?" before creating
User: "I want to create a new agent in Kibana Agent Builder. What agents already exist?"
- Call
GET kbn:/api/agent_builder/agents— read-only. - Enumerate existing agent ids and names (or state that none exist).
- Do not create, update, or delete anything in this step.
- Only if the user then asks to create, pick an unused id informed by the list above.
Create an agent after discovery
User: "Create a sales-helper agent using the esql-sales-data tool."
- List tools — confirm
esql-sales-dataexists. - List agents — confirm no conflicting id.
- POST agent with instructions and selected tool IDs.
- GET agent to verify and report back.
References
- architecture-guide.md — Built-in tools, context engineering, token optimization, MCP/A2A integration, permissions
- use-cases.md — Playbooks for customer feedback, marketing campaign, and contract analysis agents with example tool and agent payloads
Operations
| 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>' |
FAQ
What does the kibana-agent-builder skill do?
Create and manage Kibana Agent Builder agents and custom tools. Use when asked to create, update, delete, test, or inspect agents or tools in Agent Builder, or when the user wants to understand what agents or tools already exist.
How do I install kibana-agent-builder?
Run npx skills add https://github.com/elastic/agent-skills --skill kibana-agent-builder in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/kibana-agent-builder/ (personal) or .claude/skills/kibana-agent-builder/ (project).
Which AI agents can use kibana-agent-builder?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is kibana-agent-builder safe to install?
Security partners have reviewed it: Gen Agent Trust Hub passed; Socket passed; Snyk passed; ZeroLeaks passed. As with any skill, read the SKILL.md and bundled scripts before installing.
Who maintains kibana-agent-builder?
It is published by elastic in elastic/agent-skills. It has 3,988 recorded installs.
More from elastic/agent-skills
elasticsearch-esql
elastic/agent-skills
Execute ESQL (Elasticsearch Query Language) queries, use when the user wants to query Elasticsearch data, analyze logs, aggregate metrics, explore data, or create charts and dashboards from ESQL results.
elasticsearch-onboarding
elastic/agent-skills
Help developers new to Elasticsearch get from zero to a working search experience. Guide them through understanding their intent, mapping their data, and building a search experience with best practices baked in. Use this when the user shows intent to build search-related functionality, asks about Elasticsearch-related concepts for their use case, or expresses the need for help getting started with Elasticsearch.
kibana-dashboards
elastic/agent-skills
Create and manage Kibana Dashboards and Lens visualizations. Use when you need to define dashboards and visualizations declaratively, version control them, or automate their deployment.
security-case-management
elastic/agent-skills
Create, search, update, and manage SOC cases via the Kibana Cases API. Use when tracking incidents, linking alerts to cases, adding investigation notes, or managing triage output.
kibana-alerting-rules
elastic/agent-skills
Create and manage Kibana alerting rules. Use when creating, updating, or managing rule lifecycle (enable, disable, mute, snooze), choosing metric threshold rule types and params, or read-only find/list with tag filters.
observability-llm-obs
elastic/agent-skills
Answer questions about LLM and agentic-application behavior from data already ingested into Elastic: latency and error rate, token and cost utilization, response quality and guardrail events, and agentic call-chain orchestration. Use when the user asks about LLM monitoring, GenAI observability, token spend or AI cost, model latency, prompt or guardrail failures, or how an agent's tool-call chain executed.
Popular ai & agents skills
google-agents-cli-publish
google/agents-cli
This skill should be used when the user wants to "publish an agent", "publish my ADK agent", "register an agent with Gemini", "publish to Gemini" (formerly Gemini Enterprise), or needs guidance on the agents-cli publish gemini command. Also use when the user wants to "manage agents in Agent Registry", "list/update/delete registered agents", or "register an MCP server". Covers ADK vs A2A registration modes, programmatic and interactive usage, flag reference, auto-detection from deployment metadata, Agent Registry fleet management, and troubleshooting. Part of the agents-cli skills suite. Do NOT use for deployment (use google-agents-cli-deploy).
google-agents-cli-eval
google/agents-cli
This skill should be used when the user wants to "run an evaluation", "evaluate my agent", "evaluate my ADK agent", "write an eval dataset", "analyze eval failures", "compare eval results", "optimize agent", or needs guidance on the Gemini platform eval methodology and the Quality Flywheel. Covers eval metrics, dataset schema, LLM-as-judge scoring, and common failure causes. Applies to any agents-cli project, whatever framework the agent is written in. Do NOT use for agent API code patterns (ADK: use google-agents-cli-adk-code), deployment (use google-agents-cli-deploy), or project scaffolding (use google-agents-cli-scaffold).
skill-creator
anthropics/skills
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.
codex-pet
prime-skills/runcomfy-agent-skills
Codex Pet generator on RunComfy. Build a Codex-compatible Codex Pet spritesheet.webp + pet.json from a single reference image, drop it into ${CODEXHOME:-$HOME/.codex}/pets/ / and Codex picks it up as a custom Codex Pet next to the 8 built-ins. This skill produces the exact Codex Pet atlas Codex expects (1536x1872 PNG/WebP, 8 cols x 9 rows, 192x208 cells, 9 animation states — idle, running-right, running-left, waving, jumping, failed, waiting, running, review). Calls OpenAI GPT Image 2 edit ONCE via the local RunComfy CLI as runcomfy run openai/gpt-image-2/edit to produce a canonical Codex Pet pose, then assembles all 9 animation rows programmatically with ImageMagick micro-transforms — no Codex Pro, no $imagegen, no OPENAIAPIKEY required, only RUNCOMFYTOKEN. Triggers on "codex pet", "create codex pet", "make codex pet", "hatch codex pet", "/hatch image", "desktop pet codex", "codex pets", "spritesheet.webp", or any explicit ask to build a custom pet for OpenAI Codex.
full-output-enforcement
leonxlnx/taste-skill
Overrides default LLM truncation behavior. Enforces complete code generation, bans placeholder patterns, and handles token-limit splits cleanly. Apply to any task requiring exhaustive, unabridged output.
executing-plans
obra/superpowers
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available