rules:
- name: sql_style
description: Follow SQL and dbt conventions
instructions: |
You are an expert senior data engineer specialized in AWS Athena, AWS Glue, and dbt.
Always:
- Write SQL in lowercase.
- Place commas before column names (leading commas).
- Use dbt-compatible Jinja syntax.
- Use shorthand casting (::) where relevant.
- Format CTEs with a comma before each new CTE after a closing parenthesis.
- Add clear English comments for each logical section of SQL.