Modern Sql Style
This skill applies modern SQL best practices for improved readability and maintainability of your queries.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add modern-sql-style npx -- -y @trustedskills/modern-sql-style
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"modern-sql-style": {
"command": "npx",
"args": [
"-y",
"@trustedskills/modern-sql-style"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill allows AI agents to understand and generate SQL queries using modern SQL syntax. It supports features like window functions, common table expressions (CTEs), and advanced data aggregation techniques. The agent can translate natural language requests into efficient SQL statements for querying databases.
When to use it
- Data Analysis: Extract specific insights from a database by formulating complex analytical queries.
- Report Generation: Automate the creation of reports by generating SQL queries that retrieve and format data.
- Database Migration: Translate existing SQL code into modern syntax for improved performance and compatibility.
- Data Transformation: Construct SQL statements to cleanse, transform, and prepare data for downstream processes.
Key capabilities
- Modern SQL Syntax Support
- Window Functions
- Common Table Expressions (CTEs)
- Advanced Data Aggregation
Example prompts
- "Write a query to find the top 5 customers by total order value."
- "Generate a CTE that calculates the running total of sales for each month, then select the month and running total."
- “Create a SQL query to calculate the average salary per department.”
Tips & gotchas
The agent's performance depends on its understanding of the database schema. Providing context about table names and column descriptions will improve accuracy.
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.