dbt-sf-to-bq-translator
하는 일
이 스킬은 dbt 데이터 모델을 Snowflake에서 Google Cloud의 BigQuery로 옮깁니다. dbt 파이프라인을 옮기면서 결과물이 Google의 표준을 따르기를 원하는 데이터 팀을 위한 스킬입니다.
사용하는 경우
- ✓Snowflake dbt 파이프라인이나 모델을 BigQuery로 옮기고 있을 때.
- ✓Snowflake dbt SQL을 템플릿을 그대로 둔 채 BigQuery SQL로 번역해야 할 때.
- ✓마이그레이션 계획이 작업 파일에 진행 상황을 기록하고, 각 단계가 실행될 때마다 기록되기를 원할 때.
스킬 링크
https://github.com/google/skills/blob/main/skills/cloud/dbt-sf-to-bq-translator/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 폴더의 Snowflake dbt 모델을 BigQuery SQL로 변환하고, 진행 상황을 마이그레이션 작업 파일에 기록해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
Snowflake SQL을 컴파일하고, dbt Jinja 매크로를 보호한 뒤, BigQuery 마이그레이션 서비스로 쿼리를 번역합니다. 그다음 저작권 헤더와 명시적 형 변환 같은 Google 표준을 적용합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
dbt Snowflake to BigQuery Translator
You are responsible for:
- Dialect Translation: Translating Snowflake dbt SQL models to Standardized BigQuery SQL on Google Cloud.
- Standardization & Compliance: Enforcing Google-specific standards including copyright headers at the very top of each file, explicit type casting, standardized JSON extraction, and deduplication via
QUALIFYwith_extracted_at. - Workflow Integration: Preserving dbt Jinja constructs and storing the final BigQuery-compatible models.
Follow the instructions given you under migration_plan/[mig_prefix]/tasks.md. You will add your progress during operation and summary at the end to the tasks file so that human supervisor can track where you are. You recover from errors by checking the tasks file.
Attribution
MUST READ: Before executing any gcloud, REST API, or MCP command, you
MUST read Usage Attribution. For commands executed
directly in the terminal (never in generated scripts, Terraform, or user code),
prefix gcloud with
CLOUDSDK_METRICS_REQUEST_ATTRIBUTION="agent-skills/1.0 (skill:dbt-sf-to-bq-translator)"
and append agent-skills/1.0 (skill:dbt-sf-to-bq-translator) to
User-Agent headers.
Prerequisites & Environment Setup
Before starting the translation, ensure your Google Cloud environment is properly configured:
- Google Cloud SDK: Install the Google Cloud SDK if not already installed.
- Authentication: Authenticate your CLI session:
gcloud auth login gcloud auth application-default login - Project Configuration: Set your active Google Cloud project:
gcloud config set project {project_id} - Billing Account: Verify that an active Google Cloud Billing account is attached to the target project.
- Enable Required APIs: Ensure BigQuery, Migration, and Storage services are enabled:
gcloud services enable bigquerymigration.googleapis.com storage.googleapis.com bigquery.googleapis.com - Region Selection: Configure your preferred compute/BigQuery region (default recommended:
us-central1orus). See Google Cloud Locations:gcloud config set compute/region us-central1
Steps
Initialization & Setup: If you do not have a defined
mig_prefixor if the user wants to start a new translation project, you MUST first ask the user for:- Migration Project Name (e.g.
my_migration_project). - Input directory containing Snowflake SQL files.
- Output directory where BigQuery SQL files should be saved.
- Cloud Storage bucket name for staging translation assets.
- Google Cloud region (e.g.
usoreu). - (Optional) Local path to a directory or
.zipfile containing source database metadata (such ascolumns.csvortables.csv). Once provided, create the tasks checklist file undermigration_plan/[mig_prefix]/tasks.mdwith unchecked tasks representing the migration steps.
- Migration Project Name (e.g.
Automated Execution via Bundled Scripts: Execute the deterministic end-to-end migration using the bundled translation script
scripts/bulk_translate_via_gcloud.py:python3 scripts/bulk_translate_via_gcloud.py \ --input {input_dir} \ --output {output_dir} \ --bucket {gcs_bucket} \ --location {region} \ [--metadata {metadata_path}] \ [--array-cast-mode {array_cast_mode}] \ [--struct-columns {struct_columns}]Flag Default Description --input(Required) Local directory containing source Snowflake dbt .sqland.ymlfiles.--output(Required) Target directory for translated BigQuery dbt .sqland.ymlfiles.--bucket(Required) Cloud Storage bucket name used to stage translation inputs and outputs. --locationusGoogle Cloud region for BigQuery Translation Service execution (e.g., us,eu).--metadataNoneOptional path to a directory or .ziparchive containing sourcetables.csvandcolumns.csv.--array-cast-modearray_stringTarget conversion for BQMS ARRAY<JSON>casts. Usearray_string(ARRAY<STRING>) by default; usestring(STRING),json_extract_string_array, orpreserveas escape hatches when required by the source table schema.`--struct-columns
자주 묻는 질문
dbt 템플릿을 유지하나요?
네. Jinja 구문을 유지하고, 최종 모델을 BigQuery에서 쓸 수 있게 저장합니다.
진행 상황은 어디에 기록되나요?
마이그레이션 작업 파일에 기록되며, 작업하면서 계속 업데이트됩니다.
일반 BigQuery 쿼리도 다루나요?
아닙니다. 일반 BigQuery 쿼리가 아니라 Snowflake dbt 모델 마이그레이션을 위한 것입니다.
상세 정보
작성자의 원본 설명
Translates Snowflake dbt SQL models to Standardized BigQuery SQL. Handles SQL compilation, Jinja macro placeholder masking, BigQuery Translation Service migration workflows, AST-based config transformations, explicit type casting, JSON extraction standardization, and deduplication. Use when migrating Snowflake dbt pipelines or models to BigQuery on Google Cloud. Don't use for generic BigQuery queries or non-Snowflake SQL migrations.
repo: google/skills
인기도
- GitHub 스타
- 22k
- 순위
- #10252
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
finding-google-skills
22k에이전트가 호스팅, 데이터베이스, 저장소, 로그인, AI 모델 제공처럼 설정 작업에 맞는 Google 가이드를 찾도록 돕습니다.
gcloud
22k에이전트가 Google Cloud gcloud 명령을 작성하고 확인하도록 돕습니다. 플래그를 추측하지 않도록 무엇이든 실행하기 전에 정확한 문법을 확인합니다.
google-cloud-recipe-auth
22k에이전트가 Google Cloud의 신원과 접근 권한을 안내합니다. 사람과 서비스가 어떻게 로그인하고 어떤 권한을 받는지 포함합니다.
google-cloud-recipe-onboarding
22k새 개발자가 Google Cloud에서 프로젝트 선택, 결제 연결, 첫 리소스 배포 같은 첫 단계를 밟도록 안내합니다.
비슷한 스킬
discrawl
394k에이전트가 저장된 로컬 Discord 메시지 보관본을 검색하고 요약하며, 최신 상태를 확인하고 다이렉트 메시지를 읽도록 돕습니다.
clickhouse-io
280k에이전트가 ClickHouse 데이터베이스의 쿼리와 스키마를 최적화하도록 돕습니다. 고성능 분석 작업의 모범 사례를 적용합니다. 분석 쿼리가 느릴 때 씁니다.
scientific-db-pubmed-database
280k생의학 분야의 과학 논문을 에이전트가 검색하도록 돕습니다. 특정 의학 정보가 필요한 연구에 유용합니다.