Raw SQL Writing & Security
Writes and optimizes secure, parameterized MariaDB and MySQL queries while preventing SQL injection vulnerabilities.
This skill empowers Claude to handle complex raw SQL tasks within MariaDB and MySQL environments, prioritizing security through mandatory parameterization and performance via EXPLAIN analysis. It is specifically designed for scenarios where standard ORMs or Query Builders are insufficient, providing expert guidance on raw migrations, database seeders, and debugging slow queries. By enforcing strict syntax rules and prohibiting variable interpolation, it ensures that all database interactions remain performant, maintainable, and resilient against injection attacks.
Key Features
01Expertise in raw database migrations and DB::statement seeders
02Performance optimization through EXPLAIN statement analysis
03Strict enforcement of MariaDB and MySQL specific syntax
04Mandatory query parameterization using ? or named placeholders
05Prevention of unsafe PHP variable interpolation in SQL strings
067 GitHub stars
Use Cases
01Debugging and optimizing slow database queries using execution plan analysis
02Refactoring legacy raw SQL queries to prevent SQL injection vulnerabilities
03Writing complex, high-performance queries that exceed the capabilities of standard ORMs