Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Analyze database query performance with execution plans and index recommendations
.claude/skills/a5c-ai-db-query-analyzer/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 57% | 0% |
| case-07 | ✗→✓ | ▲ Improved | -34% | 0% |
| case-08 | ✗→✓ | ▲ Improved | -67% | 0% |
| case-09 | ✗→✓ | ▲ Improved | -4% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 7% | 0% |
Analyzes database query performance including execution plan analysis, index recommendations, slow query identification, and optimization suggestions.
json{ "type": "object", "required": ["queries"], "properties": { "queries": { "type": "array", "items": { "type": "object", "properties": { "sql": { "type": "string" }, "name": { "type": "string" } } } }, "database": { "type": "string", "enum": ["postgresql", "mysql", "sqlserver", "oracle"], "default": "postgresql" }, "connectionString": { "type": "string", "description": "Database connection string (optional, for live analysis)" }, "options": { "type": "object", "properties": { "analyzeExplain": { "type": "boolean", "default": true }, "suggestIndexes": { "type": "boolean", "default": true }, "slowQueryThreshold": { "type": "number", "default": 1000, "description": "Slow query threshold in milliseconds" } } } } }
json{ "type": "object", "properties": { "analyses": { "type": "array", "items": { "type": "object", "properties": { "query": { "type": "string" }, "executionPlan": { "type": "object" }, "estimatedCost": { "type": "number" }, "issues": { "type": "array" }, "suggestions": { "type": "array" } } } }, "indexRecommendations": { "type": "array", "items": { "type": "object", "properties": { "table": { "type": "string" }, "columns": { "type": "array" }, "type": { "type": "string" }, "reason": { "type": "string" } } } }, "slowQueries": { "type": "array" } } }
javascript{ kind: 'skill', skill: { name: 'db-query-analyzer', context: { queries: [ { sql: 'SELECT * FROM users WHERE email = ?', name: 'get-user-by-email' } ], database: 'postgresql', options: { analyzeExplain: true, suggestIndexes: true } } } }
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 19,575 | 22,003 | +12% | 1 | 1 | 0% | 2,667 | 4,177 | +57% | 0 | 0 | — |
case-02 | fail→fail | 11,801 | 24,033 | +104% | 1 | 1 | 0% | 1,269 | 5,818 | +358% | 0 | 0 | — |
case-03 | pass→pass | 16,172 | 19,072 | +18% | 1 | 1 | 0% | 3,102 | 4,668 | +50% | 0 | 0 | — |
case-04 | pass→pass | 19,421 | 50,415 | +160% | 1 | 1 | 0% | 3,358 | 4,152 | +24% | 0 | 0 | — |
case-05 | pass→pass | 24,766 | 29,727 | +20% | 1 | 1 | 0% | 3,743 | 5,598 | +50% | 0 | 0 | — |
case-06 | pass→pass | 14,833 | 19,108 | +29% | 1 | 1 | 0% | 2,331 | 3,289 | +41% | 0 | 0 | — |
case-07 | fail→pass | 15,746 | 7,630 | -52% | 1 | 1 | 0% | 1,790 | 1,179 | -34% | 0 | 0 | — |
case-08 | fail→pass | 29,222 | 1,661 | -94% | 1 | 1 | 0% | 3,410 | 1,109 | -67% | 0 | 0 | — |
case-09 | fail→pass | 13,536 | 7,524 | -44% | 1 | 1 | 0% | 2,264 | 2,168 | -4% | 0 | 0 | — |
case-10 | fail→pass | 11,471 | 6,379 | -44% | 1 | 1 | 0% | 1,980 | 2,120 | +7% | 0 | 0 | — |
case-11 | pass→pass | 21,212 | 12,637 | -40% | 1 | 1 | 0% | 2,987 | 3,340 | +12% | 0 | 0 | — |
case-12 | pass→pass | 17,198 | 9,277 | -46% | 1 | 1 | 0% | 2,305 | 2,583 | +12% | 0 | 0 | — |
case-13 | pass→pass | 20,157 | 16,820 | -17% | 1 | 1 | 0% | 2,808 | 3,090 | +10% | 0 | 0 | — |
case-14 | fail→pass | 10,727 | 9,174 | -14% | 1 | 1 | 0% | 2,023 | 2,830 | +40% | 0 | 0 | — |
case-15 | pass→pass | 18,053 | 15,812 | -12% | 1 | 1 | 0% | 3,275 | 2,869 | -12% | 0 | 0 | — |
case-16 | fail→pass | 20,383 | 11,135 | -45% | 1 | 1 | 0% | 2,844 | 1,989 | -30% | 0 | 0 | — |
case-17 | pass→pass | 18,614 | 13,741 | -26% | 1 | 1 | 0% | 2,380 | 2,349 | -1% | 0 | 0 | — |
case-18 | fail→pass | 9,571 | 12,831 | +34% | 1 | 1 | 0% | 827 | 2,356 | +185% | 0 | 0 | — |
case-19 | fail→fail | 8,443 | 15,828 | +87% | 1 | 1 | 0% | 502 | 3,697 | +636% | 0 | 0 | — |
case-20 | fail→pass | 20,446 | 11,765 | -42% | 1 | 1 | 0% | 2,655 | 3,193 | +20% | 0 | 0 | — |
case-21 | fail→pass | 18,759 | 17,008 | -9% | 1 | 1 | 0% | 2,566 | 3,012 | +17% | 0 | 0 | — |
case-22 | fail→pass | 18,851 | 11,152 | -41% | 1 | 1 | 0% | 3,123 | 2,875 | -8% | 0 | 0 | — |
case-23 | fail→pass | 16,974 | 16,271 | -4% | 1 | 1 | 0% | 3,214 | 3,056 | -5% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 23 cases were attempted. The headline lift of +52 percentage points is the difference between those two pass rates over the 23 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.