Install
$ agentstack add skill-swapnildahiphale-opensre-database-bigquery ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
BigQuery Data Warehouse
Authentication
IMPORTANT: Credentials are injected automatically by a proxy layer. Do NOT check for BIGQUERY_SERVICE_ACCOUNT_KEY in environment variables - it won't be visible to you. Just run the scripts directly; authentication is handled transparently.
Configuration environment variables you CAN check (non-secret):
BIGQUERY_PROJECT_ID- GCP project IDBIGQUERY_DATASET- Default dataset
MANDATORY: Schema-First Investigation
List datasets and tables before writing queries.
LIST DATASETS → LIST TABLES → GET TABLE SCHEMA → QUERY
Available Scripts
All scripts are in .claude/skills/database-bigquery/scripts/
list_datasets.py - List Datasets (START HERE)
python .claude/skills/database-bigquery/scripts/list_datasets.py
list_tables.py - List Tables in Dataset
python .claude/skills/database-bigquery/scripts/list_tables.py --dataset DATASET_ID
gettableschema.py - Table Schema Details
python .claude/skills/database-bigquery/scripts/get_table_schema.py --dataset DATASET_ID --table TABLE_ID
query.py - Run SQL Queries
python .claude/skills/database-bigquery/scripts/query.py --query "SELECT * FROM dataset.table LIMIT 10" [--dataset DEFAULT_DATASET] [--max-results 1000]
BigQuery SQL Reference
-- Standard SQL (default)
SELECT * FROM `project.dataset.table` LIMIT 10
-- Aggregate with time
SELECT DATE(timestamp), COUNT(*) as events
FROM `dataset.events`
WHERE timestamp > TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 24 HOUR)
GROUP BY 1 ORDER BY 1 DESC
-- Partitioned table query (cost-efficient)
SELECT * FROM `dataset.events`
WHERE _PARTITIONTIME >= TIMESTAMP('2026-01-01')
Investigation Workflow
Data Analysis
1. list_datasets.py (find available datasets)
2. list_tables.py --dataset (find tables)
3. get_table_schema.py --dataset --table
4. query.py --query "SELECT ..."
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: swapnildahiphale
- Source: swapnildahiphale/OpenSRE
- License: Apache-2.0
- Homepage: https://opensre.in
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.