# Bigquery optimization

> Bigquery optimization is an open-source agent skill for databases. Provides workflows to optimize BigQuery environments (capacity planning, editions), storage assets (partitioning, clustering, storage lifecy. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/google/skills/tree/main/skills/cloud/bigquery-optimization
- **Repository:** https://github.com/google/skills
- **GitHub stars:** 24,379
- **License:** Apache-2.0
- **Skill name:** bigquery-optimization
- **Collection:** https://github.com/google/skills
- **Categories:** databases
- **Listing updated:** 2026-11-17

## About

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-observability), query execution plan analysis, error troubleshooting, or diagnosing why a specific job was slow (use bigquery-troubleshooting).

## When your agent uses it

> 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-observability), query execution plan analysis, error troubleshooting, or diagnosing why a specific job was slow (use bigquery-troubleshooting).

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/google/skills/tree/HEAD/skills/cloud/bigquery-optimization)
- [License: Apache-2.0](https://github.com/google/skills/tree/HEAD/skills/cloud/bigquery-optimization)

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/bigquery-optimization` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/google/skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/bigquery-optimization &&
cp -R "$tmp/skills/cloud/bigquery-optimization" ~/.claude/skills/bigquery-optimization &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/bigquery-optimization` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/bigquery-optimization` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/google/skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/bigquery-optimization &&
cp -R "$tmp/skills/cloud/bigquery-optimization" ~/.agents/skills/bigquery-optimization &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/bigquery-optimization` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/bigquery-optimization` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/google/skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/bigquery-optimization &&
cp -R "$tmp/skills/cloud/bigquery-optimization" ~/.cursor/skills/bigquery-optimization &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/bigquery-optimization` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/google/skills.git --path skills/cloud/bigquery-optimization
```

Or copy the folder to `~/.gemini/skills/bigquery-optimization` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/bigquery-optimization`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/google/skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/bigquery-optimization &&
cp -R "$tmp/skills/cloud/bigquery-optimization" ~/.copilot/skills/bigquery-optimization &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/bigquery-optimization` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/google/skills.git
```

Then copy `skills/skills/cloud/bigquery-optimization` into your agent's skills folder as `bigquery-optimization`. Agents that support SKILL.md read one folder per skill.

## FAQ

### How do I install Bigquery optimization in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/bigquery-optimization to use it in all your projects, or to .claude/skills/bigquery-optimization in one project.

### Does Bigquery optimization run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Bigquery optimization?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Bigquery optimization?

The closest alternatives to Bigquery optimization are Bigquery pipeline audit, SQL server table reconciliation, Postgresql optimization, Pinecone rag and Supabase rls policies.

## Alternatives

- [Bigquery pipeline audit](https://ai-powered.com/skills/bigquery-pipeline-audit): Bigquery pipeline audit is an open-source agent skill for databases.
- [SQL server table reconciliation](https://ai-powered.com/skills/sql-server-table-reconciliation): SQL server table reconciliation is an open-source agent skill for databases.
- [Postgresql optimization](https://ai-powered.com/skills/postgresql-optimization): Postgresql optimization is an open-source agent skill for databases.
- [Pinecone rag](https://ai-powered.com/skills/pinecone-rag): Pinecone rag is an open-source agent skill for knowledge and memory.
- [Supabase rls policies](https://ai-powered.com/skills/supabase-rls-policies): Supabase rls policies is an open-source agent skill for databases.
- [Snowflake semanticview](https://ai-powered.com/skills/snowflake-semanticview): Snowflake semanticview is an open-source agent skill for databases.
- [Creating oracle to postgres migration integration tests](https://ai-powered.com/skills/creating-oracle-to-postgres-migration-integration-tests): Creating oracle to postgres migration integration tests is an open-source agent skill for databases.
- [Migrating oracle to postgres data access code](https://ai-powered.com/skills/migrating-oracle-to-postgres-data-access-code): Migrating oracle to postgres data access code is an open-source agent skill for databases.

---
Source: https://ai-powered.com/skills/bigquery-optimization
