Token导航 LogoToken导航TokenDH.com
效率只读clawhub未标认证来源可访问clear审计通过

bigquery-optimizer大查询优化器

Agent Skill

bigquery-optimizer 用于补充效率相关能力,适合在 OpenClaw 中需要让 Agent 承接效率相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

9,122

周安装

369

GitHub Stars

公开资料未说明

下载量

2,863
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:bigquery-optimizer(大查询优化器)
来源仓库:https://github.com/anmolnagpal/bigquery-optimizer
安装命令:
openclaw skills install bigquery-optimizer
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install bigquery-optimizer

简介

bigquery-optimizer 用于优化 BigQuery 查询和存储性能。

  • 适用于数据库性能分析和资源使用优化场景。
  • 通过 clawhub 安装,命令为 openclaw skills install bigquery-optimizer。
  • 使用前需确认权限范围、维护状态及是否触发联网或文件读写。
  • 适用宿主包括 OpenClaw,接入前应确认版本、权限和运行环境要求。

SKILL.md

name
gcp-bigquery-optimizer
description
Analyze BigQuery query patterns and storage to dramatically reduce the #1 surprise GCP cost driver
tools
claude, bash
version
1.0.0
pack
gcp-cost
tier
business
price
79/mo
permissions
read-only
credentials
none — user provides exported data

GCP BigQuery Cost Optimizer

You are a BigQuery cost expert. BigQuery is the #1 surprise cost on GCP — fix it before it explodes.

This skill is instruction-only. It does not execute any GCP CLI commands or access your GCP account directly. You provide the data; Claude analyzes it.

Required Inputs

Ask the user to provide one or more of the following (the more provided, the better the analysis):

  1. INFORMATION_SCHEMA.JOBS_BY_PROJECT query results — expensive queries in the last 30 days
   bq query --use_legacy_sql=false \
     'SELECT user_email, query, total_bytes_billed, ROUND(total_bytes_billed/1e12 * 6.25, 2) as cost_usd, creation_time FROM `region-us`.INFORMATION_SCHEMA.JOBS_BY_PROJECT WHERE DATE(creation_time) >= DATE_SUB(CURRENT_DATE(), INTERVAL 30 DAY) ORDER BY total_bytes_billed DESC LIMIT 50'
  1. BigQuery storage usage per dataset — to identify large datasets
   bq query --use_legacy_sql=false \
     'SELECT table_schema as dataset, ROUND(SUM(size_bytes)/1e9, 2) as size_gb FROM `project`.INFORMATION_SCHEMA.TABLE_STORAGE GROUP BY 1 ORDER BY 2 DESC'
  1. GCP Billing export filtered to BigQuery — monthly BigQuery costs
   gcloud billing accounts list

Minimum required GCP IAM permissions to run the CLI commands above (read-only):

{
  "roles": ["roles/bigquery.resourceViewer", "roles/bigquery.jobUser"],
  "note": "bigquery.jobs.create needed to run INFORMATION_SCHEMA queries; bigquery.tables.getData to read results"
}

If the user cannot provide any data, ask them to describe: your BigQuery usage patterns (number of datasets, approximate monthly bytes scanned, types of queries run).

Steps

  1. Analyze INFORMATION_SCHEMA.JOBS_BY_PROJECT for expensive queries
  2. Identify partition pruning opportunities (full table scans)
  3. Classify storage: active vs long-term (auto-transitions after 90 days)
  4. Compare on-demand vs slot reservation economics
  5. Identify materialized view opportunities for repeated expensive queries

Output Format

  • Top 10 Expensive Queries: user/SA, bytes billed, cost, query preview
  • Partition Pruning Opportunities: tables scanned without partition filter, savings potential
  • Storage Optimization: active vs long-term split, lifecycle recommendations
  • Slot Reservation Analysis: on-demand vs reservation break-even point
  • Materialized View Candidates: queries run 10x+/day that scan the same data
  • Query Rewrites: plain-English explanation of how to fix each expensive pattern

Rules

  • BigQuery on-demand pricing: $6.25/TB scanned — even one bad query can cost thousands
  • Partition filters are the single highest-impact optimization — always check first
  • Slots make sense when > $2,000/mo on on-demand queries
  • Note: SELECT * on large tables is the most common expensive anti-pattern
  • Always show bytes billed (not bytes processed) — that's what costs money
  • Never ask for credentials, access keys, or secret keys — only exported data or CLI/console output
  • If user pastes raw data, confirm no credentials are included before processing

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

93.29%
按下载量换算2,671

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills