Sql Analysis
Provides analysis guidance and assistance for working with databases and data persistence.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add spjoshis-sql-analysis npx -- -y @trustedskills/spjoshis-sql-analysis
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"spjoshis-sql-analysis": {
"command": "npx",
"args": [
"-y",
"@trustedskills/spjoshis-sql-analysis"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill allows AI agents to analyze SQL queries and database schemas. It can generate explanations of query logic, identify potential performance bottlenecks, and suggest improvements based on best practices. The agent can also extract relevant information from database schemas like table structures and relationships.
When to use it
- Debugging slow queries: Provide a complex SQL query and ask the agent to analyze its performance and suggest optimizations.
- Understanding unfamiliar code: Give the agent an existing SQL query and request a plain-language explanation of what it does.
- Database schema exploration: Ask the agent to describe the tables and relationships within a database schema.
- Learning best practices: Request that the agent review a query and provide feedback on how to improve its efficiency and readability.
Key capabilities
- SQL Query Analysis
- Performance Bottleneck Identification
- Query Optimization Suggestions
- Database Schema Interpretation
Example prompts
- "Analyze this SQL query:
SELECT * FROM orders WHERE customer_id = 123;and suggest improvements." - "Explain what the following SQL query does in plain English:
...complex query here..." - "Describe the tables and relationships in the 'ecommerce' database schema."
Tips & gotchas
The agent requires access to the relevant SQL queries or database schemas to function correctly. Providing clear and well-formatted SQL code will yield more accurate and helpful results.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.