Agent skill

Bigquery Public

by ClawBio in ClawBio/ClawBio

Run read-only SQL against BigQuery public datasets with local result capture, cost safeguards, and reproducibility outputs.

MITAuto-check passedDatabases

Install Bigquery Public

skills CLI
$ npx skills add ClawBio/ClawBio --skill bigquery-public -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ClawBio/ClawBio bigquery-public --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ClawBio/ClawBio.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/bigquery-public .claude/skills/bigquery-public && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
bigquery-public
GitHub stars
1.2k
Token cost
~1.5k tokens
SKILL.md length
500 words
Files
8
Skills in repo
104
Repo updated
First seen
Licence
MIT

At a glance

Run read-only SQL against BigQuery public datasets with local result capture, cost safeguards, and reproducibility outputs.

  • Works in 6 steps: Read-only SQL execution: accepts SELECT… → Auth auto-detection: tries Python ADC… → Schema discovery: can list datasets,… → …
  • Tasks that involve Data warehousing
  • SKILL.md covers Why This Exists, Core Capabilities, Input Formats and Workflow, plus 9 more sections
  • Runs Python scripts from its folder; calls python

What it does

Bigquery Public is an agent skill from ClawBio/ClawBio. Run read-only SQL against BigQuery public datasets with local result capture, cost safeguards, and reproducibility outputs.

Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 9 other files (for example `bigquery_backends.py`, `bigquery_models.py` and `bigquery_public.py`).

It sits in Databases, covering Data warehousing, Reproducible research and SQL. It works with Google BigQuery and SQL. The repository describes itself as: 🦖 ClawBio - The first bioinformatics-native AI agent skill library. Local-first. Reproducible. Open. Free. The licence is MIT.

When your agent uses it

  • Tasks that involve Data warehousing
  • Tasks that involve Reproducible research
  • Tasks that involve SQL

Example prompts

  • “/bigquery-public”

Requirements

  • Python 3

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Read-only SQL execution: accepts SELECT / WITH queries only.
  2. Auth auto-detection: tries Python ADC first, then an authenticated bq CLI.
  3. Schema discovery: can list datasets, list tables, and describe top-level table schema.
  4. Exploration helpers: supports preview and count-only wrappers while preserving the original SQL.
  5. Cost safeguards: supports dry-run and maximum-bytes-billed limits.
  6. Reproducible outputs: writes query text, job metadata, provenance notes, CSV results, and a markdown summary locally.

What it can do on your machine

Read from SKILL.md and the folder at commit 5e045e3. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • cloud.google.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Bigquery Public loads about 1.5k tokens when it runs. Until then it costs about 35 tokens; SKILL.md has 500 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~35
When it runs · the whole SKILL.md, loaded when a task matches
~1.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from ClawBio/ClawBio at commit 5e045e3, republished under its MIT licence (© ClawBio). 500 words, ~1,532 tokens.

Download SKILL.mdSave it as .claude/skills/bigquery-public/SKILL.md (or your agent's skills folder). This skill also uses 7 other files; get the full folder from GitHub.
name
bigquery-public
description
Run read-only SQL against BigQuery public datasets with local result capture, cost safeguards, and reproducibility outputs.
license
MIT
metadata.version
0.2.1
metadata.author
ClawBio
metadata.tags
bigquery, public-datasets, sql, cloud, genomics

🗃️ BigQuery Public

You are BigQuery Public, a specialised ClawBio agent for read-only access to BigQuery public datasets. Your role is to execute safe SQL against public reference tables, save local outputs, and keep sensitive user data off the cloud.

Why This Exists

  • Without it: users have to hand-roll BigQuery auth, cost limits, SQL safety checks, and result export every time.
  • With it: a single ClawBio skill can run a public-data query, save report.md and result.json, and record reproducibility metadata.
  • Why ClawBio: it preserves the project’s local-first boundary by querying only public cloud data while keeping patient-specific interpretation local.

Core Capabilities

  1. Read-only SQL execution: accepts SELECT / WITH queries only.
  2. Auth auto-detection: tries Python ADC first, then an authenticated bq CLI.
  3. Schema discovery: can list datasets, list tables, and describe top-level table schema.
  4. Exploration helpers: supports preview and count-only wrappers while preserving the original SQL.
  5. Cost safeguards: supports dry-run and maximum-bytes-billed limits.
  6. Reproducible outputs: writes query text, job metadata, provenance notes, CSV results, and a markdown summary locally.

Input Formats

FormatExtensionRequired FieldsExample
Inline SQLn/a--querySELECT * FROM \bigquery-public-data.samples.shakespeare` LIMIT 5`
SQL file.sql--input <file.sql>queries/shakespeare_top_words.sql

Workflow

When the user asks to query BigQuery public data:

  1. Validate: accept only read-only SQL and reject multi-statement or mutating queries.
  2. Authenticate: try Python ADC, then fall back to logged-in bq CLI.
  3. Execute: run a dry-run estimate or the live query with row and byte safeguards.
  4. Discover: optionally inspect projects, datasets, tables, and top-level schema before writing SQL.
  5. Generate: write report.md, result.json, tables/results.csv, and a reproducibility bundle.

CLI Reference

bash
# Inline SQL
python skills/bigquery-public/bigquery_public.py \
  --query "SELECT corpus, word, word_count FROM \`bigquery-public-data.samples.shakespeare\` LIMIT 5" \
  --output /tmp/bigquery_public

# SQL file
python skills/bigquery-public/bigquery_public.py \
  --input path/to/query.sql \
  --output /tmp/bigquery_public

# Preview a larger query without editing the SQL file
python skills/bigquery-public/bigquery_public.py \
  --input path/to/query.sql \
  --preview 20 \
  --output /tmp/bigquery_preview

# Discover tables before writing SQL
python skills/bigquery-public/bigquery_public.py \
  --list-tables isb-cgc.TCGA_bioclin_v0 \
  --output /tmp/bigquery_tables

# Demo mode (offline fixture)
python skills/bigquery-public/bigquery_public.py --demo --output /tmp/bigquery_demo

# Via ClawBio runner
python clawbio.py run bigquery --demo
python clawbio.py run bigquery --query "SELECT 1 AS example" --output /tmp/bigquery_public
python clawbio.py run bigquery --describe isb-cgc.TCGA_bioclin_v0.Clinical --output /tmp/bigquery_schema

Demo

To verify the skill works:

bash
python clawbio.py run bigquery --demo

Expected output: a local report and CSV preview using a bundled snapshot of bigquery-public-data.samples.shakespeare.

Show full SKILL.md (212 more words)Show less

Algorithm / Methodology

  1. Normalize query: strip comments, mask literals, reject non-read-only SQL.
  2. Resolve auth: prefer ADC for the Python client, otherwise use bq if already logged in.
  3. Wrap when helpful: optionally turn a user query into a preview or count-only subquery without rewriting the original file.
  4. Run safely: apply --max-bytes-billed, --max-rows, and optional dry-run.
  5. Persist locally: store query text, result rows, job metadata, and provenance notes in the output directory.

Key parameters:

  • Default location: US
  • Default max rows: 100
  • Default max bytes billed: 1,000,000,000

Example Queries

  • "Run this public BigQuery SQL and save the output"
  • "Query a public genomics dataset in BigQuery"
  • "Dry-run this BigQuery statement and show estimated bytes"

Output Structure

text
output_directory/
├── report.md
├── result.json
├── tables/
│   └── results.csv
└── reproducibility/
    ├── commands.sh
    ├── environment.yml
    ├── job_metadata.json
    ├── provenance.json
    └── query.sql

Dependencies

Required:

  • google-cloud-bigquery — Python BigQuery client
  • google-auth — ADC detection and auth

Optional:

  • bq CLI — fallback backend when ADC is missing

Safety

  • Local-first: only public reference data is queried; do not upload patient-specific files or genotypes.
  • Read-only: no table creation, export, mutation, or multi-statement scripting.
  • Disclaimer: every report includes the standard ClawBio medical disclaimer.
  • Cost control: dry-run and billed-byte caps are enabled by default.

Integration with Bio Orchestrator

This v1 skill is intended for explicit invocation through clawbio.py run bigquery. Natural-language routing is intentionally out of scope for the first release.

Citations

© ClawBio, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 7 other files in skills/bigquery-public of ClawBio/ClawBio.

  • SKILL.md
  • bigquery_backends.py
  • bigquery_models.py
  • bigquery_public.py
  • bigquery_support.py
  • demo/demo_query.sql
  • demo/demo_result.json
  • tests/test_bigquery_public.py

Open the folder on GitHubat commit 5e045e3

Compare with similar skills

Bigquery Public next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Bigquery Public compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Bigquery Public this skillClawBio/ClawBio1.2k—~1.5kAutomated safety check: PassMIT
Semantic Analystsidequery/sidemantic129—~982Automated safety check: PassAGPL-3.0
Analysis Artifactswarpdotdev/oz-skills825—~1.1kAutomated safety check: PassMIT
Bigquery Graphgoogle/adk-python22k—~4.8kAutomated safety check: PassApache-2.0
SQL Queriesw95/awesome-claude-corporate-skills2373 repos~2.8kAutomated safety check: PassMIT
Imaging Data CommonsK-Dense-AI/scientific-agent-skills48k1 repos~7.8kAutomated safety check: PassMIT

Similar skills

  • Semantic Analyst

    sidequery/sidemantic

    Answer analytical, KPI, metric, trend, cohort, and business-performance questions through a Sidemantic semantic layer.

    129 GitHub stars~982 tokensUpdated yesterday
    DatabasesAuto-check passed
  • Analysis Artifacts

    warpdotdev/oz-skills

    Generate reproducible analysis artifacts — SQL queries, Python visualizations, and summary tables — as you work through a BigQuery data analysis.

    825 GitHub stars~1.1k tokensUpdated 1 mo ago
    DatabasesAuto-check passed
  • Bigquery Graph

    google/adk-python

    Official

    Skill for Graph Query Language (GQL) or SQL/PGQ queries against a property graph.

    22k GitHub stars~4.8k tokensUpdated yesterday
    DatabasesAuto-check passed
  • SQL Queries

    w95/awesome-claude-corporate-skills

    Write correct, performant SQL across all major data warehouse dialects (Snowflake, BigQuery, Databricks, PostgreSQL, etc.).

    237 GitHub starsUsed in 3 repos~2.8k tokens
    DatabasesAuto-check passed
  • Imaging Data Commons

    K-Dense-AI/scientific-agent-skills

    Queries and downloads public cancer imaging data from NCI Imaging Data Commons.

    48k GitHub starsUsed in 1 repo~7.8k tokens
    DatabasesAuto-check passed
  • Bigquery Basics

    google/skills

    Official

    Manages datasets, tables, and jobs in BigQuery. An agent skill from google/skills.

    21k GitHub starsUsed in 1 repo~1.1k tokens
    DatabasesAuto-check passed

More from ClawBio/ClawBio

All 104 skills in this repo
  • Fetch a region of cis-eQTL summary statistics from EBI eQTL Catalogue v7+ via tabix-on-FTP.

    1.2k GitHub starsUsed in 1 repo~4.3k tokens
    Auto-check passed
  • Xena Tcga Gene Query

    ClawBio/ClawBio

    Query TCGA tumor biology through the ucscxenatoolspy API. An agent skill from ClawBio/ClawBio.

    1.2k GitHub stars~4.7k tokensUpdated yesterday
    Auto-check passed
  • Fetch a region of GWAS summary statistics from the NHGRI-EBI GWAS Catalog harmonised collection via tabix-on-FTP.

    1.2k GitHub starsUsed in 1 repo~3.5k tokens
    Auto-check passed
  • Dnasp

    ClawBio/ClawBio

    Population genetics of pre-aligned DNA sequences or multi-sample VCFs using selected DnaSP 6 methods.

    1.2k GitHub stars~5.1k tokensUpdated yesterday
    Auto-check passed
  • Compute pairwise r² between a lead variant and every variant in a window using the 1000 Genomes Phase 3 GRCh38 reference panel, ancestry-stratified.

    1.2k GitHub stars~3.9k tokensUpdated yesterday
    Auto-check passed
  • Ncbi Datasets

    ClawBio/ClawBio

    Download genomes, genes, virus sequences, and taxonomy data from NCBI using the datasets and dataformat CLI tools.

    1.2k GitHub starsUsed in 1 repo~2.8k tokens
    Auto-check passed

Categories

Questions about Bigquery Public

What does Bigquery Public do?

Run read-only SQL against BigQuery public datasets with local result capture, cost safeguards, and reproducibility outputs. Bigquery Public is an agent skill from ClawBio/ClawBio. Run read-only SQL against BigQuery public datasets with local result capture, cost safeguards, and reproducibility outputs.

When should I use Bigquery Public?

Bigquery Public fits situations like: tasks that involve Data warehousing; tasks that involve Reproducible research; tasks that involve SQL.

How do I install Bigquery Public in Claude Code?

Run `npx skills add ClawBio/ClawBio --skill bigquery-public -a claude-code`. Or copy the skill folder (skills/bigquery-public in ClawBio/ClawBio) into .claude/skills/bigquery-public in your project. Claude Code loads it when a task matches its description.

How do I install Bigquery Public in Codex?

Run `npx skills add ClawBio/ClawBio --skill bigquery-public -a codex`. Or copy the skill folder (skills/bigquery-public in ClawBio/ClawBio) into .agents/skills/bigquery-public in your project. Codex loads it when a task matches its description.

Can I use Bigquery Public in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ClawBio/ClawBio --skill bigquery-public -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/bigquery-public, .gemini/skills/bigquery-public, .github/skills/bigquery-public and .opencode/skills/bigquery-public in your project.

What does Bigquery Public need to run?

Going by SKILL.md and its folder, Bigquery Public needs Python for the scripts in its folder and the command-line tools its instructions call (python). Our summary lists: Python 3.

Does Bigquery Public access the network?

SKILL.md names 1 domain. As links in the text: cloud.google.com. This is read from the text; nothing was executed.

Is Bigquery Public safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Bigquery Public use?

Bigquery Public is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Bigquery Public use?

About 1.5k tokens (SKILL.md is roughly 6.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Bigquery Public?

Skills that share tags, products or a category with Bigquery Public: Semantic Analyst (sidequery/sidemantic, 129 stars), Analysis Artifacts (warpdotdev/oz-skills, 825 stars), Bigquery Graph (google/adk-python, 22k stars) and SQL Queries (w95/awesome-claude-corporate-skills, 237 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Bigquery Public?

ClawBio (a GitHub organization) maintains it in ClawBio/ClawBio, which has 1,154 GitHub stars. The repository holds 104 skills in this directory. The repository was last updated on October 7, 2026.

Source: ClawBio/ClawBio on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.