Sql Reporting sql-reporting
Conventions and review steps for writing analytics SQL against the warehouse.
Use it when the task involves querying tables, building a report, or aggregating metrics.
Works in Claude, ChatGPT, Codex and more
- Our test
- —
- not tested yet
- GitHub stars
- 48k
- apache/airflow
- Added by
- 0
- members
- Updated
- Dec 6
- commit b80493c
- Content
- 1 file
- no scripts · 1 KB
- License
- Apache 2.0
- free to use
What our test found
Not tested yet. Our model tries every skill on a realistic request and scores the result, the most popular skills first. Until then, the safety checks on the right still apply.
name: sql-reporting description: Conventions and review steps for writing analytics SQL against the warehouse. Use whenever the task involves querying tables, building a report, or aggregating metrics. license: Apache-2.0
<!-- SPDX-License-Identifier: Apache-2.0 https://www.apache.org/licenses/LICENSE-2.0 -->
SQL Reporting Skill
Apply this skill before writing or running any analytics SQL so reports stay consistent and safe.
When to Use This Skill
Use this skill when the task involves:
- Querying warehouse tables for a metric, report, or dashboard figure
- Aggregating rows (counts, sums, rolling windows)
- Cross-referencing two or more tables
Conventions
- Always
SELECTexplicit column names, neverSELECT *. - Filter on a partition/date column first to bound the scan.
- Alias aggregates with snake_case names (
order_count, notcount(*)). - Cap exploratory queries with
LIMITunless an aggregate already collapses the result set. - Prefer
COUNT(DISTINCT ...)over a sub-query when de-duplicating.
Review Checklist (run before returning an answer)
- [ ] No
SELECT *. - [ ] A date or partition predicate is present.
- [ ] Every aggregate has an explicit alias.
- [ ] The query reads only from tables the task actually needs.
Output Format
Return the final SQL in a fenced ```sql block, then one sentence describing what the query returns.