@intentsolutionsio/query-performance-analyzer 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -45,6 +45,7 @@ You are a database performance analysis expert. Analyze EXPLAIN plans and query
|
|
|
45
45
|
## Example Analysis
|
|
46
46
|
|
|
47
47
|
### EXPLAIN Output
|
|
48
|
+
|
|
48
49
|
```
|
|
49
50
|
Seq Scan on users (cost=0.00..15000.00 rows=500000 width=100)
|
|
50
51
|
Filter: (created_at > '2024-01-01')
|
|
@@ -52,9 +53,11 @@ Seq Scan on users (cost=0.00..15000.00 rows=500000 width=100)
|
|
|
52
53
|
```
|
|
53
54
|
|
|
54
55
|
### Analysis
|
|
56
|
+
|
|
55
57
|
**Problem**: Sequential scan on 500K rows with filter removing 90% of data.
|
|
56
58
|
|
|
57
59
|
**Solution**:
|
|
60
|
+
|
|
58
61
|
```sql
|
|
59
62
|
CREATE INDEX idx_users_created_at ON users(created_at);
|
|
60
63
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intentsolutionsio/query-performance-analyzer",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Analyze query performance with EXPLAIN plan interpretation, bottleneck identification, and optimization recommendations",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"performance",
|
|
@@ -1,17 +1,23 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: analyzing-query-performance
|
|
3
|
-
description:
|
|
4
|
-
|
|
3
|
+
description: 'Execute use when you need to work with query optimization.
|
|
4
|
+
|
|
5
5
|
This skill provides query performance analysis with comprehensive guidance and automation.
|
|
6
|
+
|
|
6
7
|
Trigger with phrases like "optimize queries", "analyze performance",
|
|
8
|
+
|
|
7
9
|
or "improve query speed".
|
|
8
10
|
|
|
11
|
+
'
|
|
9
12
|
allowed-tools: Read, Write, Edit, Grep, Glob, Bash(psql:*), Bash(mysql:*), Bash(mongosh:*)
|
|
10
13
|
version: 1.0.0
|
|
11
14
|
author: Jeremy Longshore <jeremy@intentsolutions.io>
|
|
12
15
|
license: MIT
|
|
13
|
-
|
|
14
|
-
|
|
16
|
+
tags:
|
|
17
|
+
- database
|
|
18
|
+
- performance
|
|
19
|
+
- analyzing-query
|
|
20
|
+
compatibility: Designed for Claude Code, also compatible with Codex and OpenClaw
|
|
15
21
|
---
|
|
16
22
|
# Query Performance Analyzer
|
|
17
23
|
|
|
@@ -87,4 +93,4 @@ Analyze slow database queries using execution plans, wait statistics, and I/O me
|
|
|
87
93
|
- pg_stat_statements reference: https://www.postgresql.org/docs/current/pgstatstatements.html
|
|
88
94
|
- MySQL EXPLAIN output format: https://dev.mysql.com/doc/refman/8.0/en/explain-output.html
|
|
89
95
|
- Use The Index, Luke (SQL indexing guide): https://use-the-index-luke.com/
|
|
90
|
-
- pgMustard EXPLAIN visualizer: https://www.pgmustard.com/
|
|
96
|
+
- pgMustard EXPLAIN visualizer: https://www.pgmustard.com/
|
|
@@ -6,6 +6,6 @@ Bundled resources for query-performance-analyzer skill
|
|
|
6
6
|
- [x] index_advisor.py: Analyzes query patterns and recommends optimal indexes.
|
|
7
7
|
- [x] query_rewriter.py: Suggests alternative query formulations for better performance.
|
|
8
8
|
|
|
9
|
-
|
|
10
9
|
## Auto-Generated
|
|
10
|
+
|
|
11
11
|
Scripts generated on 2025-12-10 03:48:17
|