bq-design-table
Design a BigQuery table schema with optimal partitioning, clustering, and data types. Describe your data or paste a sample.
Generate optimized BigQuery SQL from a natural language description. Pass a description of the data you need.
> /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-generateContext preview
What this command does when you run it.
Generate optimized BigQuery SQL from a natural language description. Pass a description of the data you need.
description: Generate optimized BigQuery SQL from a natural language description. Pass a description of the data you need. argument-hint: "<description>"
Generate optimized BigQuery SQL using the `bigquery-query-generation` skill.
1. **Determine what SQL to generate** from the argument or current conversation context. If neither provides a clear description, ask the user what data they need.
2. **Gather schema context** if available. Check whether the user has mentioned specific table names, column names, or project/dataset references. If not, use descriptive placeholders and state assumptions.
3. **Generate the SQL** using the `bigquery-query-generation` skill. Proactively avoid all 11 anti-patterns from the `bigquery-optimization` skill while generating.
4. **Output using this format:**
## Generated Query (fenced SQL code block) ## Assumptions - Schema, data type, and business logic assumptions. - Placeholder table/column names that need replacing. ## Anti-Patterns Proactively Avoided - List only the anti-patterns that were relevant to this query and actively avoided. ## Customization Notes - Suggestions for adapting the query: filters, additional columns, partitioning, etc.
5. **Prefer generating with stated assumptions** over asking too many clarifying questions. Generate a working query first, then offer to refine.
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.
Optimize BigQuery SQL by fixing all detected anti-patterns. Pass a file path or paste SQL directly.
Review BigQuery SQL for performance anti-patterns. Pass a file path or paste SQL directly.