skills/agent-builder-skill-builder/SKILL.md
Guide for building, testing, and deploying custom Agent Builder skills — from tool creation through agent configuration and MCP handoff.
npx skillsauth add patrykkopycinski/elastic-cursor-plugin agent-builder-skill-builderInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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 querytesting
Interactive threat hunting workflow using ES|QL and Elasticsearch queries — from hypothesis formulation through data exploration, IOC search, and finding documentation.
testing
Start your security session with a personalized briefing — attacks, alerts, cases, rules, threat intel. Use as the first thing when starting security work.
testing
Interactive guide for complete Elastic Security setup — discovers data sources, assesses detection coverage, configures rules, and creates security dashboards.
testing
Guide for authoring custom detection rules — from threat hypothesis through rule creation, testing, and tuning with KQL, EQL, ES|QL, and threshold rules.