data_transform

Transform raw data into analytical datasets using dbt, pandas, polars, PySpark, and Airflow.

Updated Jan 14, 2026
One-click install
npx skills add https://github.com/jvsandhu/agentic-skills --skill data-transform-jvsandhu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: data_transform
Source: https://github.com/jvsandhu/agentic-skills/tree/main/skills/data_transform
Command: npx skills add https://github.com/jvsandhu/agentic-skills --skill data-transform-jvsandhu

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires dbt-core, polars, pandas, pyspark, apache-airflow, great-expectations, and includes scripts (resource) and references (resource) components.

What problem does it solve? Raw data rarely arrives in a form ready for analysis. This Skill guides the design and implementation of data transformation pipelines, helping you choose between ETL and ELT patterns, pick the right DataFrame library, and orchestrate multi-step workflows with testing and quality checks. ## Core Features & Use Cases - dbt Model Design: Build staging, intermediate, and marts layers with incremental materializations, unique keys, and built-in tests like unique, not_null, and relationships. - DataFrame Transformations: Implement the same logic in pandas, polars (lazy evaluation with scan_csv and collect), or PySpark, with guidance on migrating pandas code to polars for 10-100x speedups. - Pipeline Orchestration: Author Airflow DAGs with retries, task dependencies (linear, fan-out, fan-in), and alerting, with comparisons to Dagster and Prefect. - Use Case: You receive a large CSV of sales data and need a daily pipeline. Use this Skill to build a dbt incremental model that merges new orders, add data quality tests, and schedule it in Airflow with failure notifications. ## Quick Start Ask the agent to build an incremental dbt model and Airflow DAG that transforms your raw sales CSV into a tested revenue-by-region table.

Frequently Asked Questions about data_transform

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

FAQPage Schema
How do I build an incremental dbt model?

Configure the model with materialized='incremental' and a unique_key, then wrap a filter in an is_incremental() block that selects only rows newer than the max timestamp in the existing table. This processes only new or changed records on each run.

Should I use pandas, polars, or PySpark for data transformation?

Use pandas for data under 500MB and prototyping, polars for 500MB-100GB where performance matters (10-100x faster with lazy evaluation), and PySpark for datasets over 100GB requiring distributed cluster processing.

What is the difference between ETL and ELT?

ELT loads raw data into a cloud warehouse first and transforms it with SQL tools like dbt, suiting teams with SQL analysts and changing logic. ETL transforms before loading, which fits compliance requirements like pre-load PII redaction or targets lacking compute power.

How do I migrate pandas code to polars?

Replace read_csv with scan_csv for lazy evaluation, assign with with_columns, string column references with pl.col() expressions, and call collect() to execute the query. The APIs are similar, making migration straightforward for most transformations.

How do I add data quality tests to a dbt pipeline?

Define generic tests like unique, not_null, accepted_values, and relationships in your model's YAML file, or write singular tests as custom SQL queries in the tests directory. Great Expectations can add further validation such as value range checks.

When should I choose Airflow over Dagster or Prefect?

Choose Airflow for enterprise production with thousands of integrations and managed services like AWS MWAA. Pick Dagster for heavy dbt usage and asset-based lineage, or Prefect for dynamic workflows with runtime task generation.