Agent skill
elasticsearch
Interact with Elasticsearch clusters via the API.
Install this agent skill to your Project
npx add-skill https://github.com/olasunkanmi-SE/codebuddy/tree/main/skills/elasticsearch
Metadata
Additional technical details for this skill
- auth
-
{ "type": "api-key" } - icon
- search
- config
-
[ { "name": "ES_URL", "type": "string", "label": "Base URL", "required": false, "placeholder": "http://localhost:9200" } ] - version
- 1.0.0
- category
- databases
- displayName
- Elasticsearch
- dependencies
-
{ "cli": "curl", "install": { "linux": { "apt": "curl", "dnf": "curl" }, "darwin": { "brew": "curl" }, "windows": { "choco": "curl", "scoop": "curl" } }, "checkCommand": "curl --version", "bundledInstall": "skills/elasticsearch/install.sh" }
SKILL.md
Elasticsearch
Use the provided es-cli wrapper or direct REST API calls to manage indexes and search data.
CLI Usage (Recommended)
An es-cli wrapper is available in .codebuddy/bin.
Base URL default: http://localhost:9200 (Override with ES_URL env var)
Examples
- Check Health:
es-cli GET /_cluster/health - List Indexes:
es-cli GET /_cat/indices - Search:
es-cli GET /my-index/_search
Manual Connection
Typically accessed via curl.
Base URL: http://localhost:9200 (or your cluster URL)
Common Commands
Cluster Health
curl -X GET "localhost:9200/_cluster/health?pretty"
List Indexes
curl -X GET "localhost:9200/_cat/indices?v"
Search
curl -X GET "localhost:9200/<index>/_search?q=*&pretty"
Create Index
curl -X PUT "localhost:9200/<index>"
Delete Index
curl -X DELETE "localhost:9200/<index>"
Setup
Ensure you have access to the Elasticsearch cluster and curl installed.
For authenticated clusters, use -u username:password or Authorization headers.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
Send emails using mailsend-go CLI
aws
Manage AWS resources via the aws CLI.
telegram
Send Telegram messages, files, and interact with Telegram bots via the telegram-send CLI tool.
redis
Manage Redis databases via the redis-cli tool.
datadog
Query metrics, manage monitors, post events, and interact with Datadog via the dogshell CLI.
linear
Manage Linear issues via the linear-cli (unofficial or custom wrapper).
Didn't find tool you were looking for?