huawei-cloud-mgc-migration-ecs-gcp-to-hw

huawei-cloud-mgc-migration-ecs-gcp-to-hw is a skill for Codex from huaweicloud/huaweicloud-skills. It costs 286 tokens per session (4,325 once invoked), scanned A, original, MIT.

A repository-specific workflow for moving servers into Huawei Cloud. It uses Terraform, a tool for defining infrastructure, and Huawei migration services to run batch or single-server migrations and check their results.

In plain words
What is it for?
It prechecks sources, creates migration tasks, starts them, monitors completion, and can repair a migrated server's boot disk or SSH access. It covers existing-target batch migrations and single-source migrations.
Why use it?
It gives migration steps and error handling a fixed order instead of requiring manual coordination across scripts and cloud APIs. It can fall back from Huawei's migration service to file synchronisation when a source is incompatible.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit It prechecks sources, creates migration tasks, starts them, monitors completion, and can repair a migrated server's boot disk or SSH access. It covers existing-target batch migrations and single-source migrations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/huaweicloud/huaweicloud-skills/huawei-cloud-mgc-migration-ecs-gcp-to-hw
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add huaweicloud/huaweicloud-skills --skill huawei-cloud-mgc-migration-ecs-gcp-to-hw
Clone the repo
git clone --depth 1 https://github.com/huaweicloud/huaweicloud-skills

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for huawei-cloud-mgc-migration-ecs-gcp-to-hw

README.md
[![agentmods](https://agentmods.dev/badge/skills/huaweicloud/huaweicloud-skills/huawei-cloud-mgc-migration-ecs-gcp-to-hw/github.svg)](https://agentmods.dev/skills/huaweicloud/huaweicloud-skills/huawei-cloud-mgc-migration-ecs-gcp-to-hw)
Your own site
<a href="https://agentmods.dev/skills/huaweicloud/huaweicloud-skills/huawei-cloud-mgc-migration-ecs-gcp-to-hw"><img src="https://agentmods.dev/badge/skills/huaweicloud/huaweicloud-skills/huawei-cloud-mgc-migration-ecs-gcp-to-hw/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for huawei-cloud-mgc-migration-ecs-gcp-to-hw

Your own site · 80×15
<a href="https://agentmods.dev/skills/huaweicloud/huaweicloud-skills/huawei-cloud-mgc-migration-ecs-gcp-to-hw"><img src="https://agentmods.dev/badge/skills/huaweicloud/huaweicloud-skills/huawei-cloud-mgc-migration-ecs-gcp-to-hw.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 286 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,325 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00286 $0.04325
Opus 5.5 $0.00114 $0.01730
Sonnet 5.5 $0.00057 $0.00865
Haiku 4.5 $0.00029 $0.00432

Measured 24d ago against content hash c39b1fcee206, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

huawei-cloud-mgc-migration-ecs-gcp-to-hw scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 24d ago.

The scan reads SKILL.md. This mod also ships 9 executable files (scripts/aws_to_huawei_direct.py, scripts/aws_to_huawei_rsync.py, scripts/mgc_cleanup_migprojects.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/migrationom/oos/huawei-cloud-mgc-migration-ecs-gcp-to-hw/SKILL.md · 210 lines

How it starts

The opening of the file, as written. The whole thing — 210 lines — stays where its author put it; the contents beside it link to each section on GitHub.

MGC Cross-Region Migration

Overview

This skill runs the migration flow implemented in this repository, from precheck to task startup and result validation, keeping execution deterministic by following the exact command sequence and error-handling rules already implemented in the migration scripts.

Architecture: Terraform (main.tf) reads terraform.tfvars, maps the values to runtime environment variables, and invokes scripts/run_migration.sh, which currently calls python3 scripts/mgc_sms_existing_target_batch.py (batch existing-target SMS migration). That script signs and issues HTTPS requests directly against the Huawei Cloud IAM, SMS, ECS, VPC, and EVS REST APIs (no KooCLI/hcloud involved) to create migration projects, register migration tasks against pre-existing target servers, and poll them to completion. scripts/mgc_migrate.py remains available for the single-source SMS/rsync workflow, and scripts/repair_boot_via_helper.py performs post-migration boot-disk/SSH repair via a temporary helper ECS. Default policy is SMS first; when precheck/runtime indicates an incompatible source (for example SMS.6504), single-source runs switch to rsync phases (full_sync -> incremental_sync -> cutover_sync).

Applicable scenarios:

  • Batch-migrating multiple sources to pre-existing target ECS instances matched by fixed IP.
  • Migrating a single on-prem VMware VM, or an external GCP/AWS instance, into Huawei Cloud.
  • Resuming a paused/interrupted batch run from checkpoint files.
  • Repairing a target ECS that fails to boot or accept SSH after migration.
  • Postmortem/experience-capture requests after a migration run.

Example user requests:

  • "帮我批量迁移这几台 GCP 实例到已有的目标机器上。"
  • "terraform apply 报错 SMS.1404,target disk 提示 IN-USE,怎么处理?"
  • "迁移之后目标机器起不来,GRUB 报 Cannot open root device,帮我修。"
  • "上次批量迁移中断了,帮我从 checkpoint 继续。"

Relationship to huawei-cloud-sms-host-migrator: that skill is a general, interactive SMS-console/API assistant for ad-hoc host migrations from any source (IDC, Alibaba Cloud, Tencent Cloud, AWS) to Huawei Cloud. This skill is narrower and automation-first: it drives the exact same SMS APIs through a fixed Terraform + Python pipeline (main.tf -> scripts/run_migration.sh -> mgc_sms_existing_target_batch.py/mgc_migrate.py) to get deterministic, repeatable batch runs, with built-in rsync/VPN-bridge fallback and boot-disk/SSH repair (repair_boot_via_helper.py) that huawei-cloud-sms-host-migrator does not provide. Prefer this skill when the user already has (or wants) a Terraform-driven, scriptable, resumable migration pipeline; prefer huawei-cloud-sms-host-migrator for one-off, console-guided migrations.

Read the full file on GitHub · 210 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 24d ago First seen · 210 lines · 286 tokens per session scan A c39b1fcee206

Subscribe to this mod's changes

huawei-cloud-mgc-migration-ecs-gcp-to-hw is a skill published in the GitHub repository huaweicloud/huaweicloud-skills (59 stars, last pushed 4d ago), licensed MIT. It adds 286 tokens to every session and 4,325 once invoked, about $0.0011 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-06.

Related

huawei-cloud-mgc-migration-ecs-gcp-to-hw compared with skills from other repositories

huawei-cloud-mgc-migration-ecs-gcp-to-hw next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
huawei-cloud-mgc-migration-ecs-gcp-to-hwhuaweicloud/huaweicloud-skillsSkill594d agoMITA286Codex
huawei-cloud-apig-instance-managementhuaweicloud/huaweicloud-devkitSkill71todayApache-2.0A206Claude Code
huawei-cloud-deployment-task-managementhuaweicloud/huaweicloud-devkitSkill71todayApache-2.0A203Claude Code
infrastructure-as-code-guardianJPeetz/agent-skillsSkill2113d agononeA106Claude Code, Codex
auditing-terraform-infrastructure-for-securityxalgorix/xalgorixSkill1.5kyesterdayApache-2.0A59Claude Code, Codex
implementing-infrastructure-as-code-security-scanningxalgorix/xalgorixSkill1.5kyesterdayApache-2.0A81Claude Code, Codex
huawei-cloud-cts-trace-managementhuaweicloud/huaweicloud-devkitSkill71todayApache-2.0A249Claude Code