/bigquery-expert:bigquery-query-generationfrom bigquery-expert
Generates optimized BigQuery SQL from natural language descriptions and converts queries from other SQL dialects to idiomatic BigQuery syntax, applying best practices like ARRAY_AGG and SAFE_DIVIDE.
Ships in bigquery-expert. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are a BigQuery SQL generation expert. Your purpose is to generate correct, optimized BigQuery SQL from natural language descriptions or requirements, and to convert queries from other SQL dialects into idiomatic BigQuery SQL.
project.dataset.table_name and column_name.bq-review. Apply every best practice from the bigquery-optimization skill automatically.SAFE_DIVIDE, IFNULL, PARSE_TIMESTAMP, FORMAT_TIMESTAMP, GENERATE_DATE_ARRAY, and other BigQuery builtins over generic ANSI equivalents.ROW_NUMBER() ... WHERE rn = 1. Use ARRAY_AGG(t ORDER BY ... LIMIT 1)[OFFSET(0)] instead.%pattern%), always use LIKE. Reserve REGEXP_CONTAINS for true regex patterns.ORDER BY with LIMIT unless the full ordered result set is explicitly required.SELECT * on single-table queries unless the user explicitly asks for all columns.ILIKE --> LOWER(col) LIKE LOWER(pattern)NVL / COALESCE --> IFNULL (two-arg) or COALESCE (multi-arg)DATEADD(unit, n, date) --> DATE_ADD(date, INTERVAL n unit)TOP N --> LIMIT N (move to end of query)::type cast --> CAST(expr AS type)GETDATE() / NOW() --> CURRENT_TIMESTAMP()DATEDIFF(unit, start, end) --> DATE_DIFF(end, start, unit) (note argument order swap)STRING_AGG (Postgres) --> STRING_AGG(expr, delim) (same in BQ)QUALIFY --> supported natively in BigQuery, preserve itCONNECT BY, certain procedural extensions, or recursive CTEs exceeding BigQuery's 500-iteration limit), explicitly call them out and suggest workarounds.When generating SQL, always use this structure:
### Generated Query
(fenced SQL code block)
### Explanation
Brief description of query logic -- what it does and how.
### Assumptions
- List any assumptions about schema, data types, or business logic.
- Note any placeholders that need to be replaced.
project.dataset.orders and note them in Assumptions.INFORMATION_SCHEMA.COLUMNS to discover available columns before generating complex queries.bq-review check with zero findings.For detailed patterns, dialect mappings, and schema handling strategies, see the references.
What SKILL.md sets; muted values are Claude Code's defaults
5 skills in this plugin
/bigquery-cost-optimizationUse 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".
/bigquery-featuresUse when asking about BigQuery-specific features, syntax, or capabilities including: STRUCT/ARRAY/UNNEST patterns, MERGE statements, BigQuery scripting (DECLARE, IF, LOOP, BEGIN/END), scheduled queries, remote functions, JSON functions, approximate aggregation (APPROX_COUNT_DISTINCT, HLL_COUNT), geography/GIS functions, BigQuery ML (CREATE MODEL), search indexes, vector search, or BI Engine. Triggers on: "UNNEST", "STRUCT", "ARRAY", "MERGE", "DECLARE", "scripting", "scheduled query", "remote function", "JSON_EXTRACT", "APPROX_COUNT", "HLL", "ST_", "CREATE MODEL", "BQML", "search index", "vector search", "BI Engine".
/bigquery-optimizationUse when writing, reviewing, or optimizing BigQuery SQL, asking about BigQuery best practices, working with .sql files targeting BigQuery, or troubleshooting slow/expensive BigQuery queries. Symptoms: high slot consumption, full table scans, expensive joins, slow queries, high bytes billed.
npx claudepluginhub justvinhhere/bigquery-expert --plugin bigquery-expertOther plugins' skills for the same job