agent-builder-skill-builder
Guide for building, testing, and deploying custom Agent Builder skills — from tool creation through agent configuration and MCP handoff.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Guide for building, testing, and deploying custom Agent Builder skills — from tool creation through agent configuration and MCP handoff.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Debug and analyze LLM eval runs — view traces, compare runs, investigate failures, track costs. Use when debugging @kbn/evals failures, comparing eval runs, or analyzing LLM performance.
Start your security session with a personalized briefing — attacks, alerts, cases, rules, threat intel. Use as the first thing when starting security work.
Guide users from zero to a working Elastic cluster — Cloud or on-prem, connection config, first queries, and next steps.
Interactive guide for creating an APM service overview dashboard — discovers service data, presents metrics, and creates a tailored dashboard.
Interactive guide for creating SLOs from discovered APM and metric data — identifies candidates, lets user configure targets, and creates SLOs.
Create, configure, and manage Elasticsearch indices — mappings, settings, templates, data streams, and lifecycle policies.
| name | agent-builder-skill-builder |
| description | Guide for building, testing, and deploying custom Agent Builder skills — from tool creation through agent configuration and MCP handoff. |
Build custom tools and agents in Kibana's Agent Builder, then connect them to Cursor or other MCP clients for production use.
Use when the user asks to:
Also activates on keywords: "agent builder", "custom tool", "agent tool", "MCP config", "converse API", "tool builder"
Do NOT use when:
security-alert-triage)o11y-service-dashboard)Call get_cluster_context to get cached cluster awareness — version, health, installed features, and Agent Builder availability. This confirms that Agent Builder is enabled in the Kibana deployment.
Call list_agent_builder_tools to see what tools are already registered (builtin and custom).
Call list_agent_builder_agents to see available agents.
Present the results:
Based on the user's requirements, determine:
esql (pre-defined query with parameters) or index_search (natural language search scoped to an index pattern)For ES|QL tools, help the user write the query first using esql_query to test it against real data.
For index_search tools, use discover_data to find the right index pattern.
Call create_agent_builder_tool with the planned configuration.
ES|QL tool example:
{
"id": "sales-summary",
"type": "esql",
"description": "Summarize sales by region for a given time period",
"tags": ["analytics", "sales"],
"configuration": {
"query": "FROM sales-* | WHERE @timestamp >= ?start | STATS total=SUM(amount) BY region | SORT total DESC",
"params": {
"start": { "type": "date", "description": "Start date for the summary" }
}
}
}
Index search tool example:
{
"id": "kb-search",
"type": "index_search",
"description": "Search the internal knowledge base for documentation",
"tags": ["search", "docs"],
"configuration": {
"pattern": "knowledge-base"
}
}
Call test_agent_builder_tool with a realistic query to verify the tool works:
Agent Builder tools do not support in-place updates. To modify a tool, use the delete + recreate pattern:
delete_agent_builder_tool with the tool ID to remove the old versioncreate_agent_builder_tool with the updated configurationtest_agent_builder_tool to verify the changesIf the user wants a specialized agent, call create_agent_builder_agent with:
platform.core.search) and custom toolsCall get_agent_builder_mcp_config to generate the JSON configuration for connecting MCP clients directly to Agent Builder.
Present the config and explain:
get_cluster_context — cached cluster awareness (version, health, capabilities)list_agent_builder_tools — list registered toolscreate_agent_builder_tool — create ES|QL or index_search toolsdelete_agent_builder_tool — remove custom toolstest_agent_builder_tool — test tools via the converse APIlist_agent_builder_agents — list registered agentscreate_agent_builder_agent — create custom agents with toolsdelete_agent_builder_agent — remove custom agentsget_agent_builder_mcp_config — generate MCP client configurationdiscover_data — discover indices/data streams for tool configurationesql_query — test ES|QL queries before creating toolskibana_api — direct Kibana API access for advanced operationselastic://docs/api/kibana — Kibana REST API referencePOST /api/agent_builder/tools, POST /api/agent_builder/agents, POST /api/agent_builder/converseKIBANA_URL configured and pointing to a Kibana instance with Agent Builder enabledES_URL and authentication (ES_API_KEY or ES_USERNAME/ES_PASSWORD) configuredcluster-onboarding — If the user doesn't have a connected cluster yetsearch-index-management — For creating indices that Agent Builder tools can query