Skip to content
Data
Command

/bq-design-table

Design a BigQuery table schema with optimal partitioning, clustering, and data types. Describe your data or paste a sample.

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-design-table

Context preview

What this command does when you run it.

Design a BigQuery table schema with optimal partitioning, clustering, and data types. Describe your data or paste a sample.

Command definition

bq-design-table.md
description: Design a BigQuery table schema with optimal partitioning, clustering, and data types. Describe your data or paste a sample.
argument-hint: "<data description or sample>"

BigQuery Table Design

Design an optimal BigQuery table schema using the `bigquery-schema-design` skill.

Instructions

1. **Determine the input:**

  • If an argument is provided, treat it as the data description or sample data.
  • If a file path is provided, read that file for sample data or an existing schema.
  • If no argument is provided, ask the user to describe their data, its volume, and primary query patterns.

2. **Gather context** by asking (if not already provided):

  • What queries will run against this table? (filter columns, aggregations, joins)
  • Approximate data volume and growth rate (rows/day, total size).
  • Write pattern: batch loads, streaming inserts, or frequent updates?
  • Data retention requirements (how long to keep data).

3. **Design the schema** using the `bigquery-schema-design` skill:

  • Choose partitioning strategy based on primary filter column and data volume.
  • Choose clustering columns based on secondary filters and join keys.
  • Decide nested vs. flat based on entity relationships and update patterns.
  • Select optimal data types for each column.
  • Consider table type (native, materialized view, external) based on access patterns.

4. **Output the recommendation** in the standard schema design format:

  • Design decisions summary (partitioning, clustering, nesting, data types).
  • Complete `CREATE TABLE` DDL with all options.
  • Rationale explaining trade-offs and why this design fits the workload.
  • If applicable, suggest materialized views or complementary tables.
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.