query-writer
OfficialCraft BigQuery SQL/Python ETL, perfectly formatted.
Software Engineering#SQL#BigQuery#Query Generation#Test Automation#Data Pipeline#Code Formatting#Python ETL
Authormozilla
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Writing and maintaining BigQuery SQL queries or Python ETL scripts that adhere to specific formatting, conventions, and testing requirements is a meticulous task. This skill automates the creation, updating, and validation of these queries, ensuring consistency and reducing manual effort.
Core Features & Use Cases
- Automated Query Generation: Writes new
query.sqlorquery.pyfiles following Mozilla's BigQuery ETL conventions, including proper formatting, partitioning, and UDF usage. - Mandatory Test Management: Automatically checks for and updates existing unit tests (coordinating with
sql-test-generator) whenever queries are modified, preventing regressions and ensuring data integrity. - Schema & Metadata Coordination: Integrates with
metadata-managerto updateschema.yamlandmetadata.yamlfiles when query outputs change, maintaining consistent data definitions. - Validation & Formatting: Ensures queries are correctly formatted and validated against BigQuery ETL standards, making them ready for deployment.
- Use Case: A developer needs to create a new BigQuery SQL query for a daily aggregation. They use this skill to generate the
query.sqlfile, which then automatically triggers the creation ofschema.yaml,metadata.yaml, and unit tests, all adhering to project standards.
Quick Start
Write a BigQuery SQL query to aggregate daily user activity from telemetry.events into my-project.my-dataset.daily_activity_v1.
Ensure it uses @submission_date for incremental processing.
Dependency Matrix
Required Modules
None requiredComponents
referencesassets
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: query-writer Download link: https://github.com/mozilla/bigquery-etl-skills/archive/main.zip#query-writer Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.