Codex skills for SQL

These skills change how Codex writes and reviews SQL across Postgres, MySQL, BigQuery, Snowflake, DuckDB and ClickHouse: window frames are stated, metrics are defined in a sentence first, and join fan-out or NULL mistakes are shown with a small fixture. dbt models, warehouse cost and injection-safe query building are covered too.

17 more SQL skills

Every SQL skill in one command

Installs these 20 into ~/.agents/skills/. Add --project after -- to install into the current repository instead.

The installer is a 104-line POSIX shell script. It fetches the skills you name from codexskills.dev and unpacks each into its own folder in your skills directory. No sudo, no telemetry, and every skill page shows the full SKILL.md first. Read install.sh

curl -fsSL codexskills.dev/install.sh | sh -s -- sql-window-functions sql-query-review snowflake-sql sql-for-analytics sql-injection-prevention duckdb-analytics dbt-models clickhouse-analytics dbt-testing bigquery-optimization postgres-query-tuning drizzle-orm kysely-query-builder api-pagination dagster-pipelines dimensional-modeling exploratory-data-analysis csv-processing postgres-schema-design pyspark-jobs

SQL FAQ

Can Codex review SQL queries for correctness, not just speed?

SQL Query Review checks NULL semantics, join fan-out, time boundaries, injection, unbounded UPDATE or DELETE and concurrency before looking at performance. It ships a standard-library scanner, run as python3 scripts/sql_risk_scan.py on .sql files, and each confirmed finding comes with a tiny VALUES fixture showing the wrong and expected results.

Which SQL dialects do the window function and analytics skills support?

SQL Window Functions covers PostgreSQL, MySQL 8, SQLite, SQL Server, BigQuery, Snowflake and DuckDB, and uses QUALIFY only where the dialect supports it, with alternatives such as DISTINCT ON in Postgres. SQL for Analytics handles dialect differences between Postgres, DuckDB, BigQuery and Snowflake for funnels, cohorts and active-user metrics.

Is there a Codex skill for dbt incremental models?

dbt Models targets dbt Core 1.8 to 1.10, writes incremental models with merge, delete+insert or microbatch strategies, and adds lookback windows so late-arriving rows are not dropped. It previews with dbt show and never runs dbt run or build against a production target, or a costly --full-refresh, without your confirmation. dbt Testing adds grain, relationship and unit tests in the syntax your dbt version expects.

How do I install all 20 SQL skills at once?

Pass every name to the installer in one command: curl -fsSL https://codexskills.dev/install.sh | sh -s -- sql-window-functions sql-query-review snowflake-sql sql-for-analytics sql-injection-prevention duckdb-analytics dbt-models clickhouse-analytics dbt-testing bigquery-optimization postgres-query-tuning drizzle-orm kysely-query-builder api-pagination dagster-pipelines dimensional-modeling exploratory-data-analysis csv-processing postgres-schema-design pyspark-jobs. Add --project right after -- to put them in the current repository's .agents/skills/ so your team gets them too.

Which SQL skill should I try first?

SQL Window Functions is the closest fit for most SQL work. Mention it with $sql-window-functions in a prompt to load it on purpose; after that, Codex picks it up on its own whenever a task matches.

esc