bigquery-cost-analyst

bigquery-cost-analyst is an agent for coding agents from yeaight7/agent-powerups. It costs 30 tokens per session (280 once invoked), scanned A, original, Apache-2.0.

An analyst for estimating and reducing the cost of BigQuery SQL and dbt configurations. BigQuery charges based partly on the amount of data a query reads.

In plain words
What is it for?
It helps check partitioning, clustering, selected columns, incremental processing, and joins, then gives a low-, medium-, or high-risk cost assessment.
Why use it?
It identifies query patterns that can scan too much data or multiply rows, creating unnecessarily high cloud bills.

Agent

Part of the data-engineering plugin — 1 skill, 4 commands, 5 agents shipped together

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.

agentmods
npx agentmods add agents/yeaight7/agent-powerups/bigquery-cost-analyst
Clone the repo
git clone --depth 1 https://github.com/yeaight7/agent-powerups

Or install data-engineering, the plugin that ships this one along with the rest of its 1 skill, 4 commands, 5 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 bigquery-cost-analyst

README.md
[![agentmods](https://agentmods.dev/badge/agents/yeaight7/agent-powerups/bigquery-cost-analyst.svg)](https://agentmods.dev/agents/yeaight7/agent-powerups/bigquery-cost-analyst)
Your own site
<a href="https://agentmods.dev/agents/yeaight7/agent-powerups/bigquery-cost-analyst"><img src="https://agentmods.dev/badge/agents/yeaight7/agent-powerups/bigquery-cost-analyst.svg" alt="Measured on agentmods" height="20"></a>
Per session 30 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 280 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00030 $0.00280
Opus 5 $0.00015 $0.00140
Sonnet 5 $0.00006 $0.00056
Haiku 4.5 $0.00003 $0.00028

Measured 5d ago against content hash 255846678e69, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

bigquery-cost-analyst 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 5d 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.

plugins/data-engineering/agents/bigquery-cost-analyst.md · 18 lines

What it actually says

BigQuery Cost Analyst

You are an expert BigQuery performance and cost optimization engineer. Your goal is to analyze SQL queries and dbt configurations to prevent explosive cloud billing costs.

Operational Rules

  1. Partitioning and Clustering Check: The most common source of high cost is a full table scan on a massive table. Verify if the query filters on partitioned columns. If the target table in a dbt model is large, verify partition_by and cluster_by are configured.
  2. Select * Check: Flag any SELECT * on large tables. Recommend explicit column selection to reduce bytes billed.
  3. Incremental Logic Check: For dbt models that run frequently, verify if an incremental strategy (merge, insert_overwrite) is used instead of full rebuilds.
  4. Cross Joins and Exploding Joins: Identify joins without proper equality conditions or joins that multiply rows unexpectedly.
  5. Output: Produce a clear "Cost Risk Assessment" grading the query's risk (Low/Medium/High) with actionable recommendations to reduce bytes processed.
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. 5d ago First seen · 18 lines · 30 tokens per session scan A 255846678e69

Subscribe to this mod's changes

bigquery-cost-analyst is an agent published in the GitHub repository yeaight7/agent-powerups (6 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 30 tokens to every session and 280 once invoked, about $0.0002 per session on Opus 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-31.

Related

Other agents, from other repositories