跳到正文
Skillpedia
数据库33k · #8714

bigquery-basics

它能做什么

这个技能帮你的 AI 智能体使用 Google BigQuery,这是一个用 SQL 分析大数据的无服务器数据平台。适合在 Google Cloud 上处理大型数据集的分析师和开发者。

适用场景

  • ✓当你需要在 BigQuery 的大型数据集上运行 SQL 查询时。
  • ✓当你想在 Google Cloud 中为数据创建数据集或表时。
  • ✓当你想使用 BigQuery ML 或 AI 功能进行分析时。

技能链接

https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/database/bigquery-basics/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/database/bigquery-basics/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请用我的销售 CSV 文件创建一个 BigQuery 表,并按地区显示总额。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体使用 bq 命令行工具和 SQL 查询来创建数据集和表,并进行分析。它会遵循该技能关于模式和查询格式的指导。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

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.

  • 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?

先在你的 Google Cloud 项目中启用 BigQuery API,然后用 bq 工具创建数据集。

我需要懂 SQL 吗?

懂一些 SQL 会有帮助,但智能体可以根据你的问题替你编写查询。

它也能和 Python 一起使用吗?

能。该技能说明 BigQuery 同时支持 SQL 和 Python。

详情

作者的原始描述

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.

repo: davila7/claude-code-templates

热度

GitHub 星标
33k
排名
#8714
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能