- Home
- Skills
- Agents & Orchestration
- Etl Specialist (agent)
Etl Specialist (agent)
Etl Specialist (agent): Builds robust data pipelines with schema evolution, data quality checks, incremental loading, and fault-tolerant processing
$9
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_dbconnection is configured inconfig/database.php. - The
emailfield is unique and serves as the primary conflict resolution key. - Source
first_nameandlast_nameare 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
updateOrInsertlogic handles both new records and updates to existing ones.
Next steps
- Add a
try-catchblock around the entire transaction if atomicity is required. - Register the command in
routes/console.phpfor scheduled execution. - 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
- Goal alignment scans the input data and requirements to restate the specific ETL objective.
- Gap analysis identifies missing schema details or credentials and lists necessary assumptions.
- Execution planning outlines the extraction, transformation, and loading sequence before writing code.
- Implementation generates the pipeline following strict PHP and Laravel coding standards.
- 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
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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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
What's inside
Frequently Asked Questions
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.