From query-optimizer
Generates and interprets a SQL query execution plan, explaining each operation in plain language and suggesting performance improvements.
How this command is triggered — by the user, by Claude, or both
Slash command
/query-optimizer:explain-planThe summary Claude sees in its command listing — used to decide when to auto-load this command
# /explain-plan - Explain Query Execution Plan Generate and interpret a SQL query execution plan in plain language. ## Steps 1. Take the SQL query from the user input 2. Determine the database engine (PostgreSQL, MySQL, SQLite, SQL Server) 3. Run EXPLAIN or EXPLAIN ANALYZE with the appropriate syntax for the engine 4. Parse the execution plan output into structured components 5. Identify each operation: Sequential Scan, Index Scan, Nested Loop, Hash Join, Sort 6. Explain each step in plain language: what table is read, how it is filtered 7. Highlight expensive operations: full table scan...
Generate and interpret a SQL query execution plan in plain language.
6plugins reuse this command
First indexed Mar 30, 2026
npx claudepluginhub twzrd-sol/awesome-claude-code-toolkit --plugin query-optimizer/explain-planGenerates and interprets a SQL query execution plan, explaining each operation in plain language and suggesting performance improvements.
/analyze-queryAnalyzes SQL query execution plans and provides structured optimization recommendations including index creation, query rewrites, and priority-ranked improvements.
/explain-planInterprets SQL Server execution plans from descriptions, XML, or screenshots; explains operators, identifies issues like scans and spills, and suggests optimizations.
/analyze-queryAnalyzes database queries for performance issues by running EXPLAIN plans and analyzing query patterns. Identifies slow queries, checks lock contention, suggests optimizations with estimated improvement.
/query-optimizeAnalyzes a slow SQL query from raw text or file path, generates an optimized version with structure analysis, performance issue identification, and indexed diff explanation.