Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

bigquery-sql

Skill by SignalPilot-Labs

Provides BigQuery-specific SQL patterns for AI assistants, including UNNEST, STRUCT, ARRAY_AGG, date functions and partitioned table queries. Aimed at people writing BigQuery SQL.

  • Score 73
  • 489 stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install bigquery-sql

Built from the published package, never by AI.

git clone --depth 1 https://github.com/SignalPilot-Labs/SignalPilot /tmp/SignalPilot && mkdir -p ~/.claude/skills && cp -r /tmp/SignalPilot/signalpilot-plugin/skills/bigquery-sql ~/.claude/skills/bigquery-sql

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install bigquery-sql in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The bigquery-sql skill gives an AI assistant a reference of BigQuery-specific SQL patterns. It covers UNNEST for array expansion, STRUCT and ARRAY_AGG, date functions such as DATE_DIFF and DATE_ADD, backtick-quoted table references, and SELECT EXCEPT and REPLACE. It also covers approximate aggregation, string functions, partitioned tables and wildcard tables. Each section shows example queries with brief comments.

The skill is a SKILL.md file of SQL examples and short guidance. It lists anti-patterns such as using = NULL instead of IS NULL, skipping partition filters, and using COUNT(DISTINCT) on huge tables. It also mentions dialect choices like STRING_AGG, SAFE_DIVIDE and INFORMATION_SCHEMA. It suits people who write or review BigQuery queries with an AI assistant. The source does not describe installation or a runtime.

Written from the project's SKILL.md and checked against it.

What it can do

  • UNNEST array expansionExplodes array columns into rows, with optional position offsets.
  • Date functionsShows DATE_ADD, DATE_DIFF, DATE_TRUNC and current date and time helpers.
  • STRUCT and ARRAY_AGGBuilds structs and aggregates rows into arrays, including arrays of structs.
  • SELECT EXCEPT and REPLACEDrops or replaces columns inside a SELECT statement.
  • Approximate aggregationCovers APPROX_COUNT_DISTINCT and APPROX_QUANTILES for large tables.
  • Partitioned and wildcard tablesFilters partition columns and date-sharded tables by _TABLE_SUFFIX.
  • String functionsCovers REGEXP_EXTRACT, REGEXP_REPLACE, SPLIT, TRIM and FORMAT.
  • Anti-pattern listLists common mistakes such as = NULL and unfiltered partitioned tables.
  • Dialect patternsCovers STRING_AGG, SAFE_DIVIDE, SAFE_CAST, IF and GENERATE_DATE_ARRAY.
  • Metadata queriesShows INFORMATION_SCHEMA.COLUMNS queries for schema metadata.

Try asking

  • Expand the tags array column into one row per item in my BigQuery table.
  • Write a query over events_* tables filtered by _TABLE_SUFFIX for 2024.
  • Rewrite my COUNT(DISTINCT user_id) query using approximate aggregation.

Good to know

  • Unfiltered queries on partitioned tables can scan the full table and cost money.
  • The source notes that FLOAT64 can lose precision and suggests NUMERIC for exact decimal arithmetic.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: signalpilot-plugin/skills/bigquery-sql/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md4 KB

Alternatives to bigquery-sql

All alternatives →
hugging-face-datasetssickn33
94

Creates, configures and manages datasets on the Hugging Face Hub, including SQL-based querying and transformation. Built for people who edit dataset content and metadata directly, alongside the HF MCP server.

AAA Skill 50k
db-repairgarrytan
94

Diagnoses and repairs gbrain's Postgres access when a command or MCP result shows a GBRAIN_DB_ACCESS marker, or when the operator reports the brain database is down. It runs the hardcoded gbrain db-repair ladder and verifies the result with a re-probe.

AAA Skill 34k
alloydb-basicsgoogle
94

Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.

AAA Skill 26k
clickhouse-logs-queriessupabase
94

Writes, reviews and migrates Supabase logs queries against the ClickHouse logs table served by the logs.all.otel endpoint. Built for developers who write Logs Explorer SQL or convert older BigQuery logs queries.

AAA Skill 116k
fix-slow-queriespaperclipai
94

Diagnoses and fixes slow Paperclip PostgreSQL queries using Cloud and Neon evidence, local benchmarks, regression tests, and a pull request with passing checks. Built for engineers working on Paperclip.

AAA Skill 119k
prisma-8prisma
94

Guides AI assistants through Prisma 8 projects built on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo. It covers data contracts, migrations, typed queries and runtime setup for developers on Prisma 8.

AAA Skill 48k

Compare with hugging-face-datasets, db-repair or alloydb-basics

bigquery-sql: common questions

Does this skill cover BigQuery partitioned tables?

Yes. It explains filtering on _PARTITIONDATE or a date column to avoid full-table scans, and shows wildcard tables with _TABLE_SUFFIX.

Which BigQuery array functions does it cover?

It covers UNNEST with and without WITH OFFSET, UNNEST on literal arrays, ARRAY_AGG and ARRAY_AGG of STRUCT.

Does it list BigQuery SQL mistakes to avoid?

Yes. It lists anti-patterns such as using = NULL instead of IS NULL, skipping partition filters, and COUNT(DISTINCT) on huge tables.

How do I install bigquery-sql?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is bigquery-sql free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is bigquery-sql safe to use?

It scores 73 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to bigquery-sql?

Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.

bigquery-sql Install

Add to stack

Loading.