Connect bigquery
Connect a BigQuery project to Swantje — collects project/dataset config and guides service account credential setupFrom its SKILL.md
npx -y skills add datumlabsio/swantje --skill connect-bigqueryAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.6 KB, as published. Nobody here has run it
BigQuery Connector
Guide the user through connecting their BigQuery project.
What to collect
Non-secret (write to .swantje/config.json):
project_id(required) — GCP project ID, e.g.my-company-dwhdataset(optional) — default dataset to query againstlocation(default:US) — dataset region
Secret (env var only):
GOOGLE_APPLICATION_CREDENTIALS— path to a service account JSON key file
Credential guidance
Two options — present both:
Option A — Service account key (recommended for local dev):
- Go to GCP Console → IAM → Service Accounts
- Create or select a service account with
BigQuery Data Viewer+BigQuery Job Userroles - Download a JSON key
- Set the env var:
export GOOGLE_APPLICATION_CREDENTIALS="/path/to/key.json"
Option B — Application Default Credentials (recommended for CI/cloud):
gcloud auth application-default login
No env var needed when ADC is set up.
Write the config
Read .swantje/config.json and update connectors.bigquery:
"bigquery": {
"enabled": true,
"project_id": "<value>",
"dataset": "<value or null>",
"location": "<value>"
}
Verify
[STUB — v0.0.1] Connection verification not yet implemented. Manual test:
bq query --project_id=<project_id> 'SELECT 1'
Confirm
Tell the user BigQuery is now configured and they can use /swantje:analyst to query it.