write-script-bigquery

Generate parameterized BigQuery SQL queries with named parameters.

17.5k|1.1k|Updated May 5, 2022
One-click install
npx skills add https://github.com/windmill-labs/windmill --skill write-script-bigquery
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: write-script-bigquery
Source: https://github.com/windmill-labs/windmill/tree/main/system_prompts/auto-generated/skills/write-script-bigquery
Command: npx skills add https://github.com/windmill-labs/windmill --skill write-script-bigquery

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps generate parameterized BigQuery SQL queries, enabling safe, repeatable analytics templates and reducing hard-coded values.

Core Features & Use Cases

  • Parameterized SQL templates: Create BigQuery statements with named parameters (e.g., @year, @region) to avoid hard-coded values.
  • Cross-dataset reuse: Apply templates across datasets and projects for consistent analytics.
  • Use Case: Generate a parameterized query to fetch user spending by year and region for dashboards or reports.

Quick Start

Use this skill to generate a parameterized BigQuery SELECT that returns user_id and total_spent for a specific year and region.

Frequently Asked Questions about write-script-bigquery

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create parameterized BigQuery queries to avoid hard-coded values?

Parameterized BigQuery queries use named parameters like @year and @region as placeholders instead of hard-coded values. This skill generates SQL templates with these parameters, making queries reusable across datasets and automation workflows while preventing SQL injection and reducing maintenance overhead.

Can I use the same BigQuery query across multiple datasets and projects?

Yes, parameterized queries enable cross-dataset and cross-project reuse. By replacing dataset-specific and project-specific values with named parameters, you create a single query template that adapts to different contexts, eliminating the need to maintain separate queries for each dataset or project.

What's the best way to build dynamic BigQuery queries for dashboards and reports?

Dynamic BigQuery queries use parameterized templates with filters, aggregations, and joins that accept variable inputs at runtime. This skill generates ready-to-run query templates that support common analytics patterns, allowing dashboards and reports to execute the same query against different years, regions, or dimensions without modification.

How do parameterized SQL queries improve query automation and safety?

Parameterized SQL queries separate query logic from runtime values, enabling safe automation through named parameters. This approach prevents SQL injection vulnerabilities, reduces hard-coded values in your codebase, and allows query templates to be version-controlled and reused reliably across multiple executions and environments.

Can I generate BigQuery templates that support filtering and aggregations with parameters?

Yes, this skill generates parameterized BigQuery templates supporting common patterns including filters, aggregations, and joins with named parameters. You define which columns and conditions become parameterized, producing templates ready for automation that handle user spending, segmentation, and reporting use cases.