/looker-skills:connecting-looker-to-bigqueryfrom looker-skills
Creates a Looker-to-BigQuery database connection using Application Default Credentials. Includes IAM pre-flight checks and role-granting commands.
Ships in looker-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Creates a database connection in Looker to Google BigQuery. This instruction uses Application Default Credentials (ADC), which is the recommended and most secure method for Looker Core instances running in Google Cloud, as it avoids managing service account keys.
installing-looker-cli
and authenticating-looker-cli skills).Identify the following parameters from Step 1 (Discovery):
Verify that the Looker Core service account has the necessary IAM roles on the
target GCP project (BigQuery Data Viewer, BigQuery Job User, and Service Usage Consumer):
[!IMPORTANT] When running queries through the BigQuery connection from the Looker instance, Google Cloud requires the Looker service account to have permission to compute/use resources within the project where BigQuery is billed. Without the
roles/serviceusage.serviceUsageConsumerrole (which containsserviceusage.services.use), Looker cannot authenticate or dispatch query jobs to BigQuery, resulting in a400 Bad Requesterror.
Run the IAM pre-flight check script, passing the Looker GCP project ID (where the Looker Core instance resides) and the BigQuery GCP project ID:
./skills/onboarding-preflight-check/scripts/preflight_check.sh \
--mode iam \
--looker-project {looker_gcp_project_id} \
--bq-project {bigquery_gcp_project_id}
If the check fails because roles are missing, first obtain the Looker GCP project number (or copy the exact service account email from the preflight check error output):
project_number=$(gcloud projects describe {looker_gcp_project_id} --format="value(projectNumber)")
Then run the following commands to grant the required roles to the Looker service account:
gcloud projects add-iam-policy-binding {bigquery_gcp_project_id} \
--member="serviceAccount:service-${project_number}@gcp-sa-looker.iam.gserviceaccount.com" \
--role="roles/bigquery.dataViewer"
gcloud projects add-iam-policy-binding {bigquery_gcp_project_id} \
--member="serviceAccount:service-${project_number}@gcp-sa-looker.iam.gserviceaccount.com" \
--role="roles/bigquery.jobUser"
gcloud projects add-iam-policy-binding {bigquery_gcp_project_id} \
--member="serviceAccount:service-${project_number}@gcp-sa-looker.iam.gserviceaccount.com" \
--role="roles/serviceusage.serviceUsageConsumer"
To avoid CLI parsing errors with complex arguments, write the connection
specifications directly to ./connection_config.json in your workspace.
[!IMPORTANT] For the BigQuery JDBC driver: -
hostmust be set to your GCP Project ID (which supports hyphens). -databaseandschemamust both be set to your Dataset ID (which is strictly alphanumeric/underscores only). Settingdatabaseto a project ID with hyphens will cause immediate query execution failures.
{
"name": "{connection_name}",
"dialect_name": "bigquery_standard_sql",
"uses_application_default_credentials": true,
"host": "{gcp_project_id}",
"database": "{dataset_name}",
"schema": "{dataset_name}"
}
Execute the connection import CLI command, pointing to your payload file:
looker-cli connection import ./connection_config.json
Retrieve the connection details to ensure it was created correctly:
looker-cli connection cat {connection_name}
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (looker-open-source/looker-skills) — no native marketplace selected
npx claudepluginhub p/looker-open-source-looker-skills27 skills in this plugin
/authenticating-looker-cliLooker Developer Onboarding: Step 3. Authenticates the Looker CLI using OAuth. Only execute this after Step 2 (CLI Verification using `installing-looker-cli`)./creating-looker-dashboardLooker Developer Onboarding: Step 7 (Final Step). Creates a LookML dashboard in the project, imports it as a user-defined dashboard (UDD) in Looker, and iteratively refines it based on user feedback by syncing changes. Only execute this after Step 6 (Model Setup using `creating-lookml-model`)./creating-lookml-modelLooker Developer Onboarding: Step 6. Creates LookML views and models based on the user's goals, maps model connections, validates LookML, and runs verification queries. Only execute this after Step 5 (Project Setup using `setting-up-looker-project`)./exploring-data-for-lookerLooker Developer Onboarding: Step 1. Guides the agent to explore BigQuery data and define the onboarding goal. This is the first active step, to be executed immediately after reading the parent orchestrator `looker-developer-onboarding`./installing-looker-cliLooker Developer Onboarding: Step 2. Verifies that the Looker CLI is available in the PATH, or installs it from GitHub Releases if missing. Only execute this after Step 1 (Data Discovery using `exploring-data-for-looker`)./looker-architectMaster developer skill for scaffolding, building, refactoring, validating, and auditing enterprise LookML projects. Enforces raw/refined separation, functional sequencing, and advanced drilling configurations.Other plugins' skills for the same job