New to Claude Skills? Learn how to install them →

google on GitHub

BigQuery Basics

Free

Effortlessly manage datasets and run SQL queries in BigQuery.

by google17.6k stars on google/skills
Updated Aug 10, 2026
Get this skill

Free · Opens the source repo

What BigQuery Basics does

BigQuery Basics is designed for developers and data analysts who need to interact with Google BigQuery, a powerful serverless data platform. This skill simplifies the management of datasets, tables, and jobs, allowing users to run SQL queries and perform data ingestion and analysis without the overhead of traditional database management. With its straightforward command-line interface, users can quickly set up their environment and start working with large datasets efficiently.

The skill provides essential commands to enable the BigQuery API, create datasets and tables, and execute queries using the bq command-line tool. Users can define table schemas in JSON format, making it easy to structure their data according to specific requirements. The ability to run SQL queries against public datasets allows for immediate exploration and analysis of data, which is particularly useful for prototyping and testing.

In addition to basic operations, BigQuery Basics offers references to advanced topics such as continuous queries for real-time data analysis, infrastructure as code examples using Terraform, and best practices for IAM and security management. This makes it a comprehensive resource for both beginners and experienced users looking to leverage BigQuery's capabilities for their data projects.

Whether you're building a data pipeline, conducting analyses, or managing large datasets, BigQuery Basics provides the foundational tools and references necessary to get started and scale your data operations effectively.

When to use it

Use this skill when you need to set up and manage BigQuery resources or run SQL queries against large datasets.

When not to use it

This skill may not be suitable for advanced BigQuery features such as machine learning integrations or complex data transformations.

What you can build with it

Setting Up a New Dataset

Quickly create a new dataset in BigQuery using the command line, enabling you to start managing your data.

Running SQL Queries

Execute SQL queries against public datasets to analyze data trends and patterns without extensive setup.

Implementing Infrastructure as Code

Use Terraform examples provided to manage BigQuery resources programmatically, ensuring consistency and version control.

How to install BigQuery Basics

View source

1. Install with the skills CLI

npx skills add google/skills/bigquery-basics --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written 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.

Setup and Basic Usage

  1. Enable the BigQuery API:

    gcloud services enable bigquery.googleapis.com --quiet
    
  2. Create a Dataset:

    bq mk --dataset --location=US my_dataset
    
  3. Create a Table:

    Create a file named schema.json with your table schema:

    [
      {
        "name": "name",
        "type": "STRING",
        "mode": "REQUIRED"
      },
      {
        "name": "post_abbr",
        "type": "STRING",
        "mode": "NULLABLE"
      }
    ]
    

    Then create the table with the bq tool:

    bq mk --table my_dataset.mytable schema.json
    
  4. Run 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 bq command-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.

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).

Frequently asked questions about BigQuery Basics

Similar skills