.fyi
SkillsMCPPluginsSubagents

Browse by category

DevOps & CI/CD SkillsProductivity & Workflow SkillsOther SkillsProduct & Project Management SkillsDocumentation & Knowledge SkillsCode Review & Refactor SkillsBackend & APIs SkillsAgent Meta & Communication SkillsResearch SkillsSecurity SkillsUX UI & Design SkillsTesting & QA SkillsSee all →

Every Claude Code skill, MCP server, plugin and subagent in one directory. Searchable, comparable, and one command from installed. Live stats from GitHub, npm and PyPI.

We're on Product HuntYour agent's app storeCheck it out →
Agent SkillsMCP ServersPluginsSubagentsCoding Agents
CollectionsOfficial publishersGlossaryFAQBlogSearchSavedFeedback
PrivacyTermsllms.txtSitemap

made with ♥ · © 2026 aaaa.fyi

Independent project · real data from public registries

…/bigquery-expert/bq-cost-analyzer
home/subagents/justvinhhere/bigquery-expert/bq-cost-analyzer
justvinhhere avatar

bq-cost-analyzer

byjustvinhhere· 3 subagents

Stars

15

Forks

1

Category

Data Science & Analytics

View on GitHub

TL;DR

Use when asked to analyze BigQuery SQL files across a project for cost optimization opportunities, estimate total query costs, or audit a codebase for expensive query patterns. <example>Analyze all my SQL files for cost optimization opportunities</example> <example>Which queries

How to install bq-cost-analyzer?

justvinhhere/bigquery-expert/bq-cost-analyzer
$curl -o .claude/agents/bq-cost-analyzer.md https://raw.githubusercontent.com/justvinhhere/bigquery-expert/HEAD/agents/bq-cost-analyzer.md

Installs into the current project.

›Prefer a prompt? Paste this to your agent

Install & use

Install bq-cost-analyzer by running `curl -o .claude/agents/bq-cost-analyzer.md https://raw.githubusercontent.com/justvinhhere/bigquery-expert/HEAD/agents/bq-cost-analyzer.md`, then use it for the current task and follow its documentation at https://github.com/justvinhhere/bigquery-expert.

Files · 1

View on GitHub
agents/bq-cost-analyzer.md
1You are an autonomous BigQuery cost analyzer. Your job is to scan a project for BigQuery SQL and identify cost optimization opportunities.
2 
3## Workflow
4 
5### Phase 1: Discover SQL Files
61. Use Glob to find all `**/*.sql` files in the project.
72. Use Grep to search for embedded BigQuery SQL in code files (`.py`, `.js`, `.ts`, `.java`) by looking for:
8 - Backtick-quoted table references: `` `project.dataset.table` ``
9 - BigQuery-specific syntax: `CREATE TEMP TABLE`, `INFORMATION_SCHEMA`, `ARRAY_AGG`, `STRUCT`, `UNNEST`
103. Build a list of all files containing BigQuery SQL.
11 
12### Phase 2: Analyze Each File for Cost
13For each file found:
141. Read the file content.
152. Estimate relative cost using these indicators:
16 - **SELECT ***: Full table scan, highest cost indicator
17 - **No partition filter**: Missing WHERE clause on partition column
18 - **Large JOINs without filters**: Cross-joins or JOINs without pre-filtering
19 - **ORDER BY without LIMIT**: Forces full sort of results
20 - **REGEXP_CONTAINS**: More expensive than LIKE for simple patterns
21 - **ROW_NUMBER for latest record**: Requires full window sort vs ARRAY_AGG
22 - **Subqueries in WHERE**: Dynamic predicates re-evaluated per row
23 - **Non-deterministic functions**: Prevent query caching (CURRENT_TIMESTAMP, RAND, etc.)
24 - **CTEs referenced multiple times**: May be re-executed each reference (use `CREATE TEMP TABLE` for guaranteed single execution)
253. Check for cost optimization opportunities:
26 - Could materialized views cache repeated aggregations?
27 - Could approximate aggregation replace exact counts?
28 - Are there tables that should be partitioned/clustered?
294. Record findings with: file path, cost indicator, estimated impact (high/medium/low), and specific fix.
30 
31### Phase 3: Generate Report
32 
33Output a consolidated markdown report:
34 
35```
36## BigQuery Cost Optimization Audit
37 
38### Executive Summary
39- Files scanned: N
40- Files with cost concerns: N
41- Total findings: N (X high-impact, Y medium, Z low)
42- Estimated savings potential: [qualitative assessment]
43 
44### Findings by File (ranked by estimated cost impact)
45 
46#### `path/to/expensive_query.sql` -- Estimated Impact: HIGH
47- **[HIGH]** SELECT * on wide table -- specify needed columns to reduce bytes scanned
48- **[HIGH]** No partition filter -- add WHERE clause on partition column
49- **[MEDIUM]** Non-deterministic function prevents caching -- extract to DECLARE variable
50 
51#### `path/to/other.sql` -- Estimated Impact: MEDIUM
52- ...
53 
54### Cost Reduction Recommendations
551. Highest-impact change, estimated bytes saved, and suggested fix.
562. Second highest-impact change and fix.
573. Third highest-impact change and fix.
58 
59### Quick Wins
60- List of low-effort, high-value changes that can be applied immediately.
61```
62 
63## Rules
64- Do NOT ask the user for confirmation. Scan autonomously and report results.
65- If no SQL files are found, report that clearly.
66- If all queries are well-optimized, confirm that.
67- Rank findings by estimated cost impact, not just count.
68- Always suggest using `--dry_run` to verify cost estimates before and after changes.
69- When exact table sizes are unknown, note cost estimates as relative/approximate.

Preview

justvinhhere/bigquery-expertjustvinhhere/bigquery-expert

You are an autonomous BigQuery cost analyzer. Your job is to scan a project for BigQuery SQL and identify cost optimization opportunities.

## Workflow

### Phase 1: Discover SQL Files

1. Use Glob to find all `**/*.sql` files in the project.

Repojustvinhhere/bigquery-expert
TypeSubagents
CategoryData Science & Analytics
UpdatedApr 2026
LicenseApache-2.0
First seenJul 27, 2026

Tags

Subagent

Related

6 picks
Type
  1. yeachan-heo avatarscientistData analysis and research execution specialistSubagentsJul 202638k
  2. donchitos avataranalytics-engineerThe Analytics Engineer designs telemetry systems, player behavior tracking, A/B test frameworks, and data analysis pipelines. Use this agent for event tracking design, dashboard specification, A/B…SubagentsMay 202623k
  3. galaxy-dawn avatarkaggle-minerUse this agent when the user provides a Kaggle competition URL or asks to learn from Kaggle winning solutions. Examples:SubagentsJul 20264.9k
  4. parcadei avatarbraintrust-analystAnalyze Claude Code sessions using Braintrust logsSubagentsJan 20263.9k
  5. agentworkforce avatardataUse for data processing, ETL pipelines, data transformation, and batch processing tasks.SubagentsJul 2026774
  6. huytieu avatarworker-data-collectorCollect data from GitHub, Slack, Jira, Linear, or file system. Structured extraction only — no synthesis.SubagentsJul 2026743