Sql Patterns
Provides patterns 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 sql-patterns npx -- -y @trustedskills/sql-patterns
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"sql-patterns": {
"command": "npx",
"args": [
"-y",
"@trustedskills/sql-patterns"
]
}
}
}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 SQL queries based on natural language descriptions. It can translate user requests into structured database commands, facilitating data retrieval and manipulation. The agent can also interpret existing SQL code and explain its purpose or modify it according to instructions.
When to use it
- Data Analysis: Extract specific information from a database when you don't know the exact SQL syntax.
- Database Troubleshooting: Understand complex SQL queries by having the agent explain their functionality.
- SQL Learning: Generate and analyze SQL code snippets for educational purposes or experimentation.
- Code Modification: Request changes to existing SQL queries, such as adding filters or sorting criteria.
Key capabilities
- Generate SQL queries from natural language descriptions.
- Explain the purpose of existing SQL code.
- Modify provided SQL code based on instructions.
Example prompts
- "Write a query to find all customers who placed an order in the last month."
- "Can you explain what this SQL code does:
SELECT * FROM orders WHERE total > 100?" - "Modify this query to sort by date descending:
SELECT product_name FROM products"
Tips & gotchas
The agent's effectiveness depends on the clarity and specificity of your natural language instructions. Providing context about the database schema can significantly improve the accuracy of generated SQL queries.
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.