bigquery-ai-ml

bigquery-ai-ml is a skill for Claude Code, Codex from gemini-cli-extensions/bigquery-data-analytics. It costs 31 tokens per session (572 once invoked), scanned A, a copy of bigquery-ai-ml, Apache-2.0.

A skill for using BigQuery's SQL-based artificial-intelligence and machine-learning functions. It supports tasks such as forecasting, classifying unstructured text, and detecting unusual patterns in time-series data.

In plain words
What is it for?
Use it to write BigQuery SQL for AI forecasting, text classification, and time-series anomaly detection.
Why use it?
It keeps these AI and machine-learning tasks in standard SQL instead of requiring separate specialized tools. It also directs the agent to consult the required function references before writing queries.

Skill for Claude CodeCodex

Part of the bigquery-data-analytics plugin — 3 skills shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/gemini-cli-extensions/bigquery-data-analytics/bigquery-ai-ml
Any agent
npx skills add gemini-cli-extensions/bigquery-data-analytics --skill bigquery-ai-ml
Clone the repo
git clone --depth 1 https://github.com/gemini-cli-extensions/bigquery-data-analytics

Made for: Claude Code, Codex.

Or install bigquery-data-analytics, the plugin that ships this one along with the rest of its 3 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for bigquery-ai-ml

README.md
[![agentmods](https://agentmods.dev/badge/skills/gemini-cli-extensions/bigquery-data-analytics/bigquery-ai-ml.svg)](https://agentmods.dev/skills/gemini-cli-extensions/bigquery-data-analytics/bigquery-ai-ml)
Your own site
<a href="https://agentmods.dev/skills/gemini-cli-extensions/bigquery-data-analytics/bigquery-ai-ml"><img src="https://agentmods.dev/badge/skills/gemini-cli-extensions/bigquery-data-analytics/bigquery-ai-ml.svg" alt="Measured on agentmods" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 572 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00031 $0.00572
Opus 5 $0.00015 $0.00286
Sonnet 5 $0.00006 $0.00114
Haiku 4.5 $0.00003 $0.00057

Measured 3d ago against content hash bf873812bc11, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

bigquery-ai-ml scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to bigquery-ai-ml — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/bigquery-ai-ml/SKILL.md · 48 lines

How it starts

The opening of the file, as written. The whole thing — 48 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Skill: bigquery-ai-ml

This skill defines the usage and rules for BigQuery AI/ML functions, preferring SQL-based Skills over dedicated BigQuery tools.

1. Skill vs Tool Preference (BigQuery AI/ML)

Agents should prefer using the Skill (SQL via execute_sql()) over dedicated BigQuery tools for functionalities like Forecasting and Anomaly Detection.

Use execute_sql() with the standard BigQuery AI.* functions for these tasks instead of the corresponding high-level tools.

2. Mandatory Reference Routing

This skill file does not contain the syntax for these functions. You MUST read the associated reference file before generating SQL.

CRITICAL: DO NOT GUESS filenames. You MUST only use the exact paths provided below.

Function Description Required Reference File to Retrieve
AI.FORECAST Time-series forecasting via the pre-trained TimesFM model references/bigquery_ai_forecast.md
AI.CLASSIFY Categorize unstructured data into predefined labels references/bigquery_ai_classify.md
AI.DETECT_ANOMALIES Identify deviations in time-series data via the pre-trained TimesFM model references/bigquery_ai_detect_anomalies.md
AI.GENERATE General-purpose text and content generation references/bigquery_ai_generate.md
AI.GENERATE_BOOL Generate a boolean value (TRUE/FALSE) based on a prompt references/bigquery_ai_generate_bool.md
AI.GENERATE_DOUBLE Generate a floating-point number based on a prompt references/bigquery_ai_generate_double.md
AI.GENERATE_INT Generate an integer value based on a prompt references/bigquery_ai_generate_int.md
AI.IF Evaluate a natural-language boolean condition references/bigquery_ai_if.md
AI.SCORE Rank items by semantic relevance (use with ORDER BY) references/bigquery_ai_score.md
AI.SIMILARITY Compute cosine similarity between two inputs references/bigquery_ai_similarity.md
AI.SEARCH Semantic search on tables with autonomous embedding generation references/bigquery_ai_search.md

Read the full file on GitHub · 48 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 48 lines · 31 tokens per session scan A bf873812bc11

Subscribe to this mod's changes

bigquery-ai-ml is a skill published in the GitHub repository gemini-cli-extensions/bigquery-data-analytics (49 stars, last pushed 5d ago), licensed Apache-2.0. It adds 31 tokens to every session and 572 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to bigquery-ai-ml, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

cloud-sql-postgres-vectorassist

Use these skills to set up and optimize production-ready vector workloads by simply expressing your intent and performance requirements.

gemini-cli-extensions/cloud-sql-postgresql · 29 tokens

dbt-develop

REQUIRED before writing or modifying ANY dbt model. Invoke this skill FIRST whenever a task says "create", "build", "add", "modify", "update", "fix", or "refactor" a dbt model, staging file, mart, incremental, or snapshot. Skipping this skill is the leading cause of silent-correctness bugs — models that compile and…

AltimateAI/altimate-code · 294 tokens

lineage-diff

Compare column-level lineage between two versions of a SQL query to show added, removed, and changed data flow edges.

AltimateAI/altimate-code · 28 tokens

cloud-sql-postgres-health

Use these skills when you need to audit database health, identify storage bloat, find invalid indexes, analyze table statistics, and manage maintenance configurations like autovacuum.

gemini-cli-extensions/cloud-sql-postgresql · 40 tokens

notebook-kb

Use the notebook knowledge base (the local SQLite RAG /agy:notebook builds from a folder of documents) to do precise, grounded, cited work — total amounts by category, find every doc that mentions a person/organization, build a timeline, export a table — instead of re-reading prose and burning Claude's context.…

MarcosNahuel/antigravity-plugin-cc · 108 tokens

cloud-sql-postgres-data

Use these skills when you need to explore the database structure, discover schema objects like views or stored procedures, and execute custom SQL queries to interact with your data.

gemini-cli-extensions/cloud-sql-postgresql · 39 tokens