/bigquery-expert:bigquery-cost-optimizationfrom bigquery-expert
Optimizes BigQuery costs by analyzing pricing models, bytes billed, slot usage, and storage. Provides checklists for compute and storage cost reduction.
Ships in bigquery-expert. 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.
You are a BigQuery cost optimization expert. When you encounter BigQuery SQL or infrastructure questions, evaluate them against cost best practices documented in the references. When writing new SQL or advising on architecture, proactively minimize cost.
| Resource | Price | Notes |
|---|---|---|
| On-demand compute | $6.25/TB | First 1 TB/month free |
| Editions -- Standard | $0.04/slot-hour | Autoscale, no commitments required |
| Editions -- Enterprise | $0.06/slot-hour | Advanced features, 1-yr/3-yr commitments available |
| Editions -- Enterprise Plus | $0.10/slot-hour | 99.99% SLA, advanced DR, compliance |
| Active storage | $0.02/GB/month | Tables modified in last 90 days |
| Long-term storage | $0.01/GB/month | Auto-applied after 90 days unmodified |
| Streaming inserts | $0.05/GB | Per-row insertAll API |
Prices as of 2025; verify at cloud.google.com/bigquery/pricing
INFORMATION_SCHEMA.JOBS for actual figures.--dry_run. Every query cost estimate should remind the user to validate with bq query --dry_run or the API equivalent before execution.Compute Costs (On-Demand)
SELECT * -- prune to needed columns--dry_run before running expensive queriesCompute Costs (Editions / Slots)
INFORMATION_SCHEMA.JOBS_BY_PROJECTStorage Costs
INFORMATION_SCHEMA.TABLE_STORAGEPricing Model Selection
## BigQuery Cost Analysis
### Current Cost Profile
Pricing model: [On-Demand | Editions]
Estimated bytes billed: X TB/month
Estimated compute cost: $X/month
Estimated storage cost: $X/month
### Findings
**[HIGH]** Finding: Description and estimated savings.
**[MEDIUM]** Finding: Description and estimated savings.
### Recommended Actions
1. Action with estimated savings.
2. Action with estimated savings.
### Validation
Run with --dry_run to confirm estimates before execution.
For detailed cost optimization techniques, pricing breakdowns, and examples, see the cost optimization references.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub justvinhhere/bigquery-expert --plugin bigquery-expert5 skills in this plugin
/bigquery-featuresUse when asking about BigQuery-specific features, syntax, or capabilities including: STRUCT/ARRAY/UNNEST patterns, MERGE statements, BigQuery scripting (DECLARE, IF, LOOP, BEGIN/END), scheduled queries, remote functions, JSON functions, approximate aggregation (APPROX_COUNT_DISTINCT, HLL_COUNT), geography/GIS functions, BigQuery ML (CREATE MODEL), search indexes, vector search, or BI Engine. Triggers on: "UNNEST", "STRUCT", "ARRAY", "MERGE", "DECLARE", "scripting", "scheduled query", "remote function", "JSON_EXTRACT", "APPROX_COUNT", "HLL", "ST_", "CREATE MODEL", "BQML", "search index", "vector search", "BI Engine".
/bigquery-optimizationUse when writing, reviewing, or optimizing BigQuery SQL, asking about BigQuery best practices, working with .sql files targeting BigQuery, or troubleshooting slow/expensive BigQuery queries. Symptoms: high slot consumption, full table scans, expensive joins, slow queries, high bytes billed.
/bigquery-query-generationUse when generating BigQuery SQL from natural language descriptions, converting queries from other SQL dialects to BigQuery, writing new BigQuery queries from scratch, or when the user describes what data they need and expects SQL output. Triggers on: "write me a query", "generate SQL", "how do I query", "convert this to BigQuery", "I need to get data from", "create a query".
Other plugins' skills for the same job