Sql Queries
Generates SQL queries from natural language descriptions, streamlining database interaction and simplifying complex data retrieval tasks.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add phuryn-sql-queries npx -- -y @trustedskills/phuryn-sql-queries
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"phuryn-sql-queries": {
"command": "npx",
"args": [
"-y",
"@trustedskills/phuryn-sql-queries"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill allows AI agents to generate and execute SQL queries against a database. It can retrieve specific data based on complex criteria, perform calculations within the query itself, and format results for easy understanding. The agent can also receive feedback and refine its queries iteratively.
When to use it
- Data Extraction: Retrieve customer order history from an e-commerce database.
- Report Generation: Create a report showing monthly sales figures by product category.
- Data Analysis: Identify trends in website traffic data stored in a relational database.
- Database Troubleshooting: Generate queries to identify and diagnose issues within a database schema or populate test data.
Key capabilities
- SQL query generation
- Query execution
- Result formatting
- Iterative refinement based on feedback
Example prompts
- "Write a SQL query to find all customers who placed an order in the last month."
- "Generate a query that calculates the average price of products in the 'electronics' category."
- "Can you create a query to list employees sorted by salary, descending?"
Tips & gotchas
The skill requires access to a database and appropriate credentials. Be mindful of potential security implications when providing database connection details to an AI agent.
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.