From bigquery-expert
Optimizes BigQuery costs by analyzing pricing models, bytes billed, slot usage, query caching, and providing compute/storage reduction checklists.
npx claudepluginhub justvinhhere/bigquery-expert --plugin bigquery-expertThis skill uses the workspace's default tool permissions.
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.
Conducts multi-round deep research on GitHub repos via API and web searches, generating markdown reports with executive summaries, timelines, metrics, and Mermaid diagrams.
Dynamically discovers and combines enabled skills into cohesive, unexpected delightful experiences like interactive HTML or themed artifacts. Activates on 'surprise me', inspiration, or boredom cues.
Generates images from structured JSON prompts via Python script execution. Supports reference images and aspect ratios for characters, scenes, products, visuals.
Share bugs, ideas, or general feedback.
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.