etl pipeline skill

    by Lin INK

    1

    A composable Python ETL skeleton for reading, transforming, and writing structured CSV and JSON data.

    Free

    7 usesSecurity scanned

    Works with the AI Agents you already use

    etl pipeline skill

    Example session with this skill installed

    Set up a Python ETL pipeline that reads 'users.csv', adds a 'status' field set to 'active', and saves the result to 'processed_users.json'.

    • Read your context and instructions
    • Compiled the etl pipeline
    • Generated the data export

    I have structured the ETL pipeline using the requested directory layout. The implementation separates the file reading, the transformation logic, and the JSON output sink.

    ETL Pipeline Implementation

    
    # scripts/pipeline/transform.py
    def add_status_field(records):
        """Appends status field to each record."""
        for record in records:
            record['status'] = 'active'
        return records
    
    # scripts/pipeline/sinks.py
    import json
    
    def write_json(records, filepath):
        """Writes list of dicts to a JSON file."""
        with open(filepath, 'w', encoding='utf-8') as f:
            json.dump(records, f, indent=4)
    
    # main.py
    import sys
    import os
    from pipeline.io_ops import read_csv
    from pipeline.transform import add_status_field
    from pipeline.sinks import write_json
    
    def main():
        # 1. Extract
        input_file = "users.csv"
        if not os.path.exists(input_file):
            print(f"Error: {input_file} not found.")
            return
        
        raw_data = read_csv(input_file)
        
        # 2. Transform
        processed_data = add_status_field(raw_data)
        
        # 3. Load
        write_json(processed_data, "processed_users.json")
        print("Pipeline executed successfully: processed_users.json created.")
    
    if __name__ == "__main__":
        main()
    

    Next steps

    1. Place your users.csv in the root directory.
    2. Run python main.py to generate the JSON output.
    3. Add more functions to transform.py to handle additional data cleaning needs.

    users.csv

    CSV · data export

    Generated

    Example file from a real run - the skill writes it into your workspace.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    The problem

    Writing boilerplate for CSV ingestion and data transformation is repetitive and prone to error. Manually handling list-of-dict conversions, file I/O, and pipeline composition slows down simple batch processing tasks.

    What it does

    • Reads CSV files into a standard list-of-dictionaries format.
    • Provides a modular transform stage for record-level processing.
    • Supports multiple output sinks including compact CSV and JSON.
    • Maintains a clean separation between I/O operations and business logic.

    Frameworks & tools

    Python 3.x, standard library CSV, and JSON modules.

    Why this beats prompting it yourself

    Instead of generating one-off scripts that vary in structure, this skill provides a consistent, composable architectural pattern. It ensures your data pipelines follow a predictable read-transform-write flow that is easy to extend without rewriting the I/O layer.

    Use cases

    • Normalizing raw CSV exports for database ingestion.
    • Creating reproducible data preprocessing steps for AI agent workflows.
    • Building lightweight ETL prototypes without the overhead of heavy frameworks.

    Known limitations

    Designed for small to medium batch processing. Does not include native support for Parquet or streaming large datasets that exceed memory.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    7 uses

    Times used to date

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 2 months ago

    • Free with an Agensi account

    Permissions

    Write Files
    Listed2 months ago

    What's inside

    Frequently Asked Questions

    This skill provides a structured, reusable Python framework that handles the repetitive boilerplate of CSV/JSON ingestion and export, allowing you to focus purely on your custom data transformation logic.

    It is designed for any Python-based environment or AI agent capable of executing Python 3 scripts, utilizing standard libraries to ensure broad compatibility without heavy external dependencies.

    You will receive the complete, modular Python source code for the skeleton, including the I/O handlers and the transformation interface, along with documentation on how to integrate it into your workflow.

    The skill is optimized for small to medium datasets that fit within system memory; it is not intended for multi-gigabyte streaming or specialized formats like Parquet without additional modification.

    Yes, the architecture is highly composable, meaning you can easily chain multiple transformation functions or swap out the reader/writer modules to suit different stages of your data pipeline.

    New in Data & Databases

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Data & Databases.

    Free