Skip to content
Development
Command

/bigquery-cost-check

Audit a BigQuery SQL query or dbt model for potential cost traps before it hits production.

From plugin
agent-powerups
654 skills46 agents54 commands
Install
$ npx -y skills add yeaight7/agent-powerups --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/bigquery-cost-check

Context preview

What this command does when you run it.

Audit a BigQuery SQL query or dbt model for potential cost traps before it hits production.

Command definition

bigquery-cost-check.md
description: "Audit a BigQuery SQL query or dbt model for potential cost traps before it hits production."
argument-hint: "<sql_file_or_dbt_model>"

BigQuery Cost Check Command

CRITICAL BEHAVIORAL RULES

1. **Analyze Static SQL**: You cannot run the query to see the bytes billed. You must statically analyze the SQL syntax and dbt `config()` blocks. 2. **Focus on Bytes Billed**: In BigQuery, cost is driven by data scanned, not compute time. Focus entirely on reducing data scanned.

Execution Steps

1. Read the provided SQL or dbt model file. 2. Look for the target table's schema (if available in the repo) to identify partitioned columns. 3. Evaluate the `WHERE` clauses. Are partition keys used? If not, flag a full table scan. 4. Evaluate the `SELECT` clauses. Are there unnecessary columns? 5. For dbt models, check the `config` block. Is this a table, view, or incremental model? If it's a massive daily table rebuild, recommend an incremental strategy. 6. Provide a concise report:

  • **Risk Level**: (Low, Medium, High)
  • **Cost Drivers**: (The specific lines or patterns driving cost)
  • **Recommendations**: (Specific SQL or config changes to implement)
Ships withagent-powerups

Curated power-ups for coding agents: skills, slash commands, MCP configs, hooks, AGENTS.md templates, and workflows for serious software engineering. Claude Code, Codex, Antigravity CLI, Cursor and more

Get the whole plugin, auto-invoked
Stats
6
Stars
0
Views
2
Forks
Active
Maintenance
TypeScript
Language
Apache-2.0
License
11d ago
Last commit
3mo ago
Created

Repo: yeaight7/agent-powerups