Preprocessing Data With Automated Pipelines

by jeremylongshore

data

|

Skill Details

Repository Files

9 files in this skill directory


name: preprocessing-data-with-automated-pipelines description: | Process automate data cleaning, transformation, and validation for ML tasks. Use when requesting "preprocess data", "clean data", "ETL pipeline", or "data transformation". Trigger with relevant phrases based on skill purpose. allowed-tools: Read, Write, Edit, Grep, Glob, Bash(cmd:*) version: 1.0.0 author: Jeremy Longshore jeremy@intentsolutions.io license: MIT

Data Preprocessing Pipeline

This skill provides automated assistance for data preprocessing pipeline tasks.

Overview

This skill enables Claude to construct and execute automated data preprocessing pipelines, ensuring data quality and readiness for machine learning. It streamlines the data preparation process by automating common tasks such as data cleaning, transformation, and validation.

How It Works

  1. Analyze Requirements: Claude analyzes the user's request to understand the specific data preprocessing needs, including data sources, target format, and desired transformations.
  2. Generate Pipeline Code: Based on the requirements, Claude generates Python code for an automated data preprocessing pipeline using relevant libraries and best practices. This includes data validation and error handling.
  3. Execute Pipeline: The generated code is executed, performing the data preprocessing steps.
  4. Provide Metrics and Insights: Claude provides performance metrics and insights about the pipeline's execution, including data quality reports and potential issues encountered.

When to Use This Skill

This skill activates when you need to:

  • Prepare raw data for machine learning models.
  • Automate data cleaning and transformation processes.
  • Implement a robust ETL (Extract, Transform, Load) pipeline.

Examples

Example 1: Cleaning Customer Data

User request: "Preprocess the customer data from the CSV file to remove duplicates and handle missing values."

The skill will:

  1. Generate a Python script to read the CSV file, remove duplicate entries, and impute missing values using appropriate techniques (e.g., mean imputation).
  2. Execute the script and provide a summary of the changes made, including the number of duplicates removed and the number of missing values imputed.

Example 2: Transforming Sensor Data

User request: "Create an ETL pipeline to transform the sensor data from the database into a format suitable for time series analysis."

The skill will:

  1. Generate a Python script to extract sensor data from the database, transform it into a time series format (e.g., resampling to a fixed frequency), and load it into a suitable storage location.
  2. Execute the script and provide performance metrics, such as the time taken for each step of the pipeline and the size of the transformed data.

Best Practices

  • Data Validation: Always include data validation steps to ensure data quality and catch potential errors early in the pipeline.
  • Error Handling: Implement robust error handling to gracefully handle unexpected issues during pipeline execution.
  • Performance Optimization: Optimize the pipeline for performance by using efficient algorithms and data structures.

Integration

This skill can be integrated with other Claude Code skills for data analysis, model training, and deployment. It provides a standardized way to prepare data for these tasks, ensuring consistency and reliability.

Prerequisites

  • Appropriate file access permissions
  • Required dependencies installed

Instructions

  1. Invoke this skill when the trigger conditions are met
  2. Provide necessary context and parameters
  3. Review the generated output
  4. Apply modifications as needed

Output

The skill produces structured output relevant to the task.

Error Handling

  • Invalid input: Prompts for correction
  • Missing dependencies: Lists required components
  • Permission errors: Suggests remediation steps

Resources

  • Project documentation
  • Related skills and commands

Related Skills

Xlsx

Comprehensive spreadsheet creation, editing, and analysis with support for formulas, formatting, data analysis, and visualization. When Claude needs to work with spreadsheets (.xlsx, .xlsm, .csv, .tsv, etc) for: (1) Creating new spreadsheets with formulas and formatting, (2) Reading or analyzing data, (3) Modify existing spreadsheets while preserving formulas, (4) Data analysis and visualization in spreadsheets, or (5) Recalculating formulas

data

Clickhouse Io

ClickHouse database patterns, query optimization, analytics, and data engineering best practices for high-performance analytical workloads.

datacli

Clickhouse Io

ClickHouse database patterns, query optimization, analytics, and data engineering best practices for high-performance analytical workloads.

datacli

Analyzing Financial Statements

This skill calculates key financial ratios and metrics from financial statement data for investment analysis

data

Data Storytelling

Transform data into compelling narratives using visualization, context, and persuasive structure. Use when presenting analytics to stakeholders, creating data reports, or building executive presentations.

data

Kpi Dashboard Design

Design effective KPI dashboards with metrics selection, visualization best practices, and real-time monitoring patterns. Use when building business dashboards, selecting metrics, or designing data visualization layouts.

designdata

Dbt Transformation Patterns

Master dbt (data build tool) for analytics engineering with model organization, testing, documentation, and incremental strategies. Use when building data transformations, creating data models, or implementing analytics engineering best practices.

testingdocumenttool

Sql Optimization Patterns

Master SQL query optimization, indexing strategies, and EXPLAIN analysis to dramatically improve database performance and eliminate slow queries. Use when debugging slow queries, designing database schemas, or optimizing application performance.

designdata

Anndata

This skill should be used when working with annotated data matrices in Python, particularly for single-cell genomics analysis, managing experimental measurements with metadata, or handling large-scale biological datasets. Use when tasks involve AnnData objects, h5ad files, single-cell RNA-seq data, or integration with scanpy/scverse tools.

arttooldata

Xlsx

Spreadsheet toolkit (.xlsx/.csv). Create/edit with formulas/formatting, analyze data, visualization, recalculate formulas, for spreadsheet processing and analysis.

tooldata

Skill Information

Category:Data
License:MIT
Version:1.0.0
Allowed Tools:Read, Write, Edit, Grep, Glob, Bash(cmd:*)
Last Updated:1/5/2026