Skip to main content

This skill may not reflect the latest upstream change

Next.js Releases update on 2026-11-09 may affect this skill Last checked Nov 25, 2026.

BuildOfficialCertifiedAI reviewed Jul 21, 2026

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.

v1.0.2New

Install this skill

No account required. Pick your tool, or use the command that detects it for you.

Run in your terminal. It detects your AI tool.

npx @skills-hub-ai/cli install elastic-kibana-agent-builder
Or get the file:
Browse all CLI commands →
Manual setup by platform

Claude Code

~/.claude/skills/elastic-kibana-agent-builder/SKILL.md

Setup guide →

Signing

SignedSLSA L2
Signed by
skills-hub.ai distributor
Method
Distributor-signed by skills-hub.aiSigned with the skills-hub.ai Ed25519 distributor key over this exact slug, version and content. Check it with `npx @skills-hub-ai/cli verify`.
Key
skills-hub-ed25519-2026-11
Signed
0Save

Instructions

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.

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:

KindPurposeTypical API
ToolReusable function an agent invokes to retrieve or act on data (index_search, esql, workflow)POST kbn:/api/agent_builder/tools
AgentLLM entity with instructions and a curated toolsetPOST kbn:/api/agent_builder/agents
Chat / conversationEphemeral messaging session with an existing agentPOST 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

  1. 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.

  2. Discover existing resources before any write. When creating or updating:

    • Call GET kbn:/api/agent_builder/tools to list available tools (built-in and custom). Do not invent tool IDs.
    • Call 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.

  3. Choose the tool type (for tool tasks). Match intent to the narrowest tool type:

    • Open-ended search over a known index pattern → index_search with a specific pattern (for example
      customer-feedback-*), never * or all-indices scope unless the user explicitly requires it.
    • Fixed analytics, aggregations, or parameterized queries → esql with ?param placeholders and a params
      object (use {} when there are no parameters).
    • Multi-step automation beyond retrieval → 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.

  4. 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. name is not valid on tools.
    • Index search configuration uses "pattern", not "index".
    • ES|QL tools require "params" even when empty: "params": {}.
    • Each param accepts only type and description — not default or optional. Hard-code defaults in the query.
    • PUT on tools accepts only 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"
          }
        }
      }
    }
    
  5. 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.

  6. 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.

  7. 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.

  8. 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}
  9. 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.

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'."

  1. List tools — confirm eval-feedback-search does not already exist.
  2. Choose index_search scoped to customer-feedback-* (not *).
  3. POST the tool with id, description, and configuration.pattern.
  4. 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?"

  1. Call GET kbn:/api/agent_builder/agents — read-only.
  2. Enumerate existing agent ids and names (or state that none exist).
  3. Do not create, update, or delete anything in this step.
  4. 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."

  1. List tools — confirm esql-sales-data exists.
  2. List agents — confirm no conflicting id.
  3. POST agent with instructions and selected tool IDs.
  4. 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/toolselastic kb agent-builder get-agent-builder-tools
POST kbn:/api/agent_builder/toolselastic 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/_executeelastic kb agent-builder post-agent-builder-tools-execute --tool-id '<toolId>' --tool-params '<json>'
GET kbn:/api/agent_builder/agentselastic kb agent-builder get-agent-builder-agents
POST kbn:/api/agent_builder/agentselastic 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/asyncelastic kb agent-builder post-agent-builder-converse-async --agent-id '<agentId>' --input '<message>'
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

Browse all →
kibana-connectorsCreate and manage Kibana connectors for Slack, PagerDuty, Jira, webhooks, and more via REST API or Terraform. Use when configuring third-party integrations or managing connectors as code.0 installsobservability-service-reliabilityDesign and operate service reliability targets in Elastic Observability: choose an SLI type and a defensible target, pick a time window and budgeting method, create and maintain SLOs through the Kibana API, attach burn-rate alert rules, and decide when an SLO is the wrong instrument and a threshold rule, anomaly job, or synthetics monitor is right. Use when defining or reviewing SLOs and error budgets, tuning burn-rate alerting, reducing alert noise, or setting up availability monitoring for a user-facing endpoint.0 installskibana-auditEnable and configure Kibana audit logging for saved object access, logins, and space operations. Use when setting up Kibana audit, filtering events, or correlating Kibana and ES audit logs.0 installselasticsearch-anomaly-detection-explainerExplain 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.0 installsobservability-service-healthAssess APM service health using SLOs, alerts, ML, throughput, latency, error rate, and dependencies. Use when checking service status, performance, or when the user asks about service health.0 installsobservability-sre-triageTriage a degraded or suspect service end to end: read SLO status and burn rate, check active alerting rules and ML anomalies, measure throughput, latency, and error rate, assess dependency health and infrastructure saturation, and funnel logs down to the failures that explain it. Use when someone asks whether a service is healthy, why it is slow or erroring, what is in its logs, or which attribute distinguishes the requests that are failing. Also use when someone asks for the query behind any of those signals — throughput, latency percentiles, error rate, dependency health, or log volume — over APM/OTel traces, metrics, or logs.0 installs

More from Elastic

View source →
cloud-network-securityManage Serverless network security (traffic filters): create, update, and delete IP filters and AWS PrivateLink VPC filters. Use when restricting network access or configuring private connectivity.1 installscloud-provisioningProvision and operate Elastic Cloud infrastructure: create, connect to, update, and delete Serverless projects (Elasticsearch, Observability, Security); manage traffic filters (IP and AWS PrivateLink network security); and manage the lifecycle of Elastic Cloud Hosted deployments. Use when creating or performing day-2 operations on serverless projects or hosted deployments, or restricting their network access.1 installselasticsearch-cluster-healthDiagnose a non-green Elasticsearch cluster and surface the single most likely cause with remediation. Use when an operator reports yellow or red status, unassigned shards, allocation failures, or wants read-only triage before deeper investigation. Teaches replica-vs-primary impact, allocation decider classification, and data-loss awareness.0 installselasticsearch-query-optimizationDiagnose slow Elasticsearch Query DSL searches and propose measured fixes. Use when a search is slow, profile output shows an expensive clause, exact-match filters sit in scoring context, or leading wildcards dominate latency. Ground every recommendation in search profiling — move non-scoring clauses to filter context, eliminate leading wildcards, and re-profile to confirm improvement.0 installsobservability-edot-java-instrumentInstrument a Java application with the Elastic Distribution of OpenTelemetry (EDOT) Java agent for automatic tracing, metrics, and logs. Use when adding observability to a Java service that has no existing APM agent.0 installselasticsearch-index-designDesign and review Elasticsearch index mappings for stated access patterns: correct field types, text+keyword multi-fields, doc_values tuning, mapping-explosion avoidance, and explicit shard settings. Use when creating a new index, reviewing a mapping for storage or query performance, fixing wrong field types, or when the user asks which type to use for search, filter, sort, or aggregation on a field.0 installs

More Build skills

Browse category →
senior-frontendBuild and review React, Next.js, TypeScript or Tailwind frontends: components, scaffolding, performance and bundle size. Use whenever the user wants a new component or app, a page feels slow, the bundle is too big, or asks for a frontend code review.638 installsui-design-systemUse when building a design system: tokens, component docs, responsive scales or developer handoff. Generates tokens with design_token_generator.py.539 installsfrontend-designGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.349 installssenior-backendBuild and fix backend services: REST or GraphQL APIs, auth, microservices, PostgreSQL queries, migrations and load tests. Use whenever the user's API is slow or broken, needs login or auth added, a schema change, or a new endpoint or service scaffolded.249 installsself-improving-agentCurate what the agent has learned into durable project knowledge. Reviews Claude Code auto-memory (MEMORY.md and its topic files) for learnings worth keeping, promotes proven ones into CLAUDE.md or .claude/rules/, records a correction as a lesson that persists across sessions, prunes stale or duplicate entries, and turns a recurring fix into a reusable skill. Use whenever the user asks what you have learned or saved about the project, which memories should become permanent rules, to remember a lesson or stop repeating a mistake, or to clean up, audit or check memory health.177 installsusing-superpowersUse when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying questions146 installs

Frequently asked questions about kibana-agent-builder

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. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the kibana-agent-builder skill?

Run `npx @skills-hub-ai/cli install elastic-kibana-agent-builder` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/elastic-kibana-agent-builder/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does kibana-agent-builder work with?

kibana-agent-builder runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the kibana-agent-builder skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use kibana-agent-builder after installing it?

In Claude Code, type `/elastic-kibana-agent-builder` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the kibana-agent-builder skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.