SQL Writing & Optimization
Writes secure, optimized MariaDB and MySQL raw SQL queries while preventing SQL injection through strict parameterization.
The sql-writing skill provides Claude with specialized guidance for crafting, auditing, and optimizing raw SQL statements specifically for MariaDB and MySQL environments. It enforces a security-first approach by mandating query parameterization and explicitly prohibiting dangerous PHP variable interpolation. This skill is essential for developers writing complex migrations, database seeders, or performance-critical queries where the standard ORM query builder is insufficient, offering built-in procedures for EXPLAIN analysis to ensure high-performance database interactions.
主要功能
01Strict enforcement of query parameterization to prevent SQL injection
02Optimized for MariaDB and MySQL-specific syntax and patterns
03Performance auditing via EXPLAIN for complex query analysis
04Secure generation of raw SQL migrations and database seeders
05Detection of unsafe PHP variable interpolation in SQL strings
067 GitHub stars
使用场景
01Writing complex raw SQL queries that exceed the capabilities of Eloquent or standard Query Builders
02Optimizing slow database interactions by analyzing execution plans and index usage
03Auditing legacy codebases for SQL injection vulnerabilities and unparameterized queries