Bigquery Basics
GoogleOfficialPublished by Google
- Skill
- Tool integration
- Cloud and DevOps
- Apache-2.0
- Low risk
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
BigQuery Basics provides a structured approach to interacting with Google BigQuery, a serverless data platform. This skill covers essential resource management, including creating datasets and tables, executing SQL queries, and tracking data changes. It emphasizes standardized usage attribution for all CLI and API interactions to ensure proper telemetry within agent environments.
What it does
- Enables the BigQuery API for cloud projects.
- Creates and manages BigQuery datasets and tables.
- Executes SQL queries against public and private datasets.
- Tracks incremental table changes using APPENDS and CHANGES functions.
- Provides guidance on IAM, security, and infrastructure-as-code practices.
- Implements mandatory usage attribution for CLI and API requests.
When to use it
- When you need to perform data ingestion or analysis within BigQuery.
- When managing BigQuery resources like datasets, tables, or views via CLI.
- When you need to audit or process incremental data changes in a table.
- When integrating BigQuery operations into automated workflows or infrastructure scripts.
Advantages
- Standardized command attribution for better observability.
- Comprehensive coverage of core BigQuery resource management.
- Includes advanced features like change history tracking.
- Provides clear examples for both CLI and programmatic access.
Usage examples
- “Create a new BigQuery dataset named sales_data in the US location.”
- The agent executes the bq mk command with the appropriate flags to create the dataset in the specified region.
- “Run a SQL query to select all rows from my_dataset.orders where the status is 'complete'.”
- The agent uses the bq query command with --use_legacy_sql=false to execute the SQL statement and return the results.
Install
Download the skill as a ZIP:
https://mp-staging.autogineer.com/agent-skills/google/bigquery-basics/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip bigquery-basics.zip -d .agents/skills
Documentation by Google
BigQuery Basics
BigQuery is a serverless, AI-ready data platform that enables high-speed analysis of large datasets using SQL and Python. Its disaggregated architecture separates compute and storage, allowing them to scale independently while providing built-in machine learning, geospatial analysis, and business intelligence capabilities.
Attribution
MUST READ: Before executing any gcloud, REST API, or MCP command, you
MUST read Usage Attribution. For commands executed
directly in the terminal (never in generated scripts, Terraform, or user code),
prefix gcloud with
CLOUDSDK_METRICS_REQUEST_ATTRIBUTION="agent-skills/1.0 (skill:bigquery-basics)"
and append agent-skills/1.0 (skill:bigquery-basics) to User-Agent headers.
Setup and Basic Usage
Enable the BigQuery API:
CLOUDSDK_METRICS_REQUEST_ATTRIBUTION="agent-skills/1.0 (skill:bigquery-basics)" \ gcloud services enable bigquery.googleapis.com --quietCreate a Dataset:
bq mk --dataset --location=US my_datasetCreate a Table:
Create a file named
schema.jsonwith your table schema:[ { "name": "name", "type": "STRING", "mode": "REQUIRED" }, { "name": "post_abbr", "type": "STRING", "mode": "NULLABLE" } ]Then create the table with the
bqtool:bq mk --table my_dataset.mytable schema.jsonRun a Query:
bq query --use_legacy_sql=false \ 'SELECT name FROM `bigquery-public-data.usa_names.usa_1910_2013` \ WHERE state = "TX" LIMIT 10'
Reference Directory
Core Concepts: Storage types, analytics workflows, and BigQuery Studio features.
Change History: Tracking and querying incremental table changes using APPENDS and CHANGES.
Continuous Queries: Running continuous SQL statements to analyze incoming data in real time.
CLI Usage: Essential
bqcommand-line tool operations for managing data and jobs.Client Libraries: Using Google Cloud client libraries for Python, Java, Node.js, and Go.
MCP Usage: Using the BigQuery remote MCP server and Gemini CLI extension.
Infrastructure as Code: Terraform examples for datasets, tables, and reservations.
IAM & Security: Roles, permissions, and data governance best practices.
Usage Attribution: Standardized usage attribution tags for
gcloudCLI, REST API, and MCP requests.
If you need product information not found in these references, use the
Developer Knowledge MCP server search_documents tool.
Related Skills
BigQuery AI & ML Skill: SKILL.md file for BigQuery AI and ML capabilities (forecast, anomaly detection, text generation).
Files
- ATTRIBUTION.mdAdded by AutoGineer848 B
- LICENSELicence file added by AutoGineer11.1 KiB
- SKILL.md3.4 KiB
- references/attribution.md1.8 KiB
- references/change-history.md2.5 KiB
- references/cli-usage.md2.0 KiB
- references/client-library-usage.md2.3 KiB
- references/continuous-queries.md3.6 KiB
- references/core-concepts.md3.3 KiB
- references/iac-usage.md1.7 KiB
- references/iam-security.md1.9 KiB
- references/mcp-usage.md2.3 KiB
references/iam-security.md
BigQuery IAM & Security
BigQuery uses Identity and Access Management (IAM) to provide granular access control to its resources. As a security best practice, follow the principle of least privilege: grant only the permissions required to perform a specific action. This includes using the least permissive IAM role at the most granular level—such as the table or view level—that is necessary.
Predefined IAM Roles
For a complete list of predefined roles and detailed usage information, see BigQuery IAM roles.
Service Accounts and Agents
Default Service Account: BigQuery uses a managed service account (
[email protected]or the more general BigQuery Service Agent[email protected]) for internal operations.Service Account Impersonation: Use
gcloud config set auth/impersonate_service_accountfor secure, temporary credential access.
Data Security
Encryption at Rest: All data is encrypted by default using Google-managed keys. Use Customer-Managed Encryption Keys (CMEK) for greater control.
VPC Service Controls: Define a service perimeter to prevent data exfiltration.
Column-Level Security: Use policy tags to restrict access to sensitive columns.
Row-Level Security: Use row access policies to filter data based on user identity.
Data Masking: Obscure sensitive data in a table while still permitting authorized users to access surrounding data.
Audit Logs: Record user activity and system events to enforce data governance policies and identify potential security risks.
Authorized Views: Allow users to query a view without granting them access to the underlying tables.
For more detailed information, see: BigQuery Security Overview.
Requirements and compatibility
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Needs: Needs an MCP server, Needs a command-line tool
Security
What our scanner noticed· Low risk
- Instructions that use the network
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Published by
- Publisher
- Google (Official)
- Source
- google/skills · skills/cloud/bigquery-basics · commit 2194d3b
- Licence
- Apache License 2.0 (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by Google.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download bigquery-basics.zip