bq-design-table
Design a BigQuery table schema with optimal partitioning, clustering, and data types. Describe your data or paste a sample.
Optimize BigQuery SQL by fixing all detected anti-patterns. Pass a file path or paste SQL directly.
> /plugin marketplace add justvinhhere/bigquery-expert > /plugin install bigquery-expert@justvinhhere-bigquery-expert
How it fires
How this command gets triggered: by you, by Claude, or both.
/bq-optimizeContext preview
What this command does when you run it.
Optimize BigQuery SQL by fixing all detected anti-patterns. Pass a file path or paste SQL directly.
description: Optimize BigQuery SQL by fixing all detected anti-patterns. Pass a file path or paste SQL directly. argument-hint: "[file_path]"
Rewrite the provided BigQuery SQL with all detected anti-patterns fixed, using the `bigquery-optimization` skill.
1. **Determine the SQL to optimize:**
2. **Detect all anti-patterns** by running the full 11-pattern check.
3. **Apply all fixes** to produce an optimized version of the query:
OrderByWithoutLimit, StringComparison, CTEsEvalMultipleTimes, LatestRecordWithAnalyticFun, JoinOrder, WhereOrder, MissingDropStatement, ConvertTableToTemp.
4. **Output the result:**
## Optimized Query (fully rewritten SQL) ## Changes Applied 1. **PatternName**: What was changed and why. 2. **PatternName**: What was changed and why. ## Summary X anti-pattern(s) fixed. The optimized query preserves the original semantics.
5. If no anti-patterns are found, return the original query and confirm it already follows best practices.
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
Design a BigQuery table schema with optimal partitioning, clustering, and data types. Describe your data or paste a sample.
Estimate the cost of a BigQuery query or table. Pass a query, file path, or table description.
Explain a BigQuery feature, function, or concept with working examples. Pass the feature name or question.
Generate optimized BigQuery SQL from a natural language description. Pass a description of the data you need.
Review BigQuery SQL for performance anti-patterns. Pass a file path or paste SQL directly.