bigquery-optimization
하는 일
이 스킬은 BigQuery 지출을 줄이고 더 빠르게 실행되도록 돕습니다. BigQuery 요금, 테이블, 예약을 관리하는 사람을 위한 스킬입니다.
사용하는 경우
- ✓BigQuery 요금을 낮추고 싶거나 돈이 어디에 쓰이는지 찾고 싶을 때.
- ✓BigQuery 에디션이나 예약 규모를 바꿀지 결정해야 할 때.
- ✓큰 BigQuery 테이블에 파티셔닝이나 클러스터링을 추가하고 싶을 때.
스킬 링크
https://github.com/google/skills/blob/main/skills/cloud/bigquery-optimization/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“BigQuery 요금이 많이 늘었어요. 비용이 큰 테이블과 쿼리를 찾고 비용을 낮추는 방법을 제안해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
테이블, 저장소, 쿼리를 비용과 속도 측면에서 분석한 다음, 파티셔닝, 클러스터링, 더 나은 저장 모델 등을 제안합니다. 각 변경안을 설명하므로 적용 여부를 직접 정할 수 있습니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
BigQuery Optimization Workflow
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:bigquery-optimization)"
and append agent-skills/1.0 (skill:bigquery-optimization) to User-Agent headers.
Prerequisites & Environment Setup
Before executing optimization analyses, evaluating editions, or applying DDL modifications:
Google Cloud SDK: Ensure the Google Cloud SDK is installed and configured.
Project Selection: Set the active Google Cloud project:
gcloud config set project {project_id}API Enablement: Ensure BigQuery and BigQuery Reservation APIs are enabled:
gcloud services enable \ bigquery.googleapis.com bigqueryreservation.googleapis.comAuthentication: Authenticate the environment:
- CLI tools and
bqcommands:gcloud auth login - SDKs and automation:
gcloud auth application-default login - Service accounts: Set
GOOGLE_APPLICATION_CREDENTIALS="/path/to/key.json"
- CLI tools and
Billing & IAM Roles:
- Verify an active Google Cloud Billing account is attached to
{project_id}. - Ensure appropriate IAM roles:
roles/bigquery.adminorroles/bigquery.resourceAdmin: Reservation and capacity commitment management.roles/bigquery.dataEditororroles/bigquery.admin: Modifying table schemas, partitioning, clustering, and storage billing models.roles/bigquery.jobUser: Running evaluation queries.
- Verify an active Google Cloud Billing account is attached to
Companion Skills Installation: This skill is part of a 3-pillar operations suite (
bigquery-observability,bigquery-optimization,bigquery-troubleshooting). If any companion skill is not yet installed in your environment, install the full suite:npx skills add google/skills --skill bigquery-observability --skill bigquery-optimization --skill bigquery-troubleshooting(If
bigquery-observabilityis not installed, use the self-contained baseline formulas and query templates provided directly in the reference sections below).
Workflows
Determine the optimization focus of the user's request and follow the relevant workflow:
- Telemetry & Observability Baseline: For direct raw usage telemetry,
INFORMATION_SCHEMAqueries, and baseline metric calculations, consult bigquery-observability (bigquery_observability). If thebigquery-observabilitycompanion skill is not available in the active environment, all optimization guidelines, DDL templates, and decision models across this skill and its reference guides are fully self-contained. - Capacity & Editions Modeling: Evaluate the cost-efficiency of migrating
workloads from On-Demand to Editions, as well as rightsizing active Edition
reservations, baseline commitments, and autoscaling caps.
- Instructions: Read
references/capacity_planning_editions.mdto provide deep links to BigQuery's built-in recommendation UIs (e.g., Slot Estimator) and guide the user through UI navigation: 1. navigate to the Slot Estimator tab, 2. select 'On-Demand' as the source to analyze historical query volume, and 3. review the Cost-Optimized Recommendations and Slot Usage Chart.
- Instructions: Read
- Table & Storage Optimization: Optimize storage costs from a billing
model, physical layout, and lifecycle perspective.
- Billing Architecture: Read
references/storage_billing_models.mdfor guidance on evaluating aggregate compression ratios (e.g. >2:1 threshold in US) to recommend Physical vs. Logical billing, noting that the break-even ratio depends on specific regional rates and custom enterprise contracts. When providingTABLE_STORAGEqueries, always scope withWHERE table_schema = '{dataset_id}', use the regional dataset view, and warn that 0 rows indicates a region mismatch or lack of native tables rather than zero billable usage. - Partitioning & Clustering Strategy: Read `references/t
- Billing Architecture: Read
자주 묻는 질문
BigQuery 에디션 선택을 도와주나요?
네. 에디션 전환을 모델링하고 예약 규모를 적절하게 조정할 수 있습니다.
파티셔닝이란 무엇인가요?
큰 테이블을 여러 부분으로 나누어 쿼리가 읽는 데이터를 줄이는 방법이며, 이를 통해 비용을 낮출 수 있습니다.
먼저 무엇을 설정해야 하나요?
BigQuery와 BigQuery Reservation API를 활성화하고, 결제와 적절한 역할이 갖춰져 있어야 합니다.
상세 정보
작성자의 원본 설명
Provides workflows to optimize BigQuery environments (capacity planning, editions), storage assets (partitioning, clustering, storage lifecycles, billing models), and SQL queries. Use when optimizing cost, modeling Edition migrations, rightsizing reservations, evaluating logical vs. physical storage, designing table partitioning/clustering, generating table DDL, migrating unpartitioned tables, managing partition expiration, optimizing individual SQL queries, or evaluating acceleration structures (search indexes, materialized views, BI Engine). Do not use for raw usage reporting (use bigquery-o
repo: google/skills
인기도
- GitHub 스타
- 22k
- 순위
- #10229
- 라이선스
- 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생의학 분야의 과학 논문을 에이전트가 검색하도록 돕습니다. 특정 의학 정보가 필요한 연구에 유용합니다.