Skip to content
Data
Command

/bq-generate

Generate optimized BigQuery SQL from a natural language description. Pass a description of the data you need.

From plugin
bigquery-expert
156 skills3 agents6 commands
Install
> /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.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/bq-generate

Context 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.

Command definition

bq-generate.md
description: Generate optimized BigQuery SQL from a natural language description. Pass a description of the data you need.
argument-hint: "<description>"

BigQuery Query Generation

Generate optimized BigQuery SQL using the `bigquery-query-generation` skill.

Instructions

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.

Read more
Ships withbigquery-expert

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.

Get the whole plugin

Other commands on bigquery-expert.