bq-reviewer

bq-reviewer is an agent for Claude Code from justvinhhere/bigquery-expert. It costs 95 tokens per session (607 once invoked), scanned A, original, Apache-2.0.

An agent that reviews every SQL file in a project for BigQuery anti-patterns, meaning query structures that can cause unnecessary cost, slow execution, or incorrect results.

In plain words
What is it for?
It is for finding SQL files and embedded queries, reporting the file and line for each issue, rating its severity, and suggesting fixes.
Why use it?
It collects findings across the whole codebase instead of relying on a review of only a few visible queries.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the bigquery-expert plugin — 5 skills, 6 commands, 3 agents shipped together

Good fit It is for finding SQL files and embedded queries, reporting the file and line for each issue, rating its severity, and suggesting fixes.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/justvinhhere/bigquery-expert/bq-reviewer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/justvinhhere/bigquery-expert

Made for: Claude Code.

Or install bigquery-expert, the plugin that ships this one along with the rest of its 5 skills, 6 commands, 3 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for bq-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/justvinhhere/bigquery-expert/bq-reviewer/github.svg)](https://agentmods.dev/agents/justvinhhere/bigquery-expert/bq-reviewer)
Your own site
<a href="https://agentmods.dev/agents/justvinhhere/bigquery-expert/bq-reviewer"><img src="https://agentmods.dev/badge/agents/justvinhhere/bigquery-expert/bq-reviewer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for bq-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/justvinhhere/bigquery-expert/bq-reviewer"><img src="https://agentmods.dev/badge/agents/justvinhhere/bigquery-expert/bq-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 95 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 607 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00095 $0.00607
Opus 5.5 $0.00038 $0.00243
Sonnet 5.5 $0.00019 $0.00121
Haiku 4.5 $0.00010 $0.00061

Measured 3mo ago against content hash ae0d98ba6253, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

bq-reviewer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/bq-reviewer.md · 68 lines

What it actually says

You are an autonomous BigQuery SQL reviewer. Your job is to scan an entire project for BigQuery SQL and report all anti-patterns found.

Workflow

Phase 1: Discover SQL Files

  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:
    • Backtick-quoted table references: `project.dataset.table`
    • BigQuery-specific syntax: CREATE TEMP TABLE, INFORMATION_SCHEMA, ARRAY_AGG, STRUCT, UNNEST
  3. Build a list of all files containing BigQuery SQL.

Phase 2: Analyze Each File

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.

Phase 3: Generate Report

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.

Rules

  • Do NOT ask the user for confirmation. Scan autonomously and report results.
  • If no SQL files are found, report that clearly.
  • If no anti-patterns are found in any file, explicitly confirm the project follows BigQuery best practices.
  • Focus on actionable findings. Skip false positives where context makes the pattern acceptable.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 68 lines · 95 tokens per session scan A ae0d98ba6253

Subscribe to this mod's changes

bq-reviewer is an agent published in the GitHub repository justvinhhere/bigquery-expert (17 stars, last pushed 7mo ago), licensed Apache-2.0. It adds 95 tokens to every session and 607 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

bq-reviewer compared with agents from other repositories

bq-reviewer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
bq-reviewerjustvinhhere/bigquery-expertAgent177mo agoApache-2.0A95Claude Code
cpp-revieweraffaan-m/ECCAgent317k3d agoMITA41Claude Code, Kiro
thermo-nuclear-code-quality-review-subagentmichael-denyer/pstack-claudeAgent5.2ktodayMITA68Claude Code
atomic-auditordamusix/atomic-claudeAgent118todayMITA169Claude Code
Reviewermonkilabs/opencastleAgent82yesterdayMITA30Claude Code
karimo-implementeropensesh/KARIMOAgent2921mo agoApache-2.0A49Claude Code
reviewergenkovich/sddAgent2611mo agoMITA81Claude Code