bigquery-analytic-hints
Skill52 starsChanged 6 days agoApache-2.0View on GitHub
Recommends and routes to BigQuery AI capabilities for next-step data analysis. Use during exploratory data analysis, time-series or cohort pattern investigation, or text corpus exploration in BigQuery when the user has not requested a specific AI function. Proactively suggests relevant built-in BigQuery AI functions (forecasting, anomaly detection, tabular prediction, change point analysis, key driver attribution, trend/seasonality decomposition, or semantic text classification) as concise follow-up actions. Do not use for writing or looking up exact SQL syntax and function arguments, dataset or table administration, DDL/DML migrations, query performance troubleshooting, or permission checks.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- gemini-cli-extensions/bigquery-data-analyticsword for word, first seen Nov 8, 2026
Other versions1 project uses a version of this.
Word for word · 1
- gemini-cli-extensions/bigquery-data-analytics★ 52100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repositoryOne other file it gives its agents.
- bigquery-ai-mlSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 26
Analytical Invocations Only: Only suggest next-step AI capabilities when the user is conducting exploratory data analysis, metric …
- Distinctive: line 44
Delegate SQL Syntax: Never guess or synthesize complex BigQuery AI function parameters from memory.
- Distinctive: line 74
When the user has executed an initial BigQuery AI/ML query, recommend a chain of subsequent capabilities.
- Very specific: line 117
When the user asks to execute any recommendation, load bigquery-ai-ml to retrieve the complete GoogleSQL syntax, required arguments, and …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
BigQuery Analytic Hints
This skill guides the agent to proactively identify high-value analytical follow-up opportunities and present concise, context-aware next steps.
Core Operational Rules
- Analytical Invocations Only: Only suggest next-step AI capabilities when the user is conducting exploratory data analysis, metric investigation, cohort comparison, or text processing. Do not offer suggestions when the user is performing DDL/DML migrations, query troubleshooting, permission checks, or administrative tasks.
- Schema-Aware Recommendations: Tailor all suggestions dynamically to the
user's specific data context. Inspect the actual query, table, and column
names in the conversation (for example, columns like
order_date,revenue, oruser_tier), and substitute all{...}placeholders with those context-specific names. The examples in this skill are illustrative; adapt the recommendations to whatever schemas or analytical scenarios the user is exploring. Never output raw placeholder tokens (such as{data_col}or{dimension_cols}). - Concise Recommendation Cap: Append at most 2 targeted recommendations at
the end of an analytical response so the user is not overwhelmed. Prefer
specific analytical follow-ups (time-series, causality, root cause, or
prediction) over generic data profiling. Offer
ML.DESCRIBE_DATAprimarily on initial table inspection or when no specialized capability applies. - Delegate SQL Syntax: Never guess or synthesize complex BigQuery AI
function parameters from memory. Load the
bigquery-ai-mlskill when the user asks to execute a recommendation or before writing executable SQL to look up authoritative syntax, TVF options, and query shapes.
1. Scenario-to-Function Routing Matrix
Map the user's current data pattern or observation to appropriate BigQuery AI/ML function(s):
| Current Analysis / Data Pattern | Recommended Function | What It Unlocks | Contextual Recommendation Hint |
| Metrics over time (e.g., daily sales, traffic, latency, active users, spend) | AI.FORECAST | Projects future trajectories with confidence intervals without custom model training. | "Want to project {data_col} over the next {horizon} periods? We can run AI.FORECAST on {data_col} over {timestamp_col}." |
| Spikes, drops, or unexpected values in a time series | AI.DETECT_ANOMALIES | Statistically flags historical or recent outliers using zero-shot foundation models. | "To automatically identify and flag unexpected anomalies across {data_col} over {timestamp_col}, we can run AI.DETECT_ANOMALIES." |
| Sustained baseline shift or regime change over time | ML.DETECT_CHANGE_POINTS | Detects [begin_timestamp, end_timestamp] intervals where a structural break or regime shift occurred. | "To detect the exact date where {data_col} shifted permanently to a new baseline, we can run ML.DETECT_CHANGE_POINTS on {data_col} over {timestamp_col}." |
| Noisy or cyclical time series masking direction | ML.TREND / ML.SEASONALITY | Decomposes raw metrics into underlying direction (ML.TREND) and periodic cycles (ML.SEASONALITY). | "If weekly or monthly cycles obscure the overall growth rate, we can decompose {data_col} using ML.TREND and ML.SEASONALITY." |
| Evaluating an event, launch, campaign, or policy | AI.CAUSAL_EFFECT | Quantifies counterfactual post-intervention impact. | "To measure how much of the change in {data_col} post-{intervention_timestamp} was caused by the launch versus secular trends, we can run AI.CAUSAL_EFFECT." |
| Attributing metric variation across dimensions | AI.KEY_DRIVERS | Ranks dimensional attributes driving numeric metrics between interest and baseline segments. | "Want to pinpoint which customer or system attributes drive {metric_col} between {interest_label_col} segments? We can run AI.KEY_DRIVERS across {dimension_cols}." |
| Exploring numeric correlations across features | ML.CORRELATION | Computes correlation coefficients between {target_col} and candidate features (target_correlation_cols), optionally partitioned by dimension. | "We can run ML.CORRELATION to evaluate which numeric attributes correlate most strongly with {target_col}." |
| Predicting tabular outcomes or classifying records without custom model training | AI.PREDICT | Performs zero-setup tabular classification or regression via the pre-trained TabFM foundation model. | "To predict {label_col} on new records without training a custom model, we can run zero-setup AI.PREDICT using TabFM." |
| Initial inspection of an unprofiled or unfamiliar table (first look before specific metrics are explored, or fallback when no specific scenario applies) | ML.DESCRIBE_DATA | Generates summary statistics, null counts, and distribution profiles across all columns in one pass. | "To inspect initial descriptive statistics and column profiles across this table before deeper modeling, we can run ML.DESCRIBE_DATA." |
| Classifying unstructured text or multimodal columns (support tickets, notes, reviews, images, PDFs, logs) | AI.CLASSIFY | Categorizes text, images, or documents (PDFs) into user-specified classes zero-shot. | "We can categorize these {text_col} records into predefined categories directly in SQL using AI.CLASSIFY." |
| Ranking or prioritizing text or multimodal records | AI.SCORE | Assigns continuous numeric scores to text, images, or documents based on natural-language criteria. | "To rank or filter records by sentiment, severity, or lead quality, we can score {text_col} using AI.SCORE." |
| Semantic condition filtering across text or multimodal data | AI.IF | Evaluates natural-language boolean expressions per row across text, images, or documents in WHERE or SELECT. | "To filter rows matching nuanced semantic criteria (e.g., churn risk or escalation requests), we can use AI.IF on {text_col} in the WHERE clause." |
| Aggregating many text rows into group summaries | AI.AGG | Synthesizes themes across multi-row groups inside GROUP BY. | "Instead of inspecting individual rows, we can generate a consolidated executive summary of {text_col} per {group_col} using AI.AGG." |
| Generating text, row-level summaries, or extracting structured entities | AI.GENERATE | Drafts text per row (personalized responses, individual row summaries) or extracts structured schema fields (JSON/STRUCT). | "We can draft customized text, summarize each record, or extract structured fields (JSON/STRUCT) from {text_col} using AI.GENERATE." |
| Semantic search, fuzzy-matching, or deduplication across text | AI.SEARCH / AI.SIMILARITY | Managed conceptual retrieval (AI.SEARCH) or semantic proximity scoring for entity deduplication (AI.SIMILARITY). | "To search records by concept or detect duplicate text pairs, we can run AI.SEARCH or evaluate semantic similarity via AI.SIMILARITY." |
2. Capability Chaining Sequences
When the user has executed an initial BigQuery AI/ML query, recommend a chain of subsequent capabilities.
Detailed Chaining Actions
- Following
AI.FORECAST:- Audit outliers: Recommend
AI.DETECT_ANOMALIESto verify whether historical anomalies distort trend projections. - Backtest model: Recommend
AI.EVALUATEacross a holdout window to quantify MAE, MAPE, or RMSE metrics.
- Audit outliers: Recommend
- Following
AI.DETECT_ANOMALIES:- Root cause anomaly: Recommend
AI.KEY_DRIVERSto compare anomalous periods against baseline to find driving attributes. - Check regime shifts: Recommend
ML.DETECT_CHANGE_POINTSto establish if the anomaly marked a temporary spike or a permanent baseline shift.
- Root cause anomaly: Recommend
- Following
ML.DETECT_CHANGE_POINTS:- Measure the impact of the metric shift: If the detected changepoint
interval corresponds to a known event or intervention (e.g., an internal
data milestone, feature release, policy change, or campaign), recommend
AI.CAUSAL_EFFECTto quantify its impact. - Segment attribution: If no specific event is identified, recommend
AI.KEY_DRIVERScomparing pre-change and post-change time windows to isolate driving segments.
- Measure the impact of the metric shift: If the detected changepoint
interval corresponds to a known event or intervention (e.g., an internal
data milestone, feature release, policy change, or campaign), recommend
- Following
AI.KEY_DRIVERS:- Segment-level projection (if table has a time axis): Recommend
AI.FORECASTwithid_colsconfigured to the top driver dimensions to forecast key segments independently. - Evaluate actions: If a driver corresponds to a campaign or feature
launch, recommend
AI.CAUSAL_EFFECT.
- Segment-level projection (if table has a time axis): Recommend
- Following
AI.CLASSIFY,AI.SCORE, orAI.IF:- Synthesize themes: Recommend
AI.AGGgrouped by the assigned category to generate per-topic takeaways.
- Synthesize themes: Recommend
3. Formatting Next Steps in Agent Responses
Append a dedicated section to analytical responses using this structure:
### Recommended Next Steps
- **Project future trends**: Run `AI.FORECAST` on `{data_col}` over `{timestamp_col}` to estimate values for the next 30 days.
- **Diagnose anomalies**: Run `AI.DETECT_ANOMALIES` on `{data_col}` over `{timestamp_col}` to isolate unexpected spikes.When the user asks to execute any recommendation, load bigquery-ai-ml to
retrieve the complete GoogleSQL syntax, required arguments, and reference
documentation.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

