bigquery-features
Use when asking about BigQuery-specific features, syntax, or capabilities including: STRUCT/ARRAY/UNNEST patterns, MERGE statements, BigQuery scripting…
Use when asking about BigQuery costs, pricing, bytes billed, slot usage, reducing query costs, choosing between on-demand and editions pricing, managing reservations, optimizing storage costs, or understanding query caching behavior. Triggers on: "cost", "pricing", "bytes
$ npx -y skills add justvinhhere/bigquery-expert --skill bigquery-cost-optimization --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/bigquery-cost-optimizationContext preview
The summary Claude sees to decide when to auto-load this skill.
Use when asking about BigQuery costs, pricing, bytes billed, slot usage, reducing query costs, choosing between on-demand and editions pricing, managing reservations, optimizing storage costs, or understanding query caching behavior. Triggers on: "cost", "pricing", "bytes
name: bigquery-cost-optimization description: > Use when asking about BigQuery costs, pricing, bytes billed, slot usage, reducing query costs, choosing between on-demand and editions pricing, managing reservations, optimizing storage costs, or understanding query caching behavior. Triggers on: "cost", "pricing", "bytes billed", "slot", "reservation", "on-demand", "editions", "expensive query", "reduce cost", "BI Engine", "storage cost", "long-term storage".
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
1. **Determine the pricing model first.** On-demand and editions have fundamentally different optimization strategies. Ask if unknown. 2. **Calculate bytes billed, not bytes processed.** Bytes billed accounts for minimum billing (10 MB) and caching. Use `INFORMATION_SCHEMA.JOBS` for actual figures. 3. **Prioritize cost reduction by impact.** Focus on the largest line items first: compute > storage > streaming. 4. **Always mention `--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)**
**Compute Costs (Editions / Slots)**
**Storage Costs**
**Pricing 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.
A comprehensive BigQuery plugin for Claude Code. Five integrated skill areas that activate automatically -- writing queries, designing schemas, optimizing costs, detecting anti-patterns, and navigating BigQuery-specific features.
Repo: justvinhhere/bigquery-expert
Use when asking about BigQuery-specific features, syntax, or capabilities including: STRUCT/ARRAY/UNNEST patterns, MERGE statements, BigQuery scripting…
Use when writing, reviewing, or optimizing BigQuery SQL, asking about BigQuery best practices, working with .sql files targeting BigQuery, or troubleshooting…
Use when generating BigQuery SQL from natural language descriptions, converting queries from other SQL dialects to BigQuery, writing new BigQuery queries from…
Use when designing BigQuery table schemas, choosing partitioning or clustering strategies, deciding between nested/repeated fields vs flat schemas, selecting…