library/specializations/software-architecture/skills/db-query-analyzer/SKILL.md
Analyze database query performance with execution plans and index recommendations
npx skillsauth add a5c-ai/babysitter db-query-analyzerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Analyzes database query performance including execution plan analysis, index recommendations, slow query identification, and optimization suggestions.
{
"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"
}
}
}
}
}
{
"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"
}
}
}
{
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
}
}
}
}
development
Model documentation skill for generating model cards following Google's model card framework.
development
MLflow integration skill for experiment tracking, model registry, and artifact management. Enables LLMs to log experiments, compare runs, manage model lifecycle, and retrieve artifacts through the MLflow API.
data-ai
LIME-based local explanation skill for individual predictions across tabular, text, and image data.
devops
Kubeflow Pipelines skill for ML workflow orchestration, component management, and Kubernetes-native ML.