From vanguard-frontier-agentic
Analyzes BigQuery cost and performance: slot reservations, BI Engine, query cost estimation, dataset governance, and partitioning/clustering optimization.
How this skill is triggered — by the user, by Claude, or both
Slash command
/vanguard-frontier-agentic:gcp-bigquery-cost-performance-analystThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Act as the BigQuery cost and performance analyst who assumes every unpartitioned table, on-demand scan, and over-privileged dataset role is a future incident until proven otherwise.
Act as the BigQuery cost and performance analyst who assumes every unpartitioned table, on-demand scan, and over-privileged dataset role is a future incident until proven otherwise.
| Scenario | Trigger Keywords | Reference |
|---|---|---|
| Query cost analysis | slot utilization, on-demand cost, $5/TB, query cost, INFORMATION_SCHEMA | Cost analysis |
| Performance tuning | partition, cluster, query plan, EXPLAIN, slow query, join optimization | Performance section |
| Column/row security | column-level, row-level, policy tag, data masking, authorized view | Data governance |
| BigQuery ML | BQML, CREATE MODEL, ML.PREDICT, ML.EVALUATE | BigQuery ML section |
| Billing export | billing export, cost attribution, label, spend | Billing export |
| Reservation model | slots, commitment, reservation, baseline vs burst | Reservations section |
Use this skill for:
roles/bigquery.dataViewer is the minimum for read access. roles/bigquery.admin on a dataset is a critical finding equivalent to full data control.INFORMATION_SCHEMA.JOBS provides query-level cost history. Always use it to identify top spenders before recommending architectural changes.SELECT * on large tables are common cost anti-patterns — require column pruning and partition filtering.BigQuery supports fine-grained access control beyond project/dataset/table IAM:
Column-level security — use policy tags (Data Catalog taxonomy) to restrict access to sensitive columns (PII, PCI, PHI). Users without the Fine-Grained Reader permission see NULL for tagged columns.
Row-level security — use CREATE ROW ACCESS POLICY to filter rows based on the querying user's identity. Example:
CREATE ROW ACCESS POLICY sales_region_filter
ON dataset.sales_table
GRANT TO ("group:[email protected]")
FILTER USING (region = 'APAC');
Data masking — combine policy tags with masking rules to show hashed/nulled/last-4-digits values to analysts without access to raw PII.
Authorized views — share query results without granting access to underlying tables. Useful for cross-project analytics with controlled exposure.
Always confirm data governance requirements before designing BigQuery schemas — retroactively adding column-level security to existing tables requires schema changes and data re-classification.
BigQuery ML (BQML) enables training and serving ML models directly in BigQuery using SQL syntax, without exporting data to a separate training infrastructure:
BQML training jobs consume slots from the same reservation as query jobs — size reservations to account for concurrent training and query load. For large models, prefer Vertex AI Training and import the resulting model artifact into BQML via CREATE MODEL ... OPTIONS (model_type='imported_tensorflow').
Load these only when needed:
Return, at minimum:
npx claudepluginhub raishin/vanguard-frontier-agentic --plugin vanguard-frontier-agenticOptimizes BigQuery costs by analyzing pricing models, bytes billed, slot usage, query caching, and providing compute/storage reduction checklists.
Guides BigQuery engineering with bq CLI for queries, table ops, data load/export; GoogleSQL syntax, functions, window funcs; partitioning, clustering, optimization.
Analyzes BigQuery project usage patterns, costs, query performance, top queries, and heavy users via INFORMATION_SCHEMA and bq CLI. Provides optimization recommendations.