Review Sql

🌐Community
by nesnilnehc · vlatest · Repository

Provides code review 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.

1

Run in terminal (recommended)

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

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

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

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

About This Skill

What it does

The review-sql skill allows AI agents to analyze and critique SQL queries. It can identify potential errors, suggest improvements for efficiency or readability, and explain the query's logic in plain English. This skill is designed to help users understand complex SQL code and ensure its correctness before execution.

When to use it

  • Debugging: You have a SQL query that isn’t returning the expected results and need assistance identifying the issue.
  • Optimization: You want to improve the performance of an existing SQL query, but aren't sure where to start.
  • Learning: You are new to SQL or trying to understand a complex query written by someone else.
  • Code Review: You need a quick assessment of a colleague’s SQL code for potential errors or inefficiencies.

Key capabilities

  • Error identification in SQL queries
  • Suggestion of improvements for efficiency and readability
  • Explanation of SQL query logic in plain English

Example prompts

  • "Review this SQL query: SELECT * FROM users WHERE age > 30."
  • "Can you suggest ways to optimize this query: SELECT product_name, price FROM products ORDER BY price DESC LIMIT 10?"
  • "Explain what this SQL query does: SELECT COUNT(*) FROM orders WHERE order_date BETWEEN '2023-01-01' AND '2023-12-31'."

Tips & gotchas

The skill requires a valid SQL query as input. Complex or very large queries may take longer to process, and the quality of feedback depends on the clarity and correctness of the original SQL code.

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
nesnilnehc
Installs
18

🌐 Community

Passed automated security scans.