/data-engineering-skills:optimizing-bigquery-queriesfrom data-engineering-skills
Reduces BigQuery cost and runtime through partitioning, clustering, minimizing bytes processed, avoiding SELECT * and full scans, using approximate functions, and sizing slot reservations.
Ships in data-engineering-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
- [ ] Estimate bytes: query validator or --dry_run BEFORE running
- [ ] Partition by date/timestamp; cluster by most-filtered columns
- [ ] Select only needed columns; filter on the partition column
- [ ] Replace exact-distinct/full scans with approx / incremental
- [ ] Materialize repeated aggregates
bq query --dry_run to see bytes billed before spending.SELECT * reads every column's
bytes. List only what you need.APPROX_COUNT_DISTINCT for big cardinality;
use materialized views for common aggregates.Partitioned + clustered table:
CREATE TABLE sales.orders
PARTITION BY DATE(ordered_at)
CLUSTER BY customer_id, status AS
SELECT ...;
Prune-friendly filter (keeps the partition column bare):
-- Good: prunes partitions
WHERE ordered_at >= '2026-01-01' AND ordered_at < '2026-02-01'
-- Bad: function on the column disables pruning
WHERE DATE(ordered_at) = '2026-01-15'
Dry run to see cost:
bq query --use_legacy_sql=false --dry_run 'SELECT ... FROM sales.orders WHERE ...'
Slots: on-demand gives per-query slots with fair scheduling; buy reservations/editions for predictable heavy workloads and isolate ELT from BI with separate reservations.
SELECT * — reads all columns' bytes; the most common cost mistake.DATE(ts) = ...) — disables pruning and
scans the whole table.COUNT(DISTINCT ...) on huge columns — expensive; use
APPROX_COUNT_DISTINCT when exactness isn't required.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub unknown-333/awesome-data-engineering-skills --plugin data-engineering-skills36 skills in this plugin
/authoring-airflow-dagsWrite production-grade Apache Airflow DAGs using the TaskFlow API — idempotent tasks, correct scheduling and catchup, retries/SLAs, connections/variables, and avoiding top-level code. Use when creating or reviewing Airflow DAGs, scheduling pipelines, wiring task dependencies, configuring retries/backfills, or fixing non-idempotent tasks./building-dagster-assetsBuild Dagster pipelines using software-defined assets — asset dependencies, partitions, resources and IO managers, asset checks, and schedules/sensors. Use when creating Dagster assets or jobs, modeling data as assets, adding partitions or backfills, wiring resources/IO managers, or migrating from task-based orchestration to assets./building-dbt-modelsBuild well-structured dbt models — staging/intermediate/marts layers, ref() and source(), materializations, and incremental models with the right strategy. Use when creating or refactoring dbt models, choosing table vs view vs incremental, structuring a dbt project, or writing incremental logic./building-feature-pipelinesBuild ML feature pipelines and feature stores — point-in-time-correct joins to avoid label leakage, offline/online parity, feature freshness and backfills, and materialization with tools like Feast. Use when engineering features for ML, preventing train/serve skew or data leakage, building a feature store, or backfilling historical features for training./building-iceberg-tablesDesign and operate Apache Iceberg tables — partitioning and hidden partitioning, partition/schema evolution, snapshots and time travel, compaction and small-file cleanup, and MERGE/upsert for lakehouse tables on Spark, Flink, Trino, or Snowflake. Use when creating or maintaining Iceberg tables, choosing partitioning, evolving schema/partitions, or fixing small-file and metadata bloat./building-ingestion-pipelinesBuild batch and incremental data ingestion (extract-load) pipelines — full vs incremental extraction, change data capture (CDC), watermarks and high-water marks, API pagination and rate limits, and choosing managed EL tools (Fivetran, Airbyte) vs custom code. Use when ingesting data from databases, APIs, files, or SaaS into a warehouse/lake, or designing incremental extraction and CDC.Other plugins' skills for the same job