Sql Queries

🌐Community
by phuryn · vlatest · Repository

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.

1

Run in terminal (recommended)

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

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

~/.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 HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
phuryn
Installs
10

🌐 Community

Passed automated security scans.