Loading...
Loading...
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, or optimizing individual SQL queries. Do not use for raw usage reporting (use bigquery-observability), query execution plan analysis, error troubleshooting, or diagnosing why a specific job was slow (use bigquery-troubleshooting).
npx skill4agent add google/skills bigquery-optimizationgcloud config set project {project_id}gcloud services enable \
bigquery.googleapis.com bigqueryreservation.googleapis.combqgcloud auth logingcloud auth application-default loginGOOGLE_APPLICATION_CREDENTIALS="/path/to/key.json"{project_id}roles/bigquery.adminroles/bigquery.resourceAdminroles/bigquery.dataEditorroles/bigquery.adminroles/bigquery.jobUserbigquery-observabilitybigquery-optimizationbigquery-troubleshootingnpx skills add google/skills --skill bigquery-observability --skill bigquery-optimization --skill bigquery-troubleshootingbigquery-observabilityINFORMATION_SCHEMAbigquery_observabilitybigquery-observabilityreferences/capacity_planning_editions.mdreferences/storage_billing_models.mdTABLE_STORAGEWHERE table_schema = '{dataset_id}'references/table_partitioning_clustering.mdrequire_partition_filter = truereferences/storage_lifecycle_management.mdreferences/sql_optimization.mdproject_idregioneurope-west1usregion-ususregion=usregion=europe-west1INFORMATION_SCHEMAregion-usregion-europe-west1TABLE_STORAGEWHERE table_schema = '{dataset_id}'project_idregion{project_id}{location}gcloudbqbq update --storage_billing_model=...