Use this skill when writing SQL queries — selects, joins, aggregations, window functions, or schema modifications. Apply whenever SQL is needed to ensure correctness, safety, and performance.
74
92%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Query quality:
SELECT col1, col2 — never SELECT * in production code.WITH) for readability instead of deeply nested subqueries.WHERE before JOIN when possible to reduce data scanned.EXPLAIN / EXPLAIN ANALYZE to inspect query plans for slow queries.Safety:
DELETE, UPDATE, DROP) in a transaction.Naming: snake_case for tables/columns, descriptive names, consistent pluralization.
922caf3
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.