bigquery
Skill15 starsChanged 45 days agoMITView on GitHub
Expert Google Cloud BigQuery assistance covering standard SQL, partitioning, clustering, cost optimization, and ML. Use when running petabyte analytics queries, designing data warehouse schemas, or optimizing BI workloads.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- jpantsjoha/googlecloud-plugintheir own version, first seen Nov 16, 2026
- presmihaylov/skillstheir own version, first seen Mar 5, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- jpantsjoha/googlecloud-plugin★ 4same name
- presmihaylov/skills★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository350 other files it gives its agents.
- airflowSkill
- catboostSkill
- claudeSkill
- comfyuiSkill
- cursor-aiSkill
- dalleSkill
- daskSkill
- dbtSkill
- deepseekSkill
- fastaiSkill
- geminiSkill
- github-copilotSkill
- huggingfaceSkill
- jaxSkill
- jupyterSkill
- kerasSkill
- langchainSkill
- lightgbmSkill
- llamaindexSkill
- llamaSkill
- matplotlibSkill
- midjourneySkill
- mistralSkill
- mlflowSkill
- nltkSkill
- numpySkill
- ollamaSkill
- openai-gptSkill
- opencvSkill
- pandasSkill
- perplexitySkill
- plotlySkill
- polarsSkill
- pytorchSkill
- raySkill
- scikit-learnSkill
- seabornSkill
- spacySkill
- sparkSkill
- stable-diffusionSkill
- tensorflowSkill
- vaexSkill
- weights-biasesSkill
- whisperSkill
- xgboostSkill
- api-gatewaySkill
- clean-architectureSkill
- cqrsSkill
- domain-driven-designSkill
- event-drivenSkill
- event-sourcingSkill
- graphqlSkill
- grpcSkill
- hexagonalSkill
- microservicesSkill
- modular-monolithSkill
- monolithSkill
- rest-apiSkill
- sagaSkill
- serverlessSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 108
Always Enforce require_partition_filter=true: Prevent runaway query billing by requiring users to specify date partitions in WHERE clauses.
- Distinctive: line 110
Use BigQuery Storage Write API: Stream real-time data using the gRPC-based Storage Write API for reduced cost and guaranteed atomicity.
- Very specific: line 115
Use SELECT *: BigQuery charges per byte scanned.
- Very specific: line 116
Use ORDER BY in subqueries: Global sorting requires single-node processing.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Google BigQuery
BigQuery is Google's serverless, highly scalable, and cost-effective multi-cloud data warehouse. It processes terabytes in seconds.
When to Use
- Serverless Enterprise Data Warehousing: Querying petabytes of structured and semi-structured data with zero infrastructure management.
- Real-Time Streaming Analytics: Ingesting and querying millions of events per second with sub-second data freshness.
- In-Database Machine Learning (BigQuery ML): Training and scoring regression, classification, and forecasting models using standard SQL.
- Federated Multi-Cloud Queries (BigQuery Omni): Querying data stored in AWS S3 and Azure Blob Storage directly without egress replication.
Quick Start
-- Standard SQL
SELECT name, COUNT(*) as count
FROM `bigquery-public-data.usa_names.usa_1910_2013`
GROUP BY name
ORDER BY count DESC
LIMIT 10;Core Concepts
Capacitor Columnar Storage & Dremel Query Engine
Data is stored in proprietary Capacitor columnar format with dynamic tree-based Dremel execution slots:
-- Partitioned & Clustered Table DDL
CREATE OR REPLACE TABLE `my_project.analytics.user_events`
(
event_id STRING,
user_id STRING,
event_name STRING,
event_timestamp TIMESTAMP,
metadata JSON
)
PARTITION BY DATE(event_timestamp)
CLUSTER BY user_id, event_name
OPTIONS(
description="Partitioned clickstream events with clustering for point lookups",
require_partition_filter=true
);Semi-Structured Native JSON Querying
Queries nested JSON attributes efficiently without schema migrations:
SELECT
user_id,
JSON_VALUE(metadata.device.os) AS os_name,
JSON_EXTRACT_SCALAR(metadata, '$.cart.total') AS cart_total
FROM `my_project.analytics.user_events`
WHERE DATE(event_timestamp) = CURRENT_DATE()
AND JSON_VALUE(metadata.action) = 'checkout';BigQuery ML Model Training
Trains and evaluates predictive models entirely inside SQL:
CREATE OR REPLACE MODEL `analytics.churn_prediction_model`
OPTIONS(model_type='logistic_reg', input_label_cols=['has_churned']) AS
SELECT
total_spend,
session_count,
has_churned
FROM `analytics.customer_features`;Common Patterns
Partitioning and Clustering for Cost-Optimized Queries
Problem: Full table scans across billions of event rows lead to astronomical query costs and high latency.
Solution: Partition by date and cluster by high-cardinality lookup keys:
CREATE TABLE `project.analytics.events` (
event_id STRING,
user_id STRING,
event_type STRING,
event_timestamp TIMESTAMP
)
PARTITION BY DATE(event_timestamp)
CLUSTER BY user_id, event_type
OPTIONS (
require_partition_filter = TRUE,
partition_expiration_days = 365
);Best Practices
Do:
- Always Enforce
require_partition_filter=true: Prevent runaway query billing by requiring users to specify date partitions inWHEREclauses. - Cluster by High-Cardinality Filter Columns: Order tables by user ID, customer ID, or category to minimize scanned bytes.
- Use BigQuery Storage Write API: Stream real-time data using the gRPC-based Storage Write API for reduced cost and guaranteed atomicity.
- Inspect
Bytes Billedin Query Validator: Check dry-run scanned byte estimates before executing heavy exploratory queries.
Don't:
- Use
SELECT *: BigQuery charges per byte scanned; querying all columns drains query budgets. - Use
ORDER BYin subqueries: Global sorting requires single-node processing; sort only in the final outer query withLIMIT. - Export large query results to single CSVs: Use partitioned wildcards (
EXPORT DATA OPTIONS(...)) for multi-part exports.
Troubleshooting
| Error | Cause | Solution |
Cannot query without partition filter | require_partition_filter enabled but query lacked date WHERE clause. | Include WHERE DATE(event_timestamp) >= 'YYYY-MM-DD' in query. |
Resources exceeded during query execution | Memory exhaustion from large skew in JOIN or ORDER BY. | Pre-aggregate data, filter early, and avoid ORDER BY without LIMIT. |
Quota exceeded: Exceeded rate limits | Too many concurrent DDL/DML mutation queries per table. | Batch append mutations using BigQuery Storage Write API rather than small single INSERTs. |
References
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

