Data Migration Planner
Plan, execute, and validate data migrations between systems. Covers schema mapping, ETL pipeline design, rollback strategies, and post-migration validation.
What It Does
Given source and target system details, this skill:
- Maps source → target schemas with field-level transformation rules
- Generates an ETL pipeline plan with staging, transform, and load phases
- Creates validation queries (row counts, checksum, referential integrity)
- Builds a rollback plan with point-of-no-return criteria
- Produces a migration runbook with go/no-go gates
Usage
Tell your agent:
- "Plan a migration from Salesforce to HubSpot CRM"
- "Create a data migration runbook for moving from MySQL to PostgreSQL"
- "Map our legacy ERP data to the new system schema"
Migration Framework
Phase 1: Discovery
- Inventory all source tables/objects and record counts
- Document data types, constraints, and relationships
- Identify data quality issues (nulls, duplicates, orphans)
- Map business rules that affect data interpretation
Phase 2: Schema Mapping
For each source entity, document:
| Source Field |
Type |
Target Field |
Type |
Transform |
Notes |
| (field) |
(type) |
(field) |
(type) |
(rule) |
(edge cases) |
Phase 3: ETL Pipeline
Extract → Stage (raw) → Clean → Transform → Validate → Load → Verify
- Extract: Full vs incremental, API vs direct DB, rate limits
- Stage: Raw landing zone, no transforms, audit trail
- Clean: Dedup, null handling, encoding fixes
- Transform: Type conversions, lookups, calculated fields
- Validate: Pre-load checks (counts, checksums, business rules)
- Load: Batch size, parallelism, error handling
- Verify: Post-load reconciliation
Phase 4: Validation
- Row count match (source vs target, per table)
- Checksum validation on key columns
- Referential integrity checks
- Business rule validation (e.g., all active accounts migrated)
- User acceptance sampling (random 5% manual review)
Phase 5: Cutover
- Go/no-go criteria checklist
- Point-of-no-return definition
- Rollback procedure and time estimate
- Communication plan (users, stakeholders)
- Parallel run period (if applicable)
Risk Factors
- Data volume: >10M rows = batch strategy required
- Downtime window: Zero-downtime needs CDC/dual-write
- Data quality: Garbage in = garbage out. Clean BEFORE migrating
- Dependencies: Other systems reading from source during migration
- Compliance: GDPR/HIPAA data handling during transit
Output Format
Deliver a migration runbook as structured markdown with:
- Executive summary (what, why, when, risk level)
- Schema mapping tables
- ETL pipeline specification
- Validation test suite
- Cutover runbook with rollback
- Timeline with milestones
Cost Estimation
Typical migration costs by complexity:
- Simple (1-5 tables, <1M rows): $5K-$15K or 1-2 weeks internal
- Medium (10-50 tables, 1-10M rows): $25K-$75K or 1-2 months
- Complex (50+ tables, 10M+ rows, multiple systems): $100K-$500K or 3-6 months
Built by AfrexAI — AI Context Packs for business automation.
Calculate your AI automation ROI: Revenue Calculator
1---
2name: data-migration-planner
3description: Plan, execute, and validate data migrations between systems. Covers
4 schema mapping, ETL pipeline design, rollback strategies, and post-migration
5 validation.
6metadata:
7 source: https://skillmd.com/skills/modbender/data-migration-planner
8---
9
10# Data Migration Planner
11
12Plan, execute, and validate data migrations between systems. Covers schema mapping, ETL pipeline design, rollback strategies, and post-migration validation.
13
14## What It Does
15
16Given source and target system details, this skill:
171. Maps source → target schemas with field-level transformation rules
182. Generates an ETL pipeline plan with staging, transform, and load phases
193. Creates validation queries (row counts, checksum, referential integrity)
204. Builds a rollback plan with point-of-no-return criteria
215. Produces a migration runbook with go/no-go gates
22
23## Usage
24
25Tell your agent:
26- "Plan a migration from Salesforce to HubSpot CRM"
27- "Create a data migration runbook for moving from MySQL to PostgreSQL"
28- "Map our legacy ERP data to the new system schema"
29
30## Migration Framework
31
32### Phase 1: Discovery
33- Inventory all source tables/objects and record counts
34- Document data types, constraints, and relationships
35- Identify data quality issues (nulls, duplicates, orphans)
36- Map business rules that affect data interpretation
37
38### Phase 2: Schema Mapping
39For each source entity, document:
40| Source Field | Type | Target Field | Type | Transform | Notes |
41|---|---|---|---|---|---|
42| (field) | (type) | (field) | (type) | (rule) | (edge cases) |
43
44### Phase 3: ETL Pipeline
45```
46Extract → Stage (raw) → Clean → Transform → Validate → Load → Verify
47```
48- **Extract**: Full vs incremental, API vs direct DB, rate limits
49- **Stage**: Raw landing zone, no transforms, audit trail
50- **Clean**: Dedup, null handling, encoding fixes
51- **Transform**: Type conversions, lookups, calculated fields
52- **Validate**: Pre-load checks (counts, checksums, business rules)
53- **Load**: Batch size, parallelism, error handling
54- **Verify**: Post-load reconciliation
55
56### Phase 4: Validation
57- Row count match (source vs target, per table)
58- Checksum validation on key columns
59- Referential integrity checks
60- Business rule validation (e.g., all active accounts migrated)
61- User acceptance sampling (random 5% manual review)
62
63### Phase 5: Cutover
64- Go/no-go criteria checklist
65- Point-of-no-return definition
66- Rollback procedure and time estimate
67- Communication plan (users, stakeholders)
68- Parallel run period (if applicable)
69
70## Risk Factors
71- **Data volume**: >10M rows = batch strategy required
72- **Downtime window**: Zero-downtime needs CDC/dual-write
73- **Data quality**: Garbage in = garbage out. Clean BEFORE migrating
74- **Dependencies**: Other systems reading from source during migration
75- **Compliance**: GDPR/HIPAA data handling during transit
76
77## Output Format
78Deliver a migration runbook as structured markdown with:
791. Executive summary (what, why, when, risk level)
802. Schema mapping tables
813. ETL pipeline specification
824. Validation test suite
835. Cutover runbook with rollback
846. Timeline with milestones
85
86## Cost Estimation
87Typical migration costs by complexity:
88- Simple (1-5 tables, <1M rows): $5K-$15K or 1-2 weeks internal
89- Medium (10-50 tables, 1-10M rows): $25K-$75K or 1-2 months
90- Complex (50+ tables, 10M+ rows, multiple systems): $100K-$500K or 3-6 months
91
92---
93
94**Built by [AfrexAI](https://afrexai-cto.github.io/context-packs/)** — AI Context Packs for business automation.
95
96Calculate your AI automation ROI: [Revenue Calculator](https://afrexai-cto.github.io/ai-revenue-calculator/)