Etl Specialist (agent)

    by Laravel Company

    1

    Etl Specialist (agent): Builds robust data pipelines with schema evolution, data quality checks, incremental loading, and fault-tolerant processing

    $9

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    Etl Specialist (agent)

    Example session with this skill installed

    I need to sync user data from a legacy MySQL table to a new users table. Source has raw 'first_name' and 'last_name', destination needs a 'full_name' and a 'metadata' JSON field for the old ID.

    • Read your context and instructions
    • Compiled the etl specialist agent

    I have analyzed the requirements for migrating legacy MySQL user data to the new schema. I will implement an incremental migration script that handles string concatenation for the full name and preserves legacy IDs in the JSON metadata field.

    ETL Pipeline Implementation

    namespace App\Console\Commands;
    
    use Illuminate\Console\Command;
    use Illuminate\Support\Facades\DB;
    use Illuminate\Support\Facades\Log;
    
    class SyncLegacyUsers extends Command
    {
        protected $signature = 'sync:legacy-users';
        protected $description = 'Incremental sync of legacy user data with schema transformation';
    
        public function handle()
        {
            $lastSyncedId = DB::table('users')->max('metadata->legacy_id') ?? 0;
    
            DB::table('legacy_db.users')
                ->where('id', '>', $lastSyncedId)
                ->orderBy('id', 'asc')
                ->chunkById(100, function ($users) {
                    foreach ($users as $user) {
                        try {
                            DB::table('users')->updateOrInsert(
                                ['email' => $user->email],
                                [
                                    'name' => trim($user->first_name . ' ' . $user->last_name),
                                    'metadata' => json_encode(['legacy_id' => $user->id]),
                                    'created_at' => now(),
                                    'updated_at' => now(),
                                ]
                            );
                        } catch (\Exception $e) {
                            Log::error("Failed to sync legacy user ID {$user->id}: " . $e->getMessage());
                        }
                    }
                });
    
            return Command::SUCCESS;
        }
    }
    

    Summary

    Created a Laravel Artisan command for chunked, incremental user data migration with basic error logging.

    Assumptions

    • The legacy_db connection is configured in config/database.php.
    • The email field is unique and serves as the primary conflict resolution key.
    • Source first_name and last_name are non-null or handleable as empty strings.

    Risks and open questions

    • Performance: Large datasets may require adjusting the chunk size or timeout settings.
    • Data Integrity: Should duplicate emails in the legacy DB be merged or skipped?

    Verification

    • Checked against Laravel coding standards for DB facades.
    • Verified updateOrInsert logic handles both new records and updates to existing ones.

    Next steps

    1. Add a try-catch block around the entire transaction if atomicity is required.
    2. Register the command in routes/console.php for scheduled execution.
    3. Test with a sample of 1,000 records to verify performance.

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

    About this skill

    Building data pipelines often leads to fragile code that fails on schema changes or silent data corruption. This skill implements a specialized ETL workflow designed to handle complex data migrations and syncs with rigorous quality controls.

    What it does

    • Schema evolution management handles changes in source data structures without breaking downstream consumers.
    • Data quality enforcement integrates validation checks and sanitization rules directly into the pipeline logic.
    • Fault-tolerant processing builds retry mechanisms and error logging to manage partial failures.
    • Incremental loading implements state tracking to process only new or modified records efficiently.

    How it works

    1. Goal alignment scans the input data and requirements to restate the specific ETL objective.
    2. Gap analysis identifies missing schema details or credentials and lists necessary assumptions.
    3. Execution planning outlines the extraction, transformation, and loading sequence before writing code.
    4. Implementation generates the pipeline following strict PHP and Laravel coding standards.
    5. Validation audits the output against security guidelines and data integrity constraints.

    Frameworks & tools

    This skill is optimized for Laravel and PHP environments. It follows modern Laravel conventions for database migrations, Eloquent models, and API integrations.

    Why this beats prompting it yourself

    Generic prompts often ignore the "unhappy path" of data processing. This skill enforces a standardized output contract that includes risk assessments and explicit assumptions, ensuring you never deploy a pipeline that lacks error handling or data validation.

    Use cases

    • Migrating legacy database records into a fresh Laravel schema with data cleaning.
    • Synchronizing third-party API data into local storage with incremental updates.
    • Building complex data transformation layers for reporting and analytics.
    • Automating periodic CSV or JSON imports with strict validation rules.

    Known limitations

    This skill focuses on PHP/Laravel implementations. It does not provide infrastructure-level orchestration like Kubernetes CronJobs or cloud-specific ETL services.

    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

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 7 days ago

    Permissions

    Read Files
    Write Files
    Listed7 days ago

    What's inside

    Frequently Asked Questions

    This skill generates production-ready PHP/Laravel code for complex data migrations and syncs, specifically addressing common issues like schema breakage, silent data corruption, and lack of retry logic.

    The skill is designed for any AI agent that supports code generation tasks and is optimized for workflows requiring strict Laravel architectural standards, such as services, jobs, and migrations.

    No, this skill is focused on the application layer; while it writes the logic for fault-tolerant pipelines, you will still need to manage your own server-side scheduling via Laravel's Task Scheduler or similar tools.

    You receive the specialized agent workflow and access to all future updates, ensuring your generated pipelines stay compatible with the latest Laravel framework releases and security practices.

    The agent follows a 'validation-first' approach, generating code that includes explicit data sanitization, schema evolution checks, and comprehensive error logging for every step of the pipeline.

    New in Agents & Orchestration

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