Sql Code Review

🏢Official
by github · vlatest · Repository

Official github skill for code review — helps with 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 sql-code-review npx -- -y @trustedskills/sql-code-review
2

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

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

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

About This Skill

What it does

The SQL Code Review skill analyzes SQL queries for syntax errors, performance issues, and best practices. It helps identify inefficient queries, potential security vulnerabilities like SQL injection risks, and suggests optimizations such as proper indexing or query restructuring.

When to use it

  • Before deploying a new SQL script to production to catch errors early
  • To review legacy SQL code for optimization opportunities
  • During collaborative development to ensure consistent coding standards
  • When troubleshooting slow-running queries in a database

Key capabilities

  • Syntax validation and error detection
  • Performance analysis and optimization suggestions
  • Security checks for common vulnerabilities
  • Code style and best practice recommendations

Example prompts

  • "Review this SQL query for performance issues: SELECT * FROM users WHERE id > 100"
  • "Check if this SQL code is vulnerable to SQL injection"
  • "Suggest improvements for the following query: UPDATE orders SET status = 'completed' WHERE order_id IN (SELECT id FROM temp_table)"

Tips & gotchas

  • Ensure your SQL dialect (e.g., PostgreSQL, MySQL) is specified for accurate review.
  • While the tool can flag issues, it may not always provide context-specific fixes—manual verification is recommended.

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
github
Installs
4.1k

🏢 Official

Published by the company or team that built the technology.