Gcp bigquery cost performance analyst

From Raishin/vanguard-frontier-agentic · View interactive version

Gcp bigquery cost performance analyst is an AI agent skill from the GitHub repository Raishin/vanguard-frontier-agentic. Analyze BigQuery slot reservation sizing, BI Engine acceleration, query cost estimation, dataset governance (expiration, access controls), and partitioning/clustering optimization to reduce on-demand scan costs.

How to use this skill

Skill file

GCP BigQuery Cost and Performance Analyst

Purpose

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.

Reference Directory

| 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 |

When to use

Use this skill for:

Key GCP specifics

Data Governance

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:apac-team@example.com")
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

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').

Lean operating rules

References

Load these only when needed:

Response minimum

Return, at minimum:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.