/bigquery:bigquery-optimizationfrom bigquery
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, including MERGE statements, or evaluating acceleration structures (search indexes, materialized views, BI Engine). 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).
Ships in bigquery. 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.
Read when SKILL.md points to them.
Determine the optimization focus of the user's request and follow the relevant workflow:
INFORMATION_SCHEMA queries, and baseline metric calculations, consult the
@skill:bigquery-observability skill. If the bigquery-observability
companion 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.references/capacity_planning_editions.md to
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.references/storage_billing_models.md for
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 providing TABLE_STORAGE queries, always
scope with WHERE 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.references/table_partitioning_clustering.md to generate production DDL
templates (CREATE TABLE, CTAS migrations for unpartitioned tables, and
modifying clustering specifications), enforce pruning with
require_partition_filter = true, and manage partition limits (up to
10,000 partitions/table).references/storage_lifecycle_management.md to pinpoint inactive data
and define precise Time-to-Live (TTL) partition expirations, dataset
expirations, and Time Travel window reductions.references/search_indexes.md to decide
when to propose a search index for selective lookups over STRING or
JSON data, write the CREATE SEARCH INDEX DDL, and tell the user how
to verify index coverage and usage. Read
references/materialized_views.md to decide when to propose a
materialized view for repeated aggregations or joins over large base
tables, write the CREATE MATERIALIZED VIEW DDL, and tell the user how
to verify that smart tuning uses it. Read references/bi_engine.md to
decide when to propose BI Engine vs. Materialized Views for BI dashboard
acceleration, diagnose PARTIAL or DISABLED BI Engine fallback
reasons (bi_engine_statistics), and combine BI Engine with
materialized views that pre-join or pre-aggregate the data.MERGE
statements in incremental loads, to reduce slot-time and the amount of data
read.
references/sql_optimization.md to recommend how
to rewrite the user's SQL query or MERGE statement.project_id and region at the very top of your response so the user
immediately knows the exact scope being evaluated. Follow this 3-tier
resolution hierarchy:
europe-west1).us / region-us, explicitly state
that us was assumed as the default, and instruct the user to
substitute their region if their resources reside elsewhere. Region
Formatting: In Cloud Console deep links, use the region identifier
directly (e.g., region=us, region=europe-west1). In SQL queries
against INFORMATION_SCHEMA, use the regional dataset qualifier (e.g.,
region-us, region-europe-west1).TABLE_STORAGE with
WHERE table_schema = '{dataset_id}' returns 0 rows, do not proceed with an
empty or zero-usage evaluation. Treat this as an indicator that the dataset
may reside in a different region or have no native tables; stop and prompt
the user to confirm the dataset's regional location.project_id and region values directly into the
code and links. Never leave literal {project_id} or {location}
placeholders for the user to manually edit.gcloud or bq shell commands like
bq update --storage_billing_model=...) designed to autonomously purchase
annual commitments, alter edition tier bindings, or mutate storage billing
models. Always guide the user to execute commitment purchases, reservation
changes, and storage billing model updates manually via the Cloud Console
UI.LICENSE (opens in a new tab)SOURCE.md (opens in a new tab)references/bi_engine.md (opens in a new tab)references/capacity_planning_editions.md (opens in a new tab)references/materialized_views.md (opens in a new tab)references/search_indexes.md (opens in a new tab)references/sql_optimization.md (opens in a new tab)references/storage_billing_models.md (opens in a new tab)references/storage_lifecycle_management.md (opens in a new tab)references/table_partitioning_clustering.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
7 skills in this plugin
/accidental-data-loss-prevention**STOP AND VERIFY**: Before running any command or tool that results in irreversible data loss, you MUST obtain explicit user consent. When in doubt, ask. It is better to wait for confirmation than to accidentally delete production data or critical project assets. Use this for: - SQL: DROP TABLE/VIEW/SCHEMA/DATABASE, TRUNCATE, or broad DELETE (missing WHERE or using 1=1). - Cloud Storage: gsutil rm or gcloud storage rm targeting production data or critical buckets. - Infrastructure: gcloud projects delete, deleting Spanner/BigQuery/Dataproc resources, deleting secrets, or KMS key destruction./bigquery-ai-mlLeverages BigQuery's built-in machine learning and GenAI capabilities for advanced data analytics. Use when you need to write SQL queries that perform time-series forecasting, predict values, detect outliers or anomalies, find key drivers, perform semantic search or vector search, classify text, calculate similarity, summarize content, translate language, evaluate models, filter by semantic conditions, measure the causal effect of an intervention, compute correlations between columns, generate descriptive statistics and table distribution profiles, detect change points or structural breaks, extract trend or seasonality components, or leverage generative AI capabilities in BigQuery. Do not use for general BigQuery dataset, table, or job management requests./bigquery-bigframesGenerates Python code using BigQuery DataFrames (BigFrames). Use by default for any Python data task involving BigQuery, including data processing, analysis, and machine learning. Don't use for SQL-first workflows or the google-cloud-bigquery client library — use bigquery-basics./bigquery-observabilityProvides data-retrieval best practices, tool selection guidance, and performant SQL query syntax for BigQuery telemetry across INFORMATION_SCHEMA, Cloud Monitoring, and the REST API. Use when the telemetry to fetch is already known, selecting telemetry tools, writing performant INFORMATION_SCHEMA queries, retrieving telemetry for diagnosing single-job performance bottlenecks, investigating slot contention, job concurrency and queue latency, analyzing reservation capacity, utilization and autoscaling saturation, or auditing capacity-based and on-demand compute and storage resource billable usage. Don't use for root-cause diagnosis or symptom troubleshooting when the cause is unknown (use bigquery-troubleshooting first), or for writing or optimizing business logic SQL (use bigquery-optimization)./bigquery-troubleshootingProvides diagnostic workflows and step-by-step root-cause analysis procedures for actively broken, failing, or slow BigQuery jobs, execution graph and query plan stage bottlenecks, system performance issues, or unexpectedly expensive workloads. Use when interpreting symptoms, isolating bottlenecks, diagnosing cost spikes (on-demand query spend, capacity slot autoscaling, storage growth), execution graph stages or substep variables, identifying root causes, and determining remediation steps. Don't use for writing or optimizing SQL, proactive capacity planning, or storage layout design (use bigquery-optimization), or when the user already knows which telemetry they want and just needs the query (use bigquery-observability)./dataform-bigqueryExpertise in generating clean, correct, and efficient Dataform pipelinenpx claudepluginhub fcakiroglu16/marketplace --plugin bigquery