~/skills/bigquery-sql
← Directory
v2.1.0Google PredefinedPrompt-Onlygcp-bigquery>=1.0.0

bigquery-sql

Provides BigQuery SQL query optimization techniques, execution best practices, cost controls, and performance tuning rules for high-efficiency querying.

$/registry:install "bigquery-sql"
Gemini CLI
Author
Google Cloud Platform
License
Apache-2.0
Target Project
google-cloud-public
Architecture
System Directive

Security Audit & Supply Chain Verification

Standard: CIS Benchmark & OpenSSF Scorecard
SAST Analysis0 Findings
Semgrep AST Verified
No command injection or prompt poisoning vectors
Secret ScanPassed (Clean)
Gitleaks Audited
0 credentials, tokens or keys detected
Vulnerability0 CVEs
Trivy Supply Chain
Dependencies vetted against CVE database
Linter & SemVerCompliant
v2.1.0 Specification
Corporate frontmatter & naming enforced
Artifact Checksum (SHA-256):a97bf05166566d1958be70f7e9c97c08c2926c2a6a5fce52ad20b108a6b74bfe
Bundle Size: 1137 B
Registry Resource:projects/google-cloud-public/locations/eu/skills/bigquery-sql
Lifecycle State:ACTIVE
Documentation (SKILL.md)Standard Spec v2.0

BigQuery SQL Optimization & Analysis Skill

Expert procedural guidance for optimizing BigQuery SQL queries, reducing slot contention, preventing accidental full-table scans, and enforcing partitioned/clustered querying.

Core Directives

  1. Partition Pruning: Always filter on partitioned columns in WHERE clauses.
  2. Cluster Ordering: Align filter and group-by predicates with table clustering keys.
  3. **Avoid SELECT ***: Explicitly project required columns to prevent unneeded column read charges.
  4. Window Function Efficiency: Use QUALIFY with ROW_NUMBER() instead of nested subqueries where applicable.