Sql Queries

🏢Official
by anthropics · vlatest · Repository

This skill generates SQL queries from natural language descriptions, streamlining database interaction and simplifying data retrieval for users.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add sql-queries npx -- -y @trustedskills/sql-queries
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "sql-queries": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/sql-queries"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

This skill enables AI agents to generate and execute SQL queries for interacting with relational databases. It supports query creation, data retrieval, filtering, sorting, and basic analysis using standard SQL syntax.

When to use it

  • You need to extract specific data from a database table based on certain conditions.
  • You want to perform aggregations like counting records or calculating averages.
  • Your AI agent needs to generate reports by querying structured data sources.
  • You're automating tasks that require interacting with a SQL-based backend system.

Key capabilities

  • Generate SELECT, INSERT, UPDATE, and DELETE queries
  • Filter data using WHERE clauses
  • Sort results with ORDER BY
  • Perform basic aggregations (COUNT, SUM, AVG)
  • Join multiple tables using JOIN operations

Example prompts

  • "Find all users who registered in the last 30 days."
  • "Calculate the total sales per product category from the sales table."
  • "Generate a SQL query to insert a new customer into the customers table."

Tips & gotchas

  • Ensure your AI agent has access to the correct database credentials and permissions.
  • Complex queries may require additional validation or optimization for performance.

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 HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
anthropics
Installs
220

🏢 Official

Published by the company or team that built the technology.