Conventions and review steps for writing analytics SQL against the warehouse. Use whenever the task involves querying tables, building a report, or aggregating metrics.
68
82%
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
Apply this skill before writing or running any analytics SQL so reports stay consistent and safe.
Use this skill when the task involves:
SELECT explicit column names, never SELECT *.order_count, not count(*)).LIMIT unless an aggregate already collapses
the result set.COUNT(DISTINCT ...) over a sub-query when de-duplicating.SELECT *.Return the final SQL in a fenced ```sql block, then one sentence describing what the query returns.
1f529f3
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.