data-autocleaning

Profiles and cleans BigQuery and GCS data using Dataplex scans and SQL transformations.

Updated Aug 11, 2026
One-click install
npx skills add https://github.com/Yashyasik/zexca-api --skill data-autocleaning-yashyasik
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: data-autocleaning
Source: https://github.com/Yashyasik/zexca-api/tree/main/.gemini/skills/data-autocleaning
Command: npx skills add https://github.com/Yashyasik/zexca-api --skill data-autocleaning-yashyasik

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve? Data ingested from BigQuery or Google Cloud Storage often contains garbage values, inconsistent formats, and schema mismatches that silently corrupt downstream pipelines. This Skill automates profiling, cleansing, and verification so every data movement or ingestion task is backed by evidence-based transformations. ## Core Features & Use Cases - Dataplex-Based Profiling: Runs automated data profile scans on source tables to detect nulls, anomalies, and format variance before writing any transformation logic. - SQL Transformation Generation: Produces cleansing SQL for schema alignment, type conversion, JSON parsing, array handling, and STRUCT field mapping in BigQuery. - Quality Review Loop: Re-profiles transformed output on a temporary sample table and compares profiles column-by-column to catch regressions like unexpected NULL increases. - Use Case: When asked to copy a GCS file into a BigQuery table, the Skill profiles the source, generates cleaning SQL matched to the destination schema, and verifies the result with a post-transformation Dataplex scan. ## Quick Start Ask the assistant to clean and load a BigQuery table or GCS file into a destination table, and it will profile the source, generate cleansing SQL, and verify the results automatically.

Frequently Asked Questions about data-autocleaning

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

FAQPage Schema
How do I clean data when loading from GCS to BigQuery?▼

Create an external table over the GCS source first, then run a Dataplex data profile scan to detect anomalies. Generate cleansing SQL based on the profile, apply it during load, and re-profile a temporary output table to verify the transformations.

How to profile BigQuery tables with Dataplex?▼

Run the dataplex_scanner.py script with table IDs in project.dataset.table format, a specific region like us-central1, and an output directory. It handles concurrent scans, dynamic sampling for tables over 1M rows, and saves results as JSON.

Does Dataplex scanning work in multi-region locations like us?▼

No, Dataplex data profile scans require a specific Google Cloud region such as us-central1. Multi-region locations like us are not supported, so always pass a regional location to the scanner script.

How do I parse JSON columns in BigQuery safely?▼

Use SAFE.PARSE_JSON to cast JSON strings to the JSON type, and extract fields with JSON_VALUE or JSON_QUERY, which are safe by default. Avoid deprecated JSON_EXTRACT functions, and keep the original string if parsing returns NULL.

Why does my BigQuery array transformation fail with NULL elements?▼

BigQuery arrays cannot contain NULL values, so casts that produce NULLs will fail. Filter them out after SAFE_CAST using ARRAY_FILTER with a condition like e IS NOT NULL before aggregating elements back into an array.