bigquery-schema-design

bigquery-schema-design is a skill for Claude Code from justvinhhere/bigquery-expert. It costs 106 tokens per session (1,112 once invoked), scanned A, original, Apache-2.0.

A guide to designing tables in BigQuery, Google Cloud’s SQL data warehouse. It covers data types, nested data, partitioning, clustering, and different table formats.

In plain words
What is it for?
Use it when planning BigQuery schemas, deciding how to organize related data, choosing partitions or clusters, and selecting tables, views, or materialized views.
Why use it?
It helps avoid table designs that make queries slower, more expensive, or harder to maintain.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the bigquery-expert plugin — 5 skills, 6 commands, 3 agents shipped together

Good fit Use it when planning BigQuery schemas, deciding how to organize related data, choosing partitions or clusters, and selecting tables, views, or materialized views.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/justvinhhere/bigquery-expert/bigquery-schema-design
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add justvinhhere/bigquery-expert --skill bigquery-schema-design
Clone the repo
git clone --depth 1 https://github.com/justvinhhere/bigquery-expert

Made for: Claude Code.

Or install bigquery-expert, the plugin that ships this one along with the rest of its 5 skills, 6 commands, 3 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for bigquery-schema-design

README.md
[![agentmods](https://agentmods.dev/badge/skills/justvinhhere/bigquery-expert/bigquery-schema-design/github.svg)](https://agentmods.dev/skills/justvinhhere/bigquery-expert/bigquery-schema-design)
Your own site
<a href="https://agentmods.dev/skills/justvinhhere/bigquery-expert/bigquery-schema-design"><img src="https://agentmods.dev/badge/skills/justvinhhere/bigquery-expert/bigquery-schema-design/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for bigquery-schema-design

Your own site · 80×15
<a href="https://agentmods.dev/skills/justvinhhere/bigquery-expert/bigquery-schema-design"><img src="https://agentmods.dev/badge/skills/justvinhhere/bigquery-expert/bigquery-schema-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 106 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,112 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00106 $0.01112
Opus 5.5 $0.00042 $0.00445
Sonnet 5.5 $0.00021 $0.00222
Haiku 4.5 $0.00011 $0.00111

Measured 3mo ago against content hash 7cf7e4261b98, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

bigquery-schema-design scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/bigquery-schema-design/SKILL.md · 78 lines

How it starts

The opening of the file, as written. The whole thing — 78 lines — stays where its author put it; the contents beside it link to each section on GitHub.

BigQuery Schema Design

You are a BigQuery schema design expert. When a user asks about table design, partitioning, clustering, data types, or denormalization, apply the decision frameworks below and reference the detailed guides in the references directory.

Decision Framework

Decision Choose This When
Time-unit partitioning (DAY/HOUR/MONTH/YEAR) Queries always filter on a date/timestamp column Most common; use DAY unless data volume demands HOUR or is low enough for MONTH/YEAR
Integer-range partitioning Queries filter on an integer key (e.g., customer_id ranges) Useful for non-time-series data with known ID ranges
Ingestion-time partitioning No natural partition column in the data BigQuery assigns _PARTITIONTIME automatically
No partitioning Table < 1 GB or queries never filter on a single column Partitioning overhead exceeds benefit
Clustering (up to 4 cols) High-cardinality filter/join columns; most-filtered column first Works alone or with partitioning; free re-clustering
Nested STRUCT 1:1 relationship (e.g., address inside customer) Avoids JOINs, preserves context
ARRAY of STRUCT 1:N relationship (e.g., line_items inside order) Avoids JOINs, keeps parent-child together
Flat schema Data has many-to-many relationships or frequent partial updates Simpler DML, easier CDC
TIMESTAMP Need timezone-aware absolute point in time (UTC) Preferred for event data, logs, audit trails
DATETIME Need calendar date+time without timezone (e.g., scheduling) No timezone conversion; local-time semantics
INT64 for IDs IDs are numeric and used in joins/aggregations Smaller storage, faster comparisons
STRING for IDs IDs contain letters, hyphens, or are UUIDs Avoid casting overhead
NUMERIC Exact decimal arithmetic (financial data) 38 digits precision, no floating-point errors
FLOAT64 Approximate math is acceptable (scientific, ML features) Smaller storage, faster compute

Read the full file on GitHub · 78 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 78 lines · 106 tokens per session scan A 7cf7e4261b98

Subscribe to this mod's changes

bigquery-schema-design is a skill published in the GitHub repository justvinhhere/bigquery-expert (17 stars, last pushed 7mo ago), licensed Apache-2.0. It adds 106 tokens to every session and 1,112 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

bigquery-schema-design compared with skills from other repositories

bigquery-schema-design next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
bigquery-schema-designjustvinhhere/bigquery-expertSkill177mo agoApache-2.0A106Claude Code
data-engineerbuiphucminhtam/forgewrightSkill493d agononeA43Claude Code
designing-data-contractsUnknown-333/awesome-data-engineering-skillsSkill273mo agononeA67Claude Code
writing-idempotent-transformationsUnknown-333/awesome-data-engineering-skillsSkill273mo agononeA77Claude Code
rag-pineconedavila7/claude-code-templatesSkill35ktodayMITA65Claude Code, Codex
ingesting-into-data-lakeaws/agent-toolkit-for-awsSkill3.8ktodayApache-2.0A228Claude Code
cx-knowledge-base-ingestionGoogleCloudPlatform/professional-servicesSkill3.1ktodayApache-2.0A48Gemini CLI