From elasticsearch-best-practices
Elasticsearch development best practices for indexing, querying, mapping, and search optimization. Use this skill when designing indices, writing queries, configuring analyzers, or optimizing Elasticsearch cluster performance.
How this skill is triggered — by the user, by Claude, or both
Slash command
/elasticsearch-best-practices:elasticsearch-best-practicesThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Comprehensive Elasticsearch development guide. Contains rules across 11 categories, prioritized by impact to guide automated index design, query optimization, and cluster management.
references/_sections.mdreferences/agg-patterns.mdreferences/alias-reindex.mdreferences/analysis-custom.mdreferences/bulk-indexing.mdreferences/bulk-updates.mdreferences/index-lifecycle.mdreferences/index-settings.mdreferences/index-shard-sizing.mdreferences/mapping-explicit.mdreferences/mapping-storage-optimization.mdreferences/monitor-cluster-health.mdreferences/perf-pagination.mdreferences/perf-segment-merge.mdreferences/perf-source-filtering.mdreferences/query-bool-filter.mdreferences/query-multi-match.mdreferences/query-term-vs-match.mdreferences/search-autocomplete.mdreferences/search-highlighting.mdComprehensive Elasticsearch development guide. Contains rules across 11 categories, prioritized by impact to guide automated index design, query optimization, and cluster management.
Reference these guidelines when:
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Mapping & Field Types | CRITICAL | mapping- |
| 2 | Query Optimization | CRITICAL | query- |
| 3 | Index Settings & Sharding | HIGH | index- |
| 4 | Indexing & Bulk Operations | HIGH | bulk- |
| 5 | Analysis & Tokenization | HIGH | analysis- |
| 6 | Performance Optimization | MEDIUM-HIGH | perf- |
| 7 | Search Features | MEDIUM | search- |
| 8 | Aggregations | MEDIUM | agg- |
| 9 | Monitoring & Maintenance | LOW-MEDIUM | monitor- |
| 10 | Security | LOW-MEDIUM | security- |
| 11 | Aliases & Reindexing | LOW-MEDIUM | alias- |
Read individual rule files for detailed explanations and JSON examples:
references/mapping-explicit.md # Explicit mapping, field types
references/mapping-storage-optimization.md # index, doc_values, _source tuning
references/query-bool-filter.md # Filter context caching
references/query-term-vs-match.md # Query type vs field type
references/index-shard-sizing.md # Shard sizing guidelines
references/bulk-indexing.md # Bulk API throughput
references/analysis-custom.md # Custom analyzers
references/perf-segment-merge.md # Segment merge optimization
references/perf-pagination.md # search_after pagination
references/_sections.md # Section definitions
Each rule file contains:
npx claudepluginhub bbaktaeho/bbaktaeho-agent-skills --plugin elasticsearch-best-practicesInteract with Elasticsearch and Kibana via curl REST API for querying (Query DSL), indexing, CRUD, index management, mappings, aggregations, cluster health, ILM, ES|QL, dashboards, OpenTelemetry patterns, and troubleshooting.
Optimizes Algolia search performance via record size reduction, searchable attributes tuning, replicas, caching, and query parameters. For slow searches and high latency.
Provides deep operational guidance for 12 document databases including MongoDB sharding/Atlas, Elasticsearch ILM/query DSL, Couchbase N1QL, Cosmos DB, and Firestore. Use for production configuration, tuning, and operations.