Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

bigquery-optimization

Skill by google

Guides BigQuery users through optimizing capacity, editions, storage billing, table layout and SQL queries. It is for data teams that want to improve cost-efficiency in their BigQuery environments.

  • Score 94
  • 25k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install bigquery-optimization

Built from the published package, never by AI.

git clone --depth 1 https://github.com/google/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/skills/cloud/bigquery-optimization ~/.claude/skills/bigquery-optimization

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install bigquery-optimization in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This agent skill from Google provides workflows for optimizing BigQuery environments. It covers capacity planning and Editions, storage billing models, table partitioning and clustering, storage lifecycle management, acceleration structures such as search indexes, materialized views and BI Engine, and individual SQL queries, including MERGE statements in incremental loads. The skill points to reference guides for each area, with DDL templates and decision models.

It is aimed at data engineers and platform teams who want to optimize their bill or improve cost-efficiency. Raw usage reporting, execution plan analysis, error troubleshooting and diagnosing slow jobs are handled by companion skills. Commitment purchases, reservation changes and storage billing model updates are done by the user in the Cloud Console.

Written from the project's SKILL.md and checked against it.

What it can do

  • Capacity and Editions modelingEvaluates moving workloads from On-Demand to Editions and rightsizing reservations and autoscaling caps.
  • Storage billing model guidanceEvaluates compression ratios to recommend Physical or Logical billing and provides TABLE_STORAGE queries.
  • Partitioning and clustering designGenerates production DDL for CREATE TABLE, CTAS migrations and clustering changes.
  • Storage lifecycle managementDefines partition expirations, dataset expirations and Time Travel window reductions for inactive data.
  • Search index proposalsDecides when to propose a search index and writes CREATE SEARCH INDEX DDL.
  • Materialized view proposalsDecides when to propose a materialized view and writes CREATE MATERIALIZED VIEW DDL.
  • BI Engine guidanceChooses between BI Engine and materialized views and diagnoses PARTIAL or DISABLED fallback reasons.
  • SQL query optimizationRecommends rewrites for individual SQL queries and MERGE statements to reduce slot-time and data read.

What you need

  • Google Cloud SDK installed and configured
  • Active Google Cloud project with an attached billing account
  • BigQuery and BigQuery Reservation APIs enabled
  • Appropriate BigQuery IAM roles such as jobUser, metadataViewer and dataViewer

Try asking

  • Optimize the partitioning and clustering of my sales table in europe-west1
  • Model whether moving my On-Demand workload to Editions improves cost-efficiency
  • Suggest a materialized view for my repeated dashboard aggregations

Good to know

  • Does not cover raw usage reporting, which is handled by bigquery-observability.
  • Does not analyze execution plans, troubleshoot errors or diagnose slow jobs, which is handled by bigquery-troubleshooting.
  • Does not provide scripts that purchase commitments or change edition bindings or storage billing models; these are done in the Cloud Console.
  • Assumes the US region when no region is specified and asks the user to confirm the dataset location.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/cloud/bigquery-optimization/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md11 KB
  • references/attribution.md2 KB
  • references/bi_engine.md7 KB
  • references/capacity_planning_editions.md7 KB
  • references/materialized_views.md5 KB
Show all 10 files
  • references/search_indexes.md4 KB
  • references/sql_optimization.md34 KB
  • references/storage_billing_models.md6 KB
  • references/storage_lifecycle_management.md2 KB
  • references/table_partitioning_clustering.md15 KB

Alternatives to bigquery-optimization

All alternatives →
kaggle-cliKaggle
94

Guides an assistant through the Kaggle CLI, covering competitions, datasets, notebooks, models, benchmarks, authentication and quota. It is for people who use the kaggle command-line tool.

AAA Skill 7.7k
bigquery-bigframesgoogle
94

Generates Python code that uses BigQuery DataFrames (BigFrames) for data processing, analysis and machine learning on BigQuery. It is meant for Python data tasks, and the source says to use bigquery-basics for SQL-first workflows.

AAA Skill 25k
data-loadingmicrosoft
94

Discovers connected data sources and proposes loading options when a workspace lacks the data a question needs. Suited to users who want to connect database, warehouse or cloud sources from the chat.

AAA Skill 18k
data-manager-api-setupgoogle
94

Guides developers through enabling the Data Manager API, setting up Application Default Credentials, and installing its client libraries. Built for developers who are getting started with the API and need local environment and access setup.

AAA Skill 25k
managed-airflow-dag-authoringgoogle
94

Guides authoring and validating Apache Airflow DAGs for Managed Service for Apache Airflow (MSAA), formerly Cloud Composer. Built for developers who create or extend Airflow DAGs in these environments.

AAA Skill 25k
data-feedsdavila7
94

Extracts structured JSON data from over 40 websites, including Amazon, LinkedIn, Instagram, TikTok, Facebook and YouTube. Built on Bright Data's Web Data APIs, it returns product details, profiles, reviews, posts and comments from a URL.

AAA Skill 34k

Compare with kaggle-cli, bigquery-bigframes or data-loading

bigquery-optimization: common questions

Does this skill reduce BigQuery costs automatically?

No. The skill frames recommendations as optimizing your bill or improving cost-efficiency and does not promise cost reduction. Changes to reservations or billing models are made manually in the Cloud Console.

What happens if the observability companion skill is not installed?

The source says the optimization guidelines, DDL templates and decision models in this skill are self-contained and can be used without it.

Which region does the skill use by default?

If no region is given in the request or resource context, it defaults to the us multi-region and states that the assumption was made.

How do I install bigquery-optimization?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is bigquery-optimization free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is bigquery-optimization safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to bigquery-optimization?

Similar skills: kaggle-cli, bigquery-bigframes, data-loading, data-manager-api-setup.

bigquery-optimization Install

Add to stack

Loading.