bigquery-ai-ml
Skill by google
BigQuery AI and ML is a skill that helps an assistant write SQL using BigQuery's built-in ML and GenAI functions. It is for analysts and developers who need forecasting, anomaly detection, search or generative AI inside BigQuery.
Install bigquery-ai-ml
Built from the published package, never by AI.
git clone --depth 1 https://github.com/google/adk-python /tmp/adk-python && mkdir -p ~/.claude/skills && cp -r /tmp/adk-python/src/google/adk/integrations/bigquery/skills/bigquery-ai-ml ~/.claude/skills/bigquery-ai-mlRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/google/adk-python /tmp/adk-python && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/adk-python/src/google/adk/integrations/bigquery/skills/bigquery-ai-ml ~/.gemini/antigravity-cli/skills/bigquery-ai-mlAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
BigQuery AI and ML is an agent skill from Google that guides an AI assistant to write SQL queries using BigQuery's built-in machine learning and generative AI functions. It names functions such as AI.FORECAST, AI.KEY_DRIVERS, AI.DETECT_ANOMALIES and AI.GENERATE. The skill includes a function selection table that maps each task to a reference file and notes whether a CREATE MODEL or CREATE VECTOR INDEX step is needed.
The source says some functions are zero-shot, such as the TimesFM forecasting and TabFM prediction functions, so they work without training a custom model. Other functions, such as remote models and VECTOR_SEARCH, need a model or index first. The skill is meant for people who want SQL-based analytics inside BigQuery. The source says it should not be used for general dataset, table, or job management requests.
Written from the project's SKILL.md and checked against it.
What it can do
- AI.FORECASTZero-shot TimesFM time-series forecasting without training a custom model.
- AI.DETECT_ANOMALIESDetects isolated point anomalies or outliers in a time series.
- AI.KEY_DRIVERSAttributes dimensional segments that drive changes in a metric.
- AI.GENERATERuns per-row LLM text generation or structured extraction in SQL.
- AI.SEARCHRuns semantic search on a raw string query over tables with embeddings.
- VECTOR_SEARCHSearches pre-computed embedding columns between a base table and a query table.
- AI.CLASSIFYAssigns text or multimodal data to predefined category labels.
- AI.IFEvaluates boolean semantic conditions for WHERE, CASE or JOIN filtering.
- ML.DETECT_CHANGE_POINTSDetects structural breaks or sustained shifts in a time series.
- ML.TRENDExtracts the smoothed long-term trend from a historical time series.
What you need
- BigQuery
- Vertex AI integration
- A BigQuery connection for remote models
Try asking
- Forecast next month's daily sales in BigQuery using AI.FORECAST
- Find outliers in my sensor readings table with AI.DETECT_ANOMALIES
- Write a query that classifies support tickets with AI.CLASSIFY
Good to know
- Some functions require a CREATE MODEL or CREATE VECTOR INDEX step first.
- Remote models need a Vertex AI connection using REMOTE WITH CONNECTION DEFAULT.
- Not for general BigQuery dataset, table, or job management requests.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: src/google/adk/integrations/bigquery/skills/bigquery-ai-ml/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md8 KB -
references/ai_agg.md6 KB -
references/ai_causal_effect.md11 KB -
references/ai_classify.md4 KB -
references/ai_detect_anomalies.md5 KB
Show all 24 files
-
references/ai_evaluate.md2 KB -
references/ai_forecast.md11 KB -
references/ai_generate.md3 KB -
references/ai_generate_embedding.md2 KB -
references/ai_generate_table.md3 KB -
references/ai_if.md2 KB -
references/ai_key_drivers.md5 KB -
references/ai_predict.md9 KB -
references/ai_score.md2 KB -
references/ai_search.md4 KB -
references/ai_similarity.md3 KB -
references/ml_contribution_analysis.md5 KB -
references/ml_correlation.md9 KB -
references/ml_describe_data.md5 KB -
references/ml_detect_change_points.md6 KB -
references/ml_seasonality.md7 KB -
references/ml_trend.md4 KB -
references/remote_models.md1 KB -
references/vector_search.md4 KB
Alternatives to bigquery-ai-ml
All alternatives →Guides an assistant through the Kaggle CLI, covering competitions, datasets, notebooks, models, benchmarks, authentication and quota. It is for people who use the kaggle command-line tool.
Generates Python code that uses BigQuery DataFrames (BigFrames) for data processing, analysis and machine learning on BigQuery. It is meant for Python data tasks, and the source says to use bigquery-basics for SQL-first workflows.
Discovers connected data sources and proposes loading options when a workspace lacks the data a question needs. Suited to users who want to connect database, warehouse or cloud sources from the chat.
Guides developers through enabling the Data Manager API, setting up Application Default Credentials, and installing its client libraries. Built for developers who are getting started with the API and need local environment and access setup.
Guides authoring and validating Apache Airflow DAGs for Managed Service for Apache Airflow (MSAA), formerly Cloud Composer. Built for developers who create or extend Airflow DAGs in these environments.
Extracts structured JSON data from over 40 websites, including Amazon, LinkedIn, Instagram, TikTok, Facebook and YouTube. Built on Bright Data's Web Data APIs, it returns product details, profiles, reviews, posts and comments from a URL.
Compare with kaggle-cli, bigquery-bigframes or data-loading
bigquery-ai-ml: common questions
What does the BigQuery AI and ML skill cover?
It covers BigQuery built-in ML and GenAI functions for forecasting, anomaly detection, semantic and vector search, classification and generative AI, used inside SQL queries.
Which functions need a model or index before use?
The source marks AI.GENERATE_TABLE, AI.GENERATE_EMBEDDING, VECTOR_SEARCH, remote models and CONTRIBUTION_ANALYSIS as requiring CREATE MODEL or CREATE VECTOR INDEX.
Can this skill manage BigQuery datasets or jobs?
No. The source says not to use it for general dataset, table, or job management requests.
How do I install bigquery-ai-ml?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is bigquery-ai-ml free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is bigquery-ai-ml safe to use?
It scores 89 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to bigquery-ai-ml?
Similar skills: kaggle-cli, bigquery-bigframes, data-loading, data-manager-api-setup.
