/dak:bigquery-optimizationfrom dak
Optimizes BigQuery environments, storage assets, and SQL queries for cost and performance. Covers capacity planning, Edition migrations, partitioning, clustering, storage lifecycles, billing models, and query tuning.
Ships in dak. 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.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
41 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-data-transfer-serviceDiscovers and inspects BigQuery Data Transfer Service (DTS) configurations. Use this to identify existing ingestion pipelines and extract datasource or transfer config metadata for data pipelines. Use when a user asks for ingestion scenarios while building or managing data pipelines or when a user asks to "ingest" or "add" data that may already be managed by a DTS transfer./bigquery-graph-authorProvides an end-to-end journey for authoring a BigQuery property graph from your tables or from a model document/diagram (an ER diagram, an ontology, a semantic model): dataset discovery, candidate relationships verified against the data, a readable plan, and `CREATE PROPERTY GRAPH` DDL with schema best practices and semantic measures/dimensions, plus an opt-in verification suite for the landed graph. Use when creating or replacing a property graph, authoring a graph from a dataset or a document, or verifying relationships or suspicious edge counts. Don't use for querying an existing graph, for non-BigQuery graph databases, or for drawing/rendering diagrams./bigquery-graph-queryProvides guidelines and best practices for querying BigQuery property graphs and semantic graphs: native GQL (Graph Query Language) pattern matching, multi-hop and variable-length paths, aggregation, top-N, path extraction, output formatting (graph visualization with TO_JSON vs tabular), GRAPH_TABLE relational SQL integration, and semantic graph querying via the GRAPH_EXPAND TVF with starting-node view selection and AGG() measures. Also covers hybrid semantic search, combining `VECTOR_SEARCH` candidate generation with graph traversal when a node carries an embedding-backed property. Use when querying graph topology, node/edge connections, paths, or semantic measures over an existing BigQuery graph. Don't use for Cypher or non-BigQuery graph databases, or for creating/modifying a graph schema.Other plugins' skills for the same job
npx claudepluginhub googlecloudplatform/data-agent-kit-plugin --plugin dak