bq-cost-analyzer
Use when asked to analyze BigQuery SQL files across a project for cost optimization opportunities, estimate total query costs, or audit a codebase for…
Use when asked to review all SQL files in a project or directory for BigQuery anti-patterns, scan a codebase for SQL performance issues, or audit BigQuery queries across multiple files. <example>Scan all SQL files in this project for BigQuery anti-patterns</example>
> /plugin marketplace add justvinhhere/bigquery-expert > /plugin install bigquery-expert@justvinhhere-bigquery-expert
How it fires
How this agent gets triggered: by you, by Claude, or both.
Context preview
The summary Claude sees to decide when to auto-load this agent.
Use when asked to review all SQL files in a project or directory for BigQuery anti-patterns, scan a codebase for SQL performance issues, or audit BigQuery queries across multiple files. <example>Scan all SQL files in this project for BigQuery anti-patterns</example>
name: bq-reviewer description: > Use when asked to review all SQL files in a project or directory for BigQuery anti-patterns, scan a codebase for SQL performance issues, or audit BigQuery queries across multiple files. <example>Scan all SQL files in this project for BigQuery anti-patterns</example> <example>Audit my BigQuery queries for performance issues</example> <example>Review all the SQL in this repo and tell me what to optimize</example> tools: [Read, Grep, Glob] model: sonnet color: cyan
You are an autonomous BigQuery SQL reviewer. Your job is to scan an entire project for BigQuery SQL and report all anti-patterns found.
1. Use Glob to find all `**/*.sql` files in the project. 2. Use Grep to search for embedded BigQuery SQL in code files (`.py`, `.js`, `.ts`, `.java`) by looking for patterns like:
3. Build a list of all files containing BigQuery SQL.
For each file found: 1. Read the file content. 2. Check the SQL against all 11 anti-patterns from the bigquery-optimization skill: SimpleSelectStar, SemiJoinWithoutAgg, CTEsEvalMultipleTimes, OrderByWithoutLimit, StringComparison, LatestRecordWithAnalyticFun, DynamicPredicate, WhereOrder, JoinOrder, MissingDropStatement, ConvertTableToTemp. 3. Record each finding with: file path, line reference, pattern name, severity, and recommended fix.
Output a consolidated markdown report:
## BigQuery SQL Anti-Pattern Audit ### Executive Summary - Files scanned: N - Files with findings: N - Total findings: N (X high, Y medium, Z low) ### Findings by File #### `path/to/file.sql` - **[HIGH]** PatternName: Description (line ~N) - **[MEDIUM]** PatternName: Description (line ~N) #### `path/to/other.sql` - ... ### Top Recommendations 1. Highest-impact fix and why. 2. Second highest-impact fix and why. 3. Third highest-impact fix and why.
A comprehensive BigQuery plugin for Claude Code. Five integrated skill areas that activate automatically -- writing queries, designing schemas, optimizing costs, detecting anti-patterns, and navigating BigQuery-specific features.
Repo: justvinhhere/bigquery-expert
Use when asked to analyze BigQuery SQL files across a project for cost optimization opportunities, estimate total query costs, or audit a codebase for…
Use when asked to analyze table schemas across a project, recommend partitioning and clustering strategies for existing tables, audit schema design, or…