src/platform/packages/shared/kbn-search-agent/README.md
Agent configuration files tailored to search solution onboarding. Guides developers from "I want search" to a working Elasticsearch experience — understanding intent, recommending an approach, designing mappings, and generating production-ready code.
.elasticsearch-agent/
agents/
<agent-name>/
AGENTS.md ← source of truth for agent instructions (YAML front matter + body)
skills/
recipes/ ← use-case guides (keyword, semantic, hybrid, RAG, etc.)
<skill-name>/
SKILL.md ← source of truth for each skill (YAML front matter + body)
src/
agents/
<agent-name>.ts ← generated — do not edit directly
index.ts ← generated barrel — do not edit directly
skills/
<skill_name>.ts ← generated — do not edit directly
index.ts ← generated barrel — do not edit directly
index.ts ← re-exports everything from src/agents and src/skills
build ← regenerates all TypeScript from the markdown sources
scripts/generate.js ← reads AGENTS.md + SKILL.md files → generates .ts
The package exports an agent and a set of skills:
agents — array of all agent objectsskills — array of all skill objects (keyword search, semantic search, hybrid search, RAG, vector database, catalog/e-commerce)Each agent and skill object is generated from its markdown source file, which carries YAML front matter (id, name, description, labels, avatar fields) followed by the instruction body.
The search_getting_started plugin registers the agent via @kbn/agent-builder-server,
using the exported agents & skills
.elasticsearch-agent/agents/<agent-name>/AGENTS.mdSKILL.md under .elasticsearch-agent/skills/recipes/<skill-name>/src/ are generated — do not edit them directly./build to regenerate the TypeScript exports from the markdown sources and reformat with Prettierx-pack/platform/packages/shared/agent-builder/agent-builder-server/allow_lists.tsbuild scriptnode scripts/generate.js — parses content from each AGENTS.md and SKILL.md, writes src/agents/*.ts and src/skills/*.ts, and generates barrel index.ts files in each directoryprettier --write src/agents src/skills — formats the generated files