All skills
davila7 avatar

/bigquery-basics

@82b0fb3

Manages datasets, tables, and jobs in BigQuery, and integrates with BigQuery ML and Gemini for advanced data analytics and AI-driven insights. Use for SQL queries, resource management, data ingestion, or AI applications on BigQuery.

Use this Skill: https://skilld.dev/gh/davila7/claude-code-templates/bigquery-basics

This session only. Nothing lands on disk.

referencesclient-library-usage.md

≈575 tokens on demand. Your agent reads this file only when SKILL.md points to it.

BigQuery Client Libraries

Google Cloud client libraries provide an idiomatic way to interact with BigQuery from your preferred programming language.

Getting Started

To use the client libraries, ensure you have the Google Cloud SDK installed and authenticated. Install Google Cloud SDK

Python

  • Installation:

    pip install --upgrade google-cloud-bigquery
  • Usage Example:

    from google.cloud import bigquery
    client = bigquery.Client()
    query_job = client.query("SELECT * FROM `project.dataset.table` LIMIT 10")
    results = query_job.result()
  • Python Reference

Java

  • Maven Dependency:

    <dependency>
      <groupId>com.google.cloud</groupId>
      <artifactId>google-cloud-bigquery</artifactId>
    </dependency>
  • Usage Example:

    BigQuery bigquery = BigQueryOptions.getDefaultInstance().getService();
    QueryJobConfiguration queryConfig = QueryJobConfiguration.newBuilder(
        "SELECT * FROM dataset.table").build();
    TableResult results = bigquery.query(queryConfig);
  • Java Reference

Node.js (TypeScript)

  • Installation:

    npm install @google-cloud/bigquery
  • Usage Example:

    import {BigQuery} from '@google-cloud/bigquery';
    const bigquery = new BigQuery();
    const [rows] = await bigquery.query('SELECT * FROM dataset.table');
  • Node.js Reference

Go

  • Installation:

    go get cloud.google.com/go/bigquery
  • Usage Example:

    ctx := context.Background()
    client, _ := bigquery.NewClient(ctx, "project-id")
    q := client.Query("SELECT * FROM dataset.table")
    it, _ := q.Read(ctx)
  • Go Reference

BigQuery DataFrames (BigFrames)

For Python users, bigframes provides a pandas-like API that executes directly in BigQuery.

pip install --upgrade bigframes

Source: SKILL.md on GitHub

No alerts16d3 checks · Risk SAFE
  • Gen Agent Trust Hub16d

    The skill provides comprehensive instructions for managing Google BigQuery resources using official tools and libraries. It includes references for CLI usage, client libraries, infrastructure as code, and security best practices. No malicious behaviors were identified.

  • Socket16d

    No alerts

  • Snyk16d

    Risk: LOW · No issues

Signed by skilld at 82b0fb3. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 18 hours ago.

Activeupdated 5 months ago
source
google/skills (Apache 2.0)

README badge

README badge for davila7/claude-code-templates/bigquery-basics