bigquery-cost-analyst
Analyzes BigQuery SQL and dbt configurations to predict and reduce query costs. Identifies full table scans, poor partitioning, and inefficient joins.
$ npx -y skills add yeaight7/agent-powerups --agent claude-codeHow it fires
How this agent gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
Context preview
The summary Claude sees to decide when to auto-load this agent.
Analyzes BigQuery SQL and dbt configurations to predict and reduce query costs. Identifies full table scans, poor partitioning, and inefficient joins.
Agent definition
bigquery-cost-analyst.mddescription: "Analyzes BigQuery SQL and dbt configurations to predict and reduce query costs. Identifies full table scans, poor partitioning, and inefficient joins." argument-hint: "<sql_file_or_dbt_model>" model: sonnet
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.
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
Repo: yeaight7/agent-powerups
Other agents on agent-powerups.
- codebase-mapper
Explores codebase and writes structured analysis documents. Spawned by map-codebase with a focus area (tech, arch, quality, concerns). Writes documents directly to reduce orchestrator context load.
Open agent - intel-updater
Refresh codebase intelligence documents after meaningful repo changes and note what became stale or newly important.
Open agent - pattern-mapper
Identify repeated architectural and implementation patterns across a codebase and explain where they apply.
Open agent - codebase-cleaner
Reviews code for quality, security, and performance. Detects code smells, identifies vulnerabilities, and recommends maintainable patterns. Use when aiming to proactively improve codebase health.
Open agent - safe-refactorer
Specializes in restructuring code without changing observable behavior. Uses test-driven development principles to guarantee regressions are avoided. Use when migrating frameworks or cleaning up legacy components.
Open agent - technical-debt-reviewer
Audits codebases for technical debt, legacy patterns, and outdated dependencies. Proposes structured remediation roadmaps. Use when prioritizing engineering investments or modernizing systems.
Open agent

