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.
npx skills add huaweicloud/huaweicloud-skills --skill huawei-cloud-migration-ecs-across-regiongit clone --depth 1 https://github.com/huaweicloud/huaweicloud-skillsWrote 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.
[](https://agentmods.dev/skills/huaweicloud/huaweicloud-skills/huawei-cloud-migration-ecs-across-region)<a href="https://agentmods.dev/skills/huaweicloud/huaweicloud-skills/huawei-cloud-migration-ecs-across-region"><img src="https://agentmods.dev/badge/skills/huaweicloud/huaweicloud-skills/huawei-cloud-migration-ecs-across-region/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.
<a href="https://agentmods.dev/skills/huaweicloud/huaweicloud-skills/huawei-cloud-migration-ecs-across-region"><img src="https://agentmods.dev/badge/skills/huaweicloud/huaweicloud-skills/huawei-cloud-migration-ecs-across-region.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00238 | $0.03716 |
| Opus 5.5 | $0.00095 | $0.01486 |
| Sonnet 5.5 | $0.00048 | $0.00743 |
| Haiku 4.5 | $0.00024 | $0.00372 |
Grade A, and why
huawei-cloud-migration-ecs-across-region 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.
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.
How it starts
The opening of the file, as written. The whole thing — 199 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 single-source Huawei Cloud server migration flow implemented in this repository, from precheck to task startup and result validation. It keeps execution deterministic by following the exact command sequence and error-handling rules already implemented in scripts/mgc_migrate.py.
Architecture: Terraform (main.tf) reads terraform.tfvars, maps the values to runtime environment variables, and invokes scripts/run_migration.sh, which calls python3 scripts/mgc_migrate.py. That script signs and issues HTTPS requests directly against the Huawei Cloud IAM, SMS, ECS, and VPC REST APIs (no KooCLI/hcloud involved) to create a migration project, register a migration task, and poll it to completion. Default policy is SMS first; when precheck/runtime indicates an incompatible source (for example SMS.6504), the script switches to rsync phases (full_sync -> incremental_sync -> cutover_sync).
Applicable scenarios:
- Migrating a single on-prem VMware VM or another-cloud ECS instance into Huawei Cloud via Terraform + SMS/rsync (
scripts/mgc_migrate.py). - Migrating an AWS EC2 instance directly into Huawei Cloud via the standalone rsync path (
scripts/run_aws_migration.sh+aws_to_huawei_direct.py/aws_to_huawei_rsync.py), when the source is AWS-specific (EC2 PEM-key auth, AWS CLI/API source discovery) rather than going through SMS. - Source hosts that SMS cannot handle natively, requiring rsync-based staged migration instead.
- Post-migration troubleshooting: SSH/TCP-22 unreachable, cloud-init failures, stale SMS tasks/quota errors.
- Postmortem/experience-capture requests after a migration run.
Example user requests:
- "Migrate this VMware VM in la-north-2 to la-south-2."
- "帮我把这台 AWS EC2 实例迁移到华为云。"
- "terraform apply 报错 SMS.8115,怎么处理?"
- "SMS 显示迁移成功但是 SSH 连不上目标机器,帮我排查。"
- "帮我把这次迁移过程的踩坑记录总结一下。"
Prerequisites
- Terraform
>= 1.5.0onPATH. Verify withterraform version. - Python 3.8+ on
PATH(verify withpython3 --version).scripts/mgc_migrate.pyonly uses the standard library; the optional VPN-bridge fallback path additionally importspexpect, install it only if that path is used (pip install pexpect). - This skill does not use Huawei Cloud KooCLI (
hcloud). All Huawei Cloud API calls are issued as signed HTTPS requests fromscripts/mgc_migrate.py; no separate CLI installation is required. - Credentials: set
access_key/secret_key(anddomain_nameif needed) interraform.tfvars. Terraform passes them to the migration script only as local-exec environment variables (HC_AK/HC_SK); never print them, log them, or paste them into chat. See references/iam-policies.md for the required IAM permissions. - Permission failure handling (MUST): if any API call fails with a permission/
403error, open references/iam-policies.md, show the user the exact missing permission and the minimal policy JSON, have them grant it in the IAM console, then pause until the user confirms the grant before retrying.
What ships with it
18 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- .gitleaksignore 1.5 KB
- agents/openai.yaml 252 B
- main.tf 3.7 KB
- README.md 2.6 KB
- references/acceptance-criteria.md 2.5 KB
- references/iam-policies.md 3.1 KB
- references/lessons-learned.md 8.1 KB
- references/migration-skill-summary.md 2.8 KB
- references/reuse-bundle.md 3.2 KB
- references/runbook.md 9.0 KB
- references/verification-method.md 1.9 KB
- scripts/aws_to_huawei_direct.py 31 KB runs code
- scripts/aws_to_huawei_rsync.py 29 KB runs code
- scripts/mgc_migrate.py 125 KB runs code
- scripts/run_aws_migration.sh 2.5 KB runs code
- scripts/run_migration.sh 212 B runs code
- tools/build_bundle_from_latest_out.ps1 3.3 KB runs code
- variables.tf 7.5 KB
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.
- 24d ago First seen · 199 lines · 238 tokens per session scan A d9484e89f2b6
huawei-cloud-migration-ecs-across-region is a skill published in the GitHub repository huaweicloud/huaweicloud-skills (59 stars, last pushed 4d ago), licensed MIT. It adds 238 tokens to every session and 3,716 once invoked, about $0.0010 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.
huawei-cloud-migration-ecs-across-region compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| huawei-cloud-migration-ecs-across-regionhuaweicloud/huaweicloud-skills | Skill | 59 | 4d ago | MIT | A | 238 | Codex |
| huawei-cloud-apig-instance-managementhuaweicloud/huaweicloud-devkit | Skill | 71 | today | Apache-2.0 | A | 206 | Claude Code |
| huawei-cloud-deployment-task-managementhuaweicloud/huaweicloud-devkit | Skill | 71 | today | Apache-2.0 | A | 203 | Claude Code |
| infrastructure-as-code-guardianJPeetz/agent-skills | Skill | 21 | 13d ago | none | A | 106 | Claude Code, Codex |
| auditing-terraform-infrastructure-for-securityxalgorix/xalgorix | Skill | 1.5k | yesterday | Apache-2.0 | A | 59 | Claude Code, Codex |
| implementing-infrastructure-as-code-security-scanningxalgorix/xalgorix | Skill | 1.5k | yesterday | Apache-2.0 | A | 81 | Claude Code, Codex |
| huawei-cloud-cts-trace-managementhuaweicloud/huaweicloud-devkit | Skill | 71 | today | Apache-2.0 | A | 249 | Claude Code |