This skill migrates Snowflake dbt models to Google BigQuery SQL. It handles SQL compilation, masks Jinja macro placeholders, uses the BigQuery Translation Service migration workflow, applies AST-based config transformations, and enforces house standards: a copyright header at the top of each file, explicit type casts, standardized JSON extraction, and deduplication with QUALIFY on _extracted_at.
The agent works from a tasks.md file under migration_plan, logging progress and a closing summary so a human supervisor can follow along and so it can recover from errors. Setup needs the Google Cloud SDK, gcloud authentication, a project with billing, the BigQuery, Migration and Storage APIs enabled, and a region. A new project starts by asking for a migration name, input and output directories, a GCS staging bucket, a region and optional source metadata. Bundled scripts include dbt_translator.py and bulk_translate_via_gcloud.py. It is not for generic BigQuery queries or non-Snowflake migrations.