mubashermohammed/opencode-bioinfo/bigquery-public
Claude Code and agent skill by mubashermohammed/opencode-bioinfo
- community
Checking that the SKILL.md file is still in the repository.
Run read-only SQL against BigQuery public datasets with local result capture, cost safeguards, and reproducibility outputs.
Install
npx vskill@latest install mubashermohammed/opencode-bioinfo/bigquery-publicSKILL.md
The same SKILL.md was published earlier as mubashermohammed/opencode-bioinfo/bigquery-public.
🗃️ 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.mdandresult.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
- Read-only SQL execution: accepts
SELECT/WITHqueries only. - Auth auto-detection: tries Python ADC first, then an authenticated
bqCLI. - Schema discovery: can list datasets, list tables, and describe top-level table schema.
- Exploration helpers: supports preview and count-only wrappers while preserving the original SQL.
- Cost safeguards: supports dry-run and maximum-bytes-billed limits.
- Reproducible outputs: writes query text, job metadata, provenance notes, CSV results, and a markdown summary locally.
Input Formats
| Format | Extension | Required Fields | Example | |
|---|---|---|---|---|
| Inline SQL | n/a | --query | SELECT * 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:
- Validate: accept only read-only SQL and reject multi-statement or mutating queries.
- Authenticate: try Python ADC, then fall back to logged-in
bqCLI. - Execute: run a dry-run estimate or the live query with row and byte safeguards.
- Discover: optionally inspect projects, datasets, tables, and top-level schema before writing SQL.
- Generate: write
report.md,result.json,tables/results.csv, and a reproducibility bundle.
CLI Reference
Demo
To verify the skill works:
Expected output: a local report and CSV preview using a bundled snapshot of bigquery-public-data.samples.shakespeare.
Algorithm / Methodology
- Normalize query: strip comments, mask literals, reject non-read-only SQL.
- Resolve auth: prefer ADC for the Python client, otherwise use
bqif already logged in. - Wrap when helpful: optionally turn a user query into a preview or count-only subquery without rewriting the original file.
- Run safely: apply
--max-bytes-billed,--max-rows, and optional dry-run. - 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
Dependencies
Required:
google-cloud-bigquery— Python BigQuery clientgoogle-auth— ADC detection and auth
Optional:
bqCLI — 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
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/clawbio/bigquery-public/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Grok Build (Cursor)
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/mubashermohammed/opencode-bioinfo/bigquery-public)