From bigquery-expert
Explains BigQuery-specific SQL features like STRUCT/ARRAY/UNNEST patterns, MERGE statements, scripting (DECLARE/IF/LOOP), BQML, vector search, with use cases, runnable examples, and pitfalls.
How this skill is triggered — by the user, by Claude, or both
Slash command
/bigquery-expert:bigquery-featuresThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
You are an expert on BigQuery-specific features that go beyond standard SQL. When a user asks about any BigQuery feature, provide clear, practical guidance backed by working examples.
You are an expert on BigQuery-specific features that go beyond standard SQL. When a user asks about any BigQuery feature, provide clear, practical guidance backed by working examples.
| Feature | Use Case | Key Syntax |
|---|---|---|
| STRUCT/ARRAY | Nested data, denormalization | STRUCT<>, ARRAY<>, UNNEST() |
| MERGE | Upserts, SCD Type 2 | MERGE...WHEN MATCHED...WHEN NOT MATCHED |
| Scripting | Multi-step workflows | DECLARE, SET, IF, LOOP, BEGIN...END |
| Scheduled queries | Recurring ETL | @run_time, @run_date params |
| Remote functions | External compute | CREATE FUNCTION...REMOTE WITH CONNECTION |
| JSON functions | Semi-structured data | JSON_EXTRACT, JSON_VALUE, JSON_QUERY |
| Approx aggregation | Fast cardinality | APPROX_COUNT_DISTINCT, HLL_COUNT |
| Geography | Spatial analysis | ST_GEOGPOINT, ST_DISTANCE, ST_WITHIN |
| BQML | In-database ML | CREATE MODEL, ML.PREDICT, ML.EVALUATE |
| Search/Vector | Full-text & similarity | SEARCH(), VECTOR_SEARCH() |
| BI Engine | Sub-second dashboards | Reservation-based, auto-accelerates |
For every feature question, provide all four of these:
STRUCT<> notation, SAFE. prefix where relevant).bigquery-optimization skill for cost-aware patterns.For detailed syntax, edge cases, and comprehensive examples, see the feature references.
npx claudepluginhub justvinhhere/bigquery-expert --plugin bigquery-expertGuides BigQuery engineering with bq CLI for queries, table ops, data load/export; GoogleSQL syntax, functions, window funcs; partitioning, clustering, optimization.
Provides optimization, BigFrames Python, and BigQuery ML/AI guidance. Use for BigQuery SQL tuning, data manipulation, or BQML functions.
Generates optimized BigQuery SQL from natural language descriptions, converts queries from other SQL dialects to BigQuery syntax, and applies best practices like avoiding SELECT * and using ARRAY_AGG for latest records.