
magento-index-analyst
Optimizes Magento 2 indexing for search performance and database efficiency. Use when optimizing search performance, configuring Elasticsearch, designing database indexes, or improving reindexing strategies. Masters indexer optimization, Elasticsearch configuration, and database indexing.
- Installs
- 161
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/maxnorm/magento2-agent-skills --skill magento-index-analyst- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads magento-index-analyst automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Magento 2 Index Analyst
Expert specialist in designing and implementing high-performance indexing strategies that dramatically improve search performance, catalog browsing, and overall application responsiveness.
When to Use
- Optimizing search performance
- Configuring Elasticsearch
- Designing database indexes
- Improving reindexing strategies
- Troubleshooting indexing issues
- Planning indexing architecture
Magento Indexing Architecture
- Indexer Types: Master all Magento indexers and their optimization strategies
- Index Management: Expert in index lifecycle management and maintenance
- Reindexing Strategies: Optimize reindexing processes and scheduling
- Index Storage: Optimize index storage and data structures
- Performance Monitoring: Monitor and analyze index performance metrics
Index Types
Magento Core Indexers
- Catalog Product: Optimize product catalog indexing for fast browsing
- Catalog Category: Optimize category hierarchy and navigation indexing
- Catalog Search: Optimize search indexing for fast and relevant results
- Stock Indexer: Optimize inventory indexing for real-time stock status
- Price Indexer: Optimize pricing indexing for dynamic pricing
- Customer Grid: Optimize customer data indexing for admin grids
Custom Indexers
- Create custom indexers for specific business needs
- Implement indexer classes extending
AbstractIndexer - Design efficient index data structures
- Optimize index update processes
Elasticsearch Configuration
Setup
// app/etc/env.php
'system' => [
'default' => [
'catalog' => [
'search' => [
'engine' => 'elasticsearch7',
'elasticsearch7_server_hostname' => 'localhost',
'elasticsearch7_server_port' => '9200',
'elasticsearch7_index_prefix' => 'magento2',
]
]
]
]
Index Management
# Reindex all
bin/magento indexer:reindex
# Reindex specific indexer
bin/magento indexer:reindex catalogsearch_fulltext
# Index status
bin/magento indexer:status
# Reset indexer
bin/magento indexer:reset catalogsearch_fulltext
Database Indexing
Index Strategy
- Primary Keys: Design efficient primary key structures
- Foreign Keys: Implement proper foreign key relationships
- Composite Indexes: Create composite indexes for common queries
- Covering Indexes: Design indexes that cover query requirements
- Index Maintenance: Regular index maintenance and optimization
Query Optimization
- EXPLAIN Analysis: Analyze query execution plans
- Slow Query Log: Monitor and optimize slow queries
- Index Usage: Ensure indexes are being used effectively
- Query Rewriting: Optimize queries for better index usage
- N+1 Problem: Eliminate N+1 query problems
Index Optimization Process
1. Index Assessment & Analysis
- Current State Analysis: Assess existing indexing configuration and performance
- Performance Baseline: Establish baseline metrics for indexing performance
- Bottleneck Identification: Identify indexing bottlenecks and performance issues
- Usage Pattern Analysis: Analyze search and browsing usage patterns
- Capacity Planning: Plan indexing infrastructure capacity and resources
2. Index Strategy Design
- Indexing Architecture: Design optimal indexing architecture and topology
- Reindexing Strategy: Design efficient reindexing processes and schedules
- Storage Strategy: Optimize index storage and data organization
- Performance Goals: Define indexing performance targets and SLAs
- Scalability Planning: Plan for indexing scalability and growth
3. Implementation & Configuration
- Elasticsearch Setup: Configure and optimize Elasticsearch clusters
- Indexer Configuration: Optimize Magento indexer settings and behavior
- Database Indexing: Implement optimal database index strategies
- Monitoring Setup: Implement comprehensive indexing monitoring
- Automation Setup: Automate indexing processes and maintenance
4. Testing & Optimization
- Performance Testing: Validate indexing performance improvements
- Load Testing: Test indexing behavior under high load conditions
- Search Quality Testing: Validate search relevance and accuracy
- Monitoring Validation: Verify monitoring and alerting effectiveness
- Continuous Optimization: Establish ongoing indexing optimization
Best Practices
Reindexing Strategy
- Scheduled Reindexing: Schedule reindexing during low-traffic periods
- Incremental Reindexing: Use incremental reindexing when possible
- Parallel Reindexing: Run independent indexers in parallel
- Reindexing Monitoring: Monitor reindexing performance and failures
- Rollback Planning: Plan for reindexing failures and rollbacks
Elasticsearch Optimization
- Cluster Configuration: Optimize Elasticsearch cluster settings
- Shard Strategy: Design optimal shard allocation
- Replica Configuration: Configure appropriate replica counts
- Query Optimization: Optimize search queries and aggregations
- Index Mapping: Design efficient search index mappings
Database Index Optimization
- Index Design: Design indexes based on query patterns
- Index Maintenance: Regular index maintenance and optimization
- Query Analysis: Analyze and optimize slow queries
- Index Monitoring: Monitor index usage and effectiveness
- Performance Tuning: Tune database for optimal index performance
Monitoring
- Index Status: Monitor indexer status and health
- Reindexing Performance: Track reindexing duration and resource usage
- Search Performance: Monitor search query performance
- Index Size: Monitor index storage size and growth
- Error Monitoring: Monitor indexing errors and failures
References
Focus on creating high-performance indexing strategies that improve search and browsing performance.
FAQ
What does the magento-index-analyst skill do?
Optimizes Magento 2 indexing for search performance and database efficiency. Use when optimizing search performance, configuring Elasticsearch, designing database indexes, or improving reindexing strategies. Masters indexer optimization, Elasticsearch configuration, and database indexing.
How do I install magento-index-analyst?
Run npx skills add https://github.com/maxnorm/magento2-agent-skills --skill magento-index-analyst in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/magento-index-analyst/ (personal) or .claude/skills/magento-index-analyst/ (project).
Which AI agents can use magento-index-analyst?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is magento-index-analyst safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains magento-index-analyst?
It is published by maxnorm in maxnorm/magento2-agent-skills. It has 161 recorded installs.
More from maxnorm/magento2-agent-skills
magento-hyva-specialist
maxnorm/magento2-agent-skills
Develops high-performance Magento 2 storefronts using Hyvä theme framework. Use when working with Hyvä themes, Alpine.js, Tailwind CSS, or modern frontend development. Masters Alpine.js architecture, Tailwind CSS styling, and performance optimization for blazing-fast e-commerce experiences.
magento-code-reviewer
maxnorm/magento2-agent-skills
Reviews Magento 2 code for quality, security, performance, and compliance with PSR-12 and Magento coding standards. Use proactively when reviewing code, before commits, during pull requests, or when ensuring code quality. Enforces strict type declarations, proper dependency injection, security best practices, and performance optimization.
magento-module-developer
maxnorm/magento2-agent-skills
Creates robust, maintainable, and extensible Magento 2 modules following enterprise architecture patterns. Use when developing custom modules, implementing new functionality, creating extensions, or building Magento 2 components. Masters dependency injection, service contracts, repository patterns, and module architecture.
magento-performance-analyst
maxnorm/magento2-agent-skills
Conducts comprehensive Magento 2 performance analysis and optimization. Use when analyzing performance bottlenecks, profiling applications, optimizing database queries, or improving system scalability. Masters profiling tools, database optimization, and enterprise-scale performance tuning.
magento-frontend-developer
maxnorm/magento2-agent-skills
Creates comprehensive Magento 2 frontend solutions. Use when developing frontend features, working with layout XML, templates, JavaScript, or responsive design. Masters layout XML, template development, JavaScript integration, and performance optimization across all Magento frontend technologies.
magento-xml-specialist
maxnorm/magento2-agent-skills
Creates XML configurations for Magento 2 including layout XML, dependency injection, system configuration, and module definition. Use when working with XML configuration files, layout XML, di.xml, or system.xml. Masters XML schema design, validation, and configuration management.
Popular data & databases skills
supabase-postgres-best-practices
supabase/agent-skills
Postgres best practices maintained by Supabase, for Postgres running anywhere. Load this skill BEFORE writing or changing anything that lives in a Postgres database: creating or altering tables and columns (including choosing column types), schema design, migrations and declarative schema files, RLS policies and the tests that verify them, indexes, triggers, database functions, queues and scheduled jobs (pgcron, pgmq), vector/semantic search (pgvector), and restoring dumps (pgrestore) or importing data. Also load it when diagnosing slow queries, high CPU, timeouts, EXPLAIN plans, connection exhaustion, locking, bloat, or rows visible to the wrong user or tenant. This is not just a performance guide — schema, migration, security, and SQL authoring tasks need these rules too, even for a one-column change or a single query.
prisma-client-api
prisma/skills
Prisma Client API reference covering model queries, filters, operators, and client methods. Use when writing database queries, using CRUD operations, filtering data, or configuring Prisma Client. Triggers on "prisma query", "findMany", "create", "update", "delete", "$transaction".
prisma-database-setup
prisma/skills
Deprecated compatibility name for prisma-orm-setup. Use only when a user or existing integration explicitly invokes prisma-database-setup; otherwise select prisma-orm-setup.
prisma-cli
prisma/skills
Prisma ORM 7 CLI reference for existing Prisma 7 applications or explicitly selected Prisma 7 workflows. Covers prisma init, generate, migrate, db, dev, studio, and mcp. For setup, connection repair, or Prisma 8, use prisma-orm-setup; not the Prisma Platform CLI.
prisma-postgres
prisma/skills
Deprecated compatibility name for prisma-postgres-setup. Use only when a user or existing integration explicitly invokes prisma-postgres; otherwise select prisma-postgres-setup.
prisma-driver-adapter-implementation
prisma/skills
Required reference for Prisma ORM 7 SQL driver adapter work. Use when implementing or modifying adapters, adding database drivers, or touching SqlDriverAdapter, Transaction, savepoint, result mapping, or DriverAdapterError behavior. Covers current transaction lifecycle, optional savepoint hooks, original database-error preservation, and verification.