SQL Slow Query Diagnosis
Diagnose slow SQL queries from EXPLAIN plans and propose concrete optimizations.
Executive Summary
Short answer: Diagnose slow SQL queries from EXPLAIN plans and propose concrete optimizations.. Input is Slow query, EXPLAIN plan, schema, indexes, data volume; output is Bottleneck analysis, index suggestions, rewritten query.
Capabilities on this page come from Clavue Bot's built-in catalog; no 1:1 alignment with any third-party product is claimed.
Commercial ROI & Use Cases
SQL Slow Query Diagnosis reduces repeated manual work and gets a reviewable result faster.
- Demand topics: Coding & DevOps
Input/Output Contract
| Input | Output | Tools / Connectors |
|---|---|---|
| Slow query, EXPLAIN plan, schema, indexes, data volume | Bottleneck analysis, index suggestions, rewritten query | Code · Files · GitHub |
Connect tools first · Actions like sending mail or making payments always ask for your confirmation first.
Workflow & Instructions
Read the query and its EXPLAIN plan.
Identify full scans, bad joins and sort operations.
Check existing indexes against filter and join columns.
Propose a minimal index or a rewritten query.
Explain the expected impact and verification query.
Actions like sending mail or making payments always ask for your confirmation first.
SKILL.md
# SQL Slow Query Diagnosis
> Diagnose slow SQL queries from EXPLAIN plans and propose concrete optimizations.
## Input/Output Contract
- **Input:** Slow query, EXPLAIN plan, schema, indexes, data volume
- **Output:** Bottleneck analysis, index suggestions, rewritten query
## Workflow & Instructions
2. Read the query and its EXPLAIN plan.
4. Identify full scans, bad joins and sort operations.
6. Check existing indexes against filter and join columns.
8. Propose a minimal index or a rewritten query.
10. Explain the expected impact and verification query.
## Starter Prompt
```text
Analyze this slow query and its EXPLAIN plan and suggest indexes.
```
Starter Prompt
Analyze this slow query and its EXPLAIN plan and suggest indexes.
FAQ
Is this a real capability in Clavue Bot?
Yes. This page is generated from the product's built-in catalog; names, inputs/outputs and steps correspond to real scenarios, skills, MCP tools or digital employees.
Do I need to configure extra tools or connectors?
Entries marked 'Ready to use' need no extra tools. 'Needs tools' entries list the required connectors — just authorize them on first run.
Will it send emails or make payments without confirmation?
No. Outbound actions such as sending mail, making payments or submitting forms pause for your confirmation and continue only after you approve.