sql-review

Review SQL files for syntax, anti-patterns, readability, and injection risks.

792|138|Updated Feb 27, 2026
One-click install
npx skills add https://github.com/AltimateAI/altimate-code --skill sql-review
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sql-review
Source: https://github.com/AltimateAI/altimate-code/tree/main/.opencode/skills/sql-review
Command: npx skills add https://github.com/AltimateAI/altimate-code --skill sql-review

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Pre-merge SQL lint and safety checks to catch anti-patterns, assess readability and performance, validate syntax, and detect injection threats before code merges.

Core Features & Use Cases

  • Lint 26 anti-patterns (e.g., SELECT *, NULL comparisons, implicit casts) to improve safety and maintainability.
  • Readability and performance grading across categories such as Readability, Performance, Correctness, and Best Practices.
  • Injection and PII detection to prevent data leaks and insecure patterns.
  • Batch scan of SQL files across a repository or pull request for a consolidated review.
  • Integrates into CI pipelines or manual reviews to inform merge decisions.

Quick Start

Run a full SQL review on your changed files using the sql-review skill.

Frequently Asked Questions about sql-review

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run pre-merge SQL lint and safety checks on a pull request?

Pre-merge SQL lint and safety checks can be run on changed files in a pull request to catch anti-patterns, validate syntax, and detect injection threats before merging.

What SQL anti-patterns are caught during code review?

SQL code review catches 26 anti-patterns, including SELECT *, NULL comparisons, and implicit casts, to improve database safety and maintainability before merging.

Can I batch scan SQL files across a repository for readability and performance grading?

Batch scanning SQL files across a repository grades readability, performance, correctness, and best practices to provide a consolidated review for codebase audits.

Does SQL linting detect PII and injection vulnerabilities in database queries?

SQL linting includes injection and PII detection to prevent data leaks and identify insecure patterns in database queries before code merges.

How do I integrate SQL quality analysis into a CI pipeline?

SQL quality analysis integrates into CI pipelines to enforce syntax validation, anti-pattern linting, and readability grading, informing automated merge decisions.

What is the best way to validate SQL syntax before merging database changes?

Validating SQL syntax before merging database changes is best handled by running a full SQL review to assess quality, performance, and security across changed files.