gemini-cli-extensions/data-agent-kit-starter-pack

bigquery-sql

>- Provides BigQuery SQL query optimization techniques, execution best practices, and performance tuning rules for high-efficiency querying. Use when optimizing BigQuery SQL queries, reducing query costs, or designing performant SQL transformations.

First seen Aug 9, 2026

Installation

$ npx skills add gemini-cli-extensions/data-agent-kit-starter-pack --skill bigquery-sql

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from gemini-cli-extensions/data-agent-kit-starter-pack · top by installs.

npx skills add gemini-cli-extensions/data-agent-kit-starter-pack

Browse all from gemini-cli-extensions/data-agent-kit-starter-pack

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 179
License LICENSE
Default branch main
Open issues 3
Status Active

Skill metadata

Parsed from SKILL.md frontmatter.

Versionv1
Declared agents gemini
More metadata
version
v1

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,764 B
  • docs SUMMARY.md 266 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 4 installs

SKILL.md

BigQuery SQL Optimization

Performance and efficiency guidelines for BigQuery SQL queries. Includes rules for column pruning, predicate pushdown, join optimization, and materialization strategies.

SQL Optimization Rules

[!TIP] Always include a "Summary of Optimizations" section listing only
the optimizations applied.

Always Apply (Automatic)

  • Column Pruning: Remove unnecessary columns from all query stages.
  • Common Subexpression Reuse: Factor out identical expressions to avoid

redundant computation.

  • Predicate Pushdown: Apply WHERE filters as early as possible.
  • Early Aggregation: Perform GROUP BY before joins when possible.
  • Intermediate Materialization: Choose VIEW vs TABLE for intermediate

nodes based on efficiency.

Intermediate Node Strategy

  • VIEW: Small datasets or simple transformations.
  • TABLE: Large datasets, expensive computations, or nodes reused

multiple times.

Always Rewrite (Mandatory)

  • WHERE <col> IN (SELECT ...): Replace With `WHERE EXISTS (SELECT 1 FROM

...)`

  • **WHERE (SELECT COUNT(*) ...) > 0**: Replace With `WHERE EXISTS (SELECT 1

FROM ...)`

Propose with Confirmation (Conditional)

  • UNIONUNION ALL: Faster (skips deduplication), but permits

duplicate rows.

  • COUNT(DISTINCT)APPROXCOUNTDISTINCT: Faster and lower memory,

but approximate.