bigquery-optimization
Workflows to optimize BigQuery cost and performance: capacity planning and editions, storage, partitioning and clustering, and SQL queries.
- Kind
- Skill
- Works with
- Any agent
- Languages
- SQL
- Source
- Google skills (Google Cloud and more) @ 92776fbf3875
- Path
- skills/cloud/bigquery-optimization/SKILL.md
- Jobs
- Review, Implementation
- Topics
- Data pipelines, Agents & MCP
Credit
- Made by
- Original
- github.com/google/skills/blob/92776fbf3875a5ee7424124e398956a…
- License
- Apache-2.0
Listed by Skill Manifest; not made by us.
InstallInstall it with npx.
npx skills add google/skills
Install factsScanned 3 Nov 2026
- Adds
- .claude/skills/bigquery-optimization/ (the skill folder)
- 10 file(s) the skill refers to
- 9 other files in the folder: references/attribution.md, references/bi_engine.md, references/capacity_planning_editions.md, references/materialized_views.md and 5 more
- Runs scripts
- Yes
- shell block in the text
- shell block in the text (references/attribution.md)
- shell block in the text (references/sql_optimization.md)
- shell block in the text (references/table_partitioning_clustering.md)
- Uses the network
- Yes
- downloads npm packages
- Needs secrets
- Yes
- GOOGLE_APPLICATION_CREDENTIALS
- Reads environment variables
- GOOGLE_APPLICATION_CREDENTIALS
- Calls other skills
- /slot-estimator
- What it does
- Needs a paid account or key
- Source revision
- 92776fbf3875
- Licence
- Apache-2.0
- Last activity
- 26 Nov 2026
- Source changed after the scan
- Yes
- Last push 26 Nov 2026, scanned 3 Nov 2026; read it again before you rely on this scan
- Review
- Reviewed
Found by a static scan of the stored text; nothing is run. “None found” is not a guarantee, so read what you install before you run it.
# BigQuery Optimization Workflow
## Attribution
**MUST READ**: Before executing any `gcloud`, REST API, or MCP command, you
MUST read [Usage Attribution](references/attribution.md). For commands executed
directly in the terminal (never in generated scripts, Terraform, or user code),
prefix `gcloud` with
`CLOUDSDK_METRICS_REQUEST_ATTRIBUTION="agent-skills/1.0 (skill:bigquery-optimization)"`
and append `agent-skills/1.0 (skill:bigquery-optimization)` to `User-Agent` headers.
## Prerequisites & Environment Setup
Before executing optimization analyses, evaluating editions, or applying DDL
modifications:
1. **Google Cloud SDK**: Ensure the
[Google Cloud SDK](https://cloud.google.com/sdk/docs/install) is installed
and configured.
2. **Project Selection**: Set the active Google Cloud project:
```bash
gcloud config set project {project_id}
```
3. **API Enablement**: Ensure BigQuery and BigQuery Reservation APIs are
enabled:
```bash
gcloud services enable \
bigquery.googleapis.com bigqueryreservation.googleapis.com
```
4. **Authentication**: Authenticate the environment:
* CLI tools and `bq` commands: `gcloud auth login`
…