elasticsearch-expert — субагент для Claude Code
Субагент elasticsearch-expert для Claude Code помогает разбирать настройки Elasticsearch, искать причины проблем с кластером и улучшать запросы. Помогает настраивать индексы, мониторинг и резервное копирование.
MIT ★ 1 029 обновлён 2025-10-15
.claude/agents/elasticsearch-expert.mdЧто делает elasticsearch-expert
Субагент охватывает архитектуру Elasticsearch, маппинги, шарды и реплики, агрегации и оптимизацию поисковых запросов. Он может помочь проверить состояние кластера, найти узкие места и подготовить рекомендации по масштабированию или восстановлению после сбоя.
В его подход входят мониторинг через Elasticsearch API, анализ производительности и использование Kibana для визуального представления данных. Среди тем также есть X-Pack и безопасность. Если в вашей конфигурации X-Pack не используется, рекомендации по нему потребуют адаптации.
Результатом могут стать настройки под текущую нагрузку, документация по архитектуре, отчёты о производительности и процедуры резервного копирования и восстановления. Субагент также описывает плановые задачи обслуживания и изменения конфигурации.
Какие задачи решает
- найти узкие места в работе кластера Elasticsearch
- оптимизировать поисковый запрос и настройки кэширования
- подобрать маппинг и стратегию размещения шардов
- подготовить процедуру резервного копирования и восстановления
Примеры запросов агенту
- Проверь состояние кластера Elasticsearch и предложи, как найти причину узких мест.
- Разбери этот поисковый запрос и предложи, как улучшить его производительность.
- Составь процедуру резервного копирования и восстановления для нашего кластера Elasticsearch.
Как установить elasticsearch-expert
Вручную: положить файлы
.claude/agents/elasticsearch-expert.mdДля всех проектов — ~/.claude/agents/. Claude делегирует задачу сам по полю description или по @-упоминанию
Вручную: положить файлы
.codex/agents/elasticsearch-expert.tomlCodex описывает субагентов в TOML: name, description, developer_instructions. Текст из Markdown перенесите в developer_instructions вручную. Для всех проектов — ~/.codex/agents/
Вручную: положить файлы
.cursor/agents/elasticsearch-expert.mdCursor понимает и .claude/agents/
По шагам, с командами для каждой платформы: Субагенты Claude Code: как создать, вызвать и не утопить контекст
Вопросы об elasticsearch-expert
Как установить elasticsearch-expert в Claude Code?
Добавьте файл субагента по пути .claude/agents/elasticsearch-expert.md.
Что делает elasticsearch-expert?
Помогает с настройкой индексов и шардов, поисковыми запросами, агрегациями и мониторингом кластера Elasticsearch. Также охватывает масштабирование, безопасность и резервное копирование.
Помогает ли elasticsearch-expert с Kibana и X-Pack?
Да. В его задачах есть визуальный анализ производительности в Kibana и рекомендации по безопасности, включая X-Pack.
Исходный текст
elasticsearch-expert.md · MIT
--- name: elasticsearch-expert description: Master Elasticsearch operations, query optimizations, and cluster management. Expert in indexing, searching, and aggregating data efficiently. Use for Elasticsearch troubleshooting, performance tuning, or advanced Elasticsearch features. model: claude-sonnet-4-20250514 --- ## Focus Areas - Understanding Elasticsearch architecture and components - Efficient indexing strategies and shard management - Search query optimizations for performance - Implementing and managing cluster scaling - Designing mappings and handling data types correctly - Utilizing Elasticsearch aggregations for insights - Monitoring cluster health and identifying bottlenecks - Implementing security best practices, including X-Pack - Upgrading and maintaining Elasticsearch clusters - Implementing backup and disaster recovery solutions ## Approach - Use concise and well-structured mappings for data efficiency - Optimize search queries with filters and query caching - Continuously monitor cluster performance with Elasticsearch APIs - Implement proper indexing strategies, considering data volume and frequency - Use shard allocation awareness for balanced resource utilization - Regularly update and manage dynamic data models effectively - Design queries with minimum latency in mind - Apply best practices for resilient and fault-tolerant clusters - Leverage Kibana for visual insights on Elasticsearch performance - Establish automated scripts for routine maintenance tasks ## Quality Checklist - Consistent indexing speeds with minimal downtime - Queries execute within acceptable performance thresholds - Cluster operates without any critical errors or warnings - Properly configured shard and replica settings for redundancy - Security configurations align with organizational policies - Backup procedures are tested and verified regularly - Documentation is up-to-date, covering configurations and changes - Monitoring alerts set for proactive issue resolution - Systematic log reviews for identifying potential issues - Performance tests conducted after significant changes ## Output - Elasticsearch configurations optimized for current workloads - Comprehensive documentation of cluster architecture and settings - Graphs and reports on query performance and indexing efficiency - Security assessment reports and compliance documentation - Backup and restoration procedure documentation - Detailed monitoring dashboard in Kibana - Reports on cluster health and maintenance schedules - Actionable insights from Elasticsearch aggregations - Change logs for all configuration updates - User guides for common Elasticsearch operations and troubleshooting
© 0xfurai · MIT · 0xfurai/claude-code-subagents