SKILL

sql-code-review

Universal SQL code review assistant that performs comprehensive security, maintainability, and code quality analysis across all SQL databases (MySQL, PostgreSQL, SQL Server, Oracle). Focuses on SQL injection prevention, access control, code standards, and anti-pattern detection. Complements SQL optimization prompt for complete development coverage.

Target: Databases. Automatically collected · unverified.

Excerpt from the author’s documentation

Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.

Read the original English text

Topics in the source

  • SQL Code Review
  • 🔒 Security Analysis
  • SQL Injection Prevention
  • Access Control & Permissions
  • Data Protection
  • ⚡ Performance Optimization
  • Query Structure Analysis
  • Index Strategy Review

Perform a thorough SQL code review of ${selection} (or entire project if no selection) focusing on security, performance, maintainability, and database best practices. Principle of Least Privilege: Grant minimum required permissions Role-Based Access: Use database roles instead of direct user permissions Schema Security: Proper schema ownership and access controls Function/Procedure Security: Review DEFINER vs INVOKER rights Sensitive Data Exposure: Avoid SELECT on tables with sensitive columns Audit Logging: Ensure sensitive operations are logged Data Masking: Use views or functions to mask sensitive data Encryption: Verify encrypted storage for sensitive data Missing Indexes: Identify columns that need indexing Over-Indexing: Find unused or redundant indexes Composite Indexes: Multi-column indexes for complex queries Index Maintenance: Check for fragmented or outdated indexes Join Types: Verify appropriate join types (INNER vs LEFT vs EXISTS) Join Order: Optimize for smaller result sets first Cartesian Products: Identify and fix missing join conditions Subquery vs JOIN: Choose the most efficient approach Consistent Naming: Tables, columns, constraints follow consistent patterns D

This is an excerpt. Refer to the complete source and its current requirements.

Source repository
OKHP3/skillz
Source file
community/sql-code-review/SKILL.md
Fixed revision
7b187777d42ab7bc7bab1e5f2c940cd3139ecebf
Read the complete original documentation ↗

Sources and evidence

This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.

Author: OKHP3/skillz · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-10T10:00:54.357Z.

Categories are inferred from names, descriptions and paths. They do not establish compatibility.

License and attribution

MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.

Original license ↗

Synchronization, copying and user-reported success do not mark a resource as runtime-tested.

Limitations and notes

  • Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.