Cloud Migration Solution Generator
When to Use
Scenarios where this Skill SHOULD be used:
- User explicitly mentions "cloud migration", "migration plan", "migrate from XX cloud to Alibaba Cloud", etc.
- User provides a list of source cloud products / resource inventory / architecture diagram and needs a complete migration plan document
- User requests deliverable-grade documentation (MD + Word) including product mapping, migration steps, risk assessment, and reverse sync
- User involves cross-cloud migration (AWS / Azure / Huawei Cloud / Tencent Cloud → Alibaba Cloud)
- User involves Alibaba Cloud cross-account / cross-site migration (e.g., Hologres, MaxCompute, DataWorks internal migration)
Scenarios where this Skill SHOULD NOT be used (use product-mapping or other approaches):
- User only needs a specification comparison table or cost estimate, not a full migration plan → Use
product-mapping Skill
- User only needs pricing for a single Alibaba Cloud product → Use
product-mapping Skill
- User asks about Alibaba Cloud product features / configuration / best practices without migration context → Answer directly or search documentation
- User already has a complete plan and only needs format conversion (e.g., MD → Word) → Call
md_to_docx.py directly
- User discusses application architecture refactoring rather than cloud resource migration → General technical discussion
- User needs an O&M operations manual rather than a one-time migration plan → Not applicable
1. Workflow
Collect Info → Review Mapping Table → Search Official Docs Online → Generate Markdown Plan → Convert to Word → Deliver to User
Step 1: Collect Information
Confirm the following required information with the user:
- Source cloud provider: AWS / Azure / Huawei Cloud / Tencent Cloud
- Cloud product list: Product names and specifications currently in use
- Business scenario (optional): Helps recommend more accurate Alibaba Cloud products
If the user does not specify the source cloud provider, ask proactively. If only product names are provided without specifications, handle as a general scenario.
Step 2: Review Product Mapping Table
Based on the source cloud provider, read the corresponding mapping file to get product mapping relationships and migration methods:
| Source Cloud |
Mapping File |
| AWS |
references/aws-product-mapping.md |
| Azure |
references/azure-product-mapping.md |
| Huawei Cloud |
references/huawei-product-mapping.md |
| Tencent Cloud |
references/tencent-product-mapping.md |
Each mapping table contains two parts — Cloud Product Mapping + Self-hosted Middleware Migration. When the user's products involve self-hosted middleware (MySQL, Redis, Kafka, Nginx, etc.), also refer to the self-hosted section for migration methods.
Step 3: Search Alibaba Cloud Official Documentation Online (Mandatory)
Before generating the "Per-Product Migration Plan", you MUST search Alibaba Cloud official documentation online to ensure migration step accuracy.
3.1 Requirements
- Must search online: Use available web search tools (e.g.,
search_web, web_search, web_fetch, etc.) to search Alibaba Cloud official migration documentation
- Must retrieve document content: Use available content fetching tools (e.g.,
fetch_content, web_fetch, etc.) to read help.aliyun.com official documentation
- Never fabricate from memory: All migration steps must come from actually retrieved official documentation
- Must cite official links: The "Reference Documentation" in the output must include real links from the
help.aliyun.com domain
3.2 Search Steps (Execute Per Product)
For each migration product/tool the user involves, repeat the following:
Search official documentation
- Use available search tools to find Alibaba Cloud official migration documentation
- Search keyword format:
Alibaba Cloud <tool/product name> <migration scenario> official documentation
- Examples:
Alibaba Cloud DTS MySQL migration official documentation
Alibaba Cloud Redis-Shake migration guide
Alibaba Cloud SMC Server Migration
Alibaba Cloud Online Migration Service OSS
Select help.aliyun.com links
- Prioritize official documentation from the
help.aliyun.com domain
- Retrieve at least 1 official document per product
Read document content
- Use available content fetching tools to read the document page
- Extract: prerequisites, operation steps, important notes, data verification methods
Integrate document content into the plan
- Reference the retrieved official documentation in the "Migration Steps"
- Attach actually read
help.aliyun.com links in the "Reference Documentation"
3.3 Execution Verification
If any item is not satisfied, you must go back and re-execute search and retrieval. Do not proceed with plan generation.
3.4 Common Search Keyword Quick Reference
| Migration Tool |
Search Keywords |
| DTS |
Alibaba Cloud DTS data migration <source database type> |
| SMC |
Alibaba Cloud SMC Server Migration Center |
| Redis-Shake |
Alibaba Cloud Redis-Shake data sync |
| Online Migration Service |
Alibaba Cloud Online Migration Service OSS object storage migration |
| Logstash/Snapshot |
Alibaba Cloud Elasticsearch data migration snapshot restore |
| MirrorMaker |
Kafka MirrorMaker migration Alibaba Cloud |
| ACK Deployment |
Alibaba Cloud ACK Container Service application deployment |
| PolarDB |
Alibaba Cloud PolarDB data migration DTS |
Step 4: Generate Markdown Plan
Generate plan content following the "Plan Template" structure below, save as a .md file (suggested filename: <customer_name>_migration_plan.md).
Step 5: Convert to Word Document
timeout 60 uv run --with python-docx==1.2.0 python3 scripts/md_to_docx.py <plan.md> <plan.docx>
Conversion tool features (precise formatting via python-docx):
- Dual Chinese/English fonts (Microsoft YaHei + Calibri), A4 page, 1.5x line spacing
- Hierarchical heading styles (dark blue, bold, graduated font sizes)
- Professional table formatting: dark blue header + white text + zebra rows + borders
- Supports bold, ordered/unordered lists, blockquotes, horizontal rules
- Uses
uv run --with python-docx==1.2.0 for automatic dependency management, no manual installation needed
Provide the generated .docx file path to the user.
2. Plan Template
# [Customer/Project Name] Cloud Migration Plan
## 1. Migration Overview
Briefly describe migration background, source cloud platform, target cloud platform (Alibaba Cloud), and number of products involved.
## 2. Product Mapping Summary
| No. | Source Cloud Product | Source Product Description | Alibaba Cloud Product | Alibaba Cloud Product Description | Migration Method |
|-----|---------------------|---------------------------|----------------------|----------------------------------|-----------------|
| 1 | XXX | ... | XXX | ... | ... |
## 3. Per-Product Migration Plan
### 3.1 [Product Name]
#### Product Mapping
- **Source product**: Product name and brief description
- **Alibaba Cloud product**: Counterpart product name and brief description
#### Migration Plan
- **Migration method**: Describe the migration approach (online migration/offline migration/tool migration/reconfiguration, etc.)
- **Migration tool**: Recommended migration tool or service
- **Migration steps** (must be based on official documentation retrieved via `fetch_content`):
1. Prerequisites (permissions, network, version requirements, etc.)
2. Specific operation steps
3. Data verification and cutover
- **Application modification** (if needed): Clearly identify whether application code, configuration files, or connection strings need modification, and list specific modification points
- **Reference documentation**: Attach actual `help.aliyun.com` official documentation links retrieved via `fetch_content`
#### Important Notes
- Compatibility notes (version, parameter, feature differences)
- Data consistency assurance (verification methods)
- Business interruption assessment (downtime window, rollback plan)
(Repeat 3.x structure for each product)
## 4. Migration Risks and Mitigation
| Risk Item | Risk Description | Impact Level | Mitigation Measures |
|-----------|-----------------|--------------|---------------------|
| ... | ... | High/Med/Low | ... |
## 5. Data Reverse Sync Plan
During cutover, to ensure data consistency between source and Alibaba Cloud for rollback purposes, provide a data reverse synchronization plan.
3. Writing Principles
- Accurate mapping: Product mapping must strictly follow the mapping table. If Alibaba Cloud has no exact counterpart, explain differences and provide alternatives
- Feasible plan: Migration steps must be specific and actionable; recommended tools and methods must actually exist
- Risk disclosure: Explain compatibility issues, data loss risks, and business interruption impact
- Tool-first: Prioritize migration tools noted in the mapping table (SMC, DTS, Redis-Shake and other official Alibaba Cloud tools)
- Best practices: Provide recommendations based on Alibaba Cloud official documentation
- Documentation-driven (mandatory): Each product migration plan must execute Step 3 online documentation search; migration steps must come from actual
help.aliyun.com document content, never fabricated from memory; must include real reference links
- Application modification marking: If migration involves application changes (code/config/connection string changes), a dedicated "Application Modification" subsection must be added in the "Migration Plan" section, clearly listing all modification points with examples
1---2name: alibabacloud-migration-mas-solution3description: 生成从友商云(AWS、Azure、华为云、腾讯云)迁移到阿里云的迁移方案。当用户提供友商云产品列表时,给出产品映射和详细迁移方案。适用于用户提到"迁云"、"迁移方案"、"云迁移"、"从XX云迁移到阿里云"等场景。4---5
6# Cloud Migration Solution Generator
7
8## When to Use
9
10**Scenarios where this Skill SHOULD be used:**
11
12- User explicitly mentions "cloud migration", "migration plan", "migrate from XX cloud to Alibaba Cloud", etc.
13- User provides a list of source cloud products / resource inventory / architecture diagram and needs a complete migration plan document
14- User requests deliverable-grade documentation (MD + Word) including product mapping, migration steps, risk assessment, and reverse sync
15- User involves **cross-cloud migration** (AWS / Azure / Huawei Cloud / Tencent Cloud → Alibaba Cloud)
16- User involves **Alibaba Cloud cross-account / cross-site migration** (e.g., Hologres, MaxCompute, DataWorks internal migration)
17
18**Scenarios where this Skill SHOULD NOT be used (use product-mapping or other approaches):**
19
20- User only needs a **specification comparison table** or **cost estimate**, not a full migration plan → Use `product-mapping` Skill
21- User only needs **pricing for a single Alibaba Cloud product** → Use `product-mapping` Skill
22- User asks about **Alibaba Cloud product features / configuration / best practices** without migration context → Answer directly or search documentation
23- User already has a complete plan and only needs **format conversion** (e.g., MD → Word) → Call `md_to_docx.py` directly
24- User discusses **application architecture refactoring** rather than cloud resource migration → General technical discussion
25- User needs an **O&M operations manual** rather than a one-time migration plan → Not applicable
26
27---
28
29## 1. Workflow
30
31```
32Collect Info → Review Mapping Table → Search Official Docs Online → Generate Markdown Plan → Convert to Word → Deliver to User
33```
34
35### Step 1: Collect Information
36
37Confirm the following required information with the user:
38
39- **Source cloud provider**: AWS / Azure / Huawei Cloud / Tencent Cloud
40- **Cloud product list**: Product names and specifications currently in use
41- **Business scenario (optional)**: Helps recommend more accurate Alibaba Cloud products
42
43> If the user does not specify the source cloud provider, ask proactively. If only product names are provided without specifications, handle as a general scenario.
44
45### Step 2: Review Product Mapping Table
46
47Based on the source cloud provider, read the corresponding mapping file to get product mapping relationships and migration methods:
48
49| Source Cloud | Mapping File |
50|-------------|-------------|
51| AWS | [references/aws-product-mapping.md](references/aws-product-mapping.md) |
52| Azure | [references/azure-product-mapping.md](references/azure-product-mapping.md) |
53| Huawei Cloud | [references/huawei-product-mapping.md](references/huawei-product-mapping.md) |
54| Tencent Cloud | [references/tencent-product-mapping.md](references/tencent-product-mapping.md) |
55
56> Each mapping table contains two parts — **Cloud Product Mapping** + **Self-hosted Middleware Migration**. When the user's products involve self-hosted middleware (MySQL, Redis, Kafka, Nginx, etc.), also refer to the self-hosted section for migration methods.
57
58### Step 3: Search Alibaba Cloud Official Documentation Online (Mandatory)
59
60Before generating the "Per-Product Migration Plan", you **MUST** search Alibaba Cloud official documentation online to ensure migration step accuracy.
61
62#### 3.1 Requirements
63
64- **Must search online**: Use available web search tools (e.g., `search_web`, `web_search`, `web_fetch`, etc.) to search Alibaba Cloud official migration documentation
65- **Must retrieve document content**: Use available content fetching tools (e.g., `fetch_content`, `web_fetch`, etc.) to read `help.aliyun.com` official documentation
66- **Never fabricate from memory**: All migration steps must come from actually retrieved official documentation
67- **Must cite official links**: The "Reference Documentation" in the output must include real links from the `help.aliyun.com` domain
68
69#### 3.2 Search Steps (Execute Per Product)
70
71For **each** migration product/tool the user involves, repeat the following:
72
731. **Search official documentation**
74 - Use available search tools to find Alibaba Cloud official migration documentation
75 - Search keyword format: `Alibaba Cloud <tool/product name> <migration scenario> official documentation`
76 - Examples:
77 - `Alibaba Cloud DTS MySQL migration official documentation`
78 - `Alibaba Cloud Redis-Shake migration guide`
79 - `Alibaba Cloud SMC Server Migration`
80 - `Alibaba Cloud Online Migration Service OSS`
81
822. **Select `help.aliyun.com` links**
83 - Prioritize official documentation from the `help.aliyun.com` domain
84 - Retrieve at least 1 official document per product
85
863. **Read document content**
87 - Use available content fetching tools to read the document page
88 - Extract: prerequisites, operation steps, important notes, data verification methods
89
904. **Integrate document content into the plan**
91 - Reference the retrieved official documentation in the "Migration Steps"
92 - Attach actually read `help.aliyun.com` links in the "Reference Documentation"
93
94#### 3.3 Execution Verification
95
96- [ ] Online search performed for each migration product
97- [ ] Official `help.aliyun.com` documentation retrieved for each migration product
98- [ ] "Migration Steps" content derived from actually retrieved document body
99- [ ] "Reference Documentation" links include `help.aliyun.com` domain
100
101> If any item is not satisfied, you must go back and re-execute search and retrieval. Do not proceed with plan generation.
102
103#### 3.4 Common Search Keyword Quick Reference
104
105| Migration Tool | Search Keywords |
106|---------------|----------------|
107| DTS | `Alibaba Cloud DTS data migration <source database type>` |
108| SMC | `Alibaba Cloud SMC Server Migration Center` |
109| Redis-Shake | `Alibaba Cloud Redis-Shake data sync` |
110| Online Migration Service | `Alibaba Cloud Online Migration Service OSS object storage migration` |
111| Logstash/Snapshot | `Alibaba Cloud Elasticsearch data migration snapshot restore` |
112| MirrorMaker | `Kafka MirrorMaker migration Alibaba Cloud` |
113| ACK Deployment | `Alibaba Cloud ACK Container Service application deployment` |
114| PolarDB | `Alibaba Cloud PolarDB data migration DTS` |
115
116### Step 4: Generate Markdown Plan
117
118Generate plan content following the "Plan Template" structure below, save as a `.md` file (suggested filename: `<customer_name>_migration_plan.md`).
119
120### Step 5: Convert to Word Document
121
122```bash
123timeout 60 uv run --with python-docx==1.2.0 python3 scripts/md_to_docx.py <plan.md> <plan.docx>
124```
125
126Conversion tool features (precise formatting via python-docx):
127
128- Dual Chinese/English fonts (Microsoft YaHei + Calibri), A4 page, 1.5x line spacing
129- Hierarchical heading styles (dark blue, bold, graduated font sizes)
130- Professional table formatting: dark blue header + white text + zebra rows + borders
131- Supports bold, ordered/unordered lists, blockquotes, horizontal rules
132- Uses `uv run --with python-docx==1.2.0` for automatic dependency management, no manual installation needed
133
134Provide the generated `.docx` file path to the user.
135
136---
137
138## 2. Plan Template
139
140```markdown
141# [Customer/Project Name] Cloud Migration Plan
142
143## 1. Migration Overview
144
145Briefly describe migration background, source cloud platform, target cloud platform (Alibaba Cloud), and number of products involved.
146
147## 2. Product Mapping Summary
148
149| No. | Source Cloud Product | Source Product Description | Alibaba Cloud Product | Alibaba Cloud Product Description | Migration Method |
150|-----|---------------------|---------------------------|----------------------|----------------------------------|-----------------|
151| 1 | XXX | ... | XXX | ... | ... |
152
153## 3. Per-Product Migration Plan
154
155### 3.1 [Product Name]
156
157#### Product Mapping
158- **Source product**: Product name and brief description
159- **Alibaba Cloud product**: Counterpart product name and brief description
160
161#### Migration Plan
162- **Migration method**: Describe the migration approach (online migration/offline migration/tool migration/reconfiguration, etc.)
163- **Migration tool**: Recommended migration tool or service
164- **Migration steps** (must be based on official documentation retrieved via `fetch_content`):
165 1. Prerequisites (permissions, network, version requirements, etc.)
166 2. Specific operation steps
167 3. Data verification and cutover
168- **Application modification** (if needed): Clearly identify whether application code, configuration files, or connection strings need modification, and list specific modification points
169- **Reference documentation**: Attach actual `help.aliyun.com` official documentation links retrieved via `fetch_content`
170
171#### Important Notes
172- Compatibility notes (version, parameter, feature differences)
173- Data consistency assurance (verification methods)
174- Business interruption assessment (downtime window, rollback plan)
175
176(Repeat 3.x structure for each product)
177
178## 4. Migration Risks and Mitigation
179
180| Risk Item | Risk Description | Impact Level | Mitigation Measures |
181|-----------|-----------------|--------------|---------------------|
182| ... | ... | High/Med/Low | ... |
183
184## 5. Data Reverse Sync Plan
185
186During cutover, to ensure data consistency between source and Alibaba Cloud for rollback purposes, provide a data reverse synchronization plan.
187```
188
189---
190
191## 3. Writing Principles
192
193- **Accurate mapping**: Product mapping must strictly follow the mapping table. If Alibaba Cloud has no exact counterpart, explain differences and provide alternatives
194- **Feasible plan**: Migration steps must be specific and actionable; recommended tools and methods must actually exist
195- **Risk disclosure**: Explain compatibility issues, data loss risks, and business interruption impact
196- **Tool-first**: Prioritize migration tools noted in the mapping table (SMC, DTS, Redis-Shake and other official Alibaba Cloud tools)
197- **Best practices**: Provide recommendations based on Alibaba Cloud official documentation
198- **Documentation-driven (mandatory)**: Each product migration plan must execute Step 3 online documentation search; migration steps must come from actual `help.aliyun.com` document content, never fabricated from memory; must include real reference links
199- **Application modification marking**: If migration involves application changes (code/config/connection string changes), a dedicated "Application Modification" subsection must be added in the "Migration Plan" section, clearly listing all modification points with examples