bigquery-basics
它能做什么
这个技能帮你使用 Google 的大型数据仓库 BigQuery。它适用于需要存储、加载和查询数据,又不想自己管理服务器的人。
适用场景
- ✓当你想创建或管理 BigQuery 数据集、表或视图的时候。
- ✓当你需要对 BigQuery 数据运行 SQL 查询的时候。
- ✓当你想用基本命令加载或分析 BigQuery 中的数据集的时候。
技能链接
https://github.com/google/skills/blob/main/skills/cloud/bigquery-basics/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请为我的销售数据创建一个 BigQuery 数据集,把 CSV 文件加载进去,然后对它运行一次查询。”
每周 5 个新技能,1 分钟读完。
工作原理
它使用 bq 命令行工具和 SQL 来创建资源、加载数据并进行分析。它会先确认 BigQuery API 已开启。
技术内容(原始 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.
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).
常见问题
我需要设置服务器吗?
不需要。BigQuery 是无服务器的,所以无需管理任何东西。
我需要先开启 API 吗?
需要。必须在你的 Google Cloud 项目中启用 BigQuery API。
我也可以用 Python 吗?
可以。BigQuery 既可以用 SQL 也可以用 Python 进行分析。
详情
作者的原始描述
Manages datasets, tables, and jobs in BigQuery. Use when you need to interact with BigQuery, run SQL queries, manage BigQuery resources (datasets, tables, views), or perform basic data ingestion and analysis.
repo: google/skills
热度
- GitHub 星标
- 22k
- 排名
- #10225
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
finding-google-skills
22k帮你的智能体为某项设置任务找到合适的 Google 指南,例如托管、数据库、存储、登录或 AI 模型服务。
gcloud
22k帮你的智能体编写并检查 Google Cloud gcloud 命令,在运行任何内容之前查阅准确的语法,避免猜测参数。
google-cloud-recipe-auth
22k引导你的智能体了解 Google Cloud 的身份与访问管理,包括人员和服务如何登录,以及它们各自获得哪些权限。
google-cloud-recipe-onboarding
22k带领新开发者完成在 Google Cloud 上的第一步,包括选择项目、关联计费,以及部署第一个资源。