AgentSkillsCN

bigquery

查询并管理Google BigQuery数据集——运行SQL、加载数据、管理表,以及浏览数据集。

SKILL.md
--- frontmatter
name: bigquery
description: >
  Query and manage Google BigQuery datasets — run SQL, load data,
  manage tables, and browse datasets.
metadata:
  openclaw:
    requires:
      bins: [clawdata]
    primaryEnv: GOOGLE_APPLICATION_CREDENTIALS
    tags: [database, bigquery, gcp, sql, cloud]

BigQuery

Google BigQuery skill for querying, loading, and managing datasets.

Commands

TaskCommand
Connectclawdata connect add bq --type bigquery --connection-string <project-id>
Queryclawdata db query "SELECT ..." --profile bq
List tablesclawdata db tables --profile bq
List datasetsclawdata bq datasets --profile bq
Load dataclawdata bq load <dataset.table> data.csv --profile bq

Authentication

bash
# Service account (recommended for production)
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account.json

# Or use gcloud auth
gcloud auth application-default login

When to use

  • User asks to query BigQuery → use --profile flag with bigquery connection
  • User wants to load local data into BigQuery → clawdata bq load
  • User needs BigQuery cost estimates → clawdata bq dry-run "SELECT ..."