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。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 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
Enable the BigQuery API:
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.
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.
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.
- BigQuery AI & ML References: Reference files published for the BigQuery AI and ML skill.
常见问题
我该如何开始使用 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.
热度
- GitHub 星标
- 33k
- 排名
- #8714
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
owasp-security
33k教你的智能体掌握面向网页应用、API、移动端、容器和 AI 智能体的 OWASP 安全指南,以便发现常见弱点并提出修复建议。
agent-management
33k让你的智能体使用 AI Maestro 命令行工具创建、列出、休眠、唤醒、重命名和删除 AI 智能体,管理每个智能体的生命周期。
agent-messaging
33k让你的智能体使用智能体消息协议,在 AI 智能体之间发送、接收和回复带签名的消息,大部分在你自己的电脑上完成。
docs-search
33k让你的智能体搜索自动生成的代码文档,查找函数签名、类定义和注释,从而在修改代码之前核对真实的 API。