huawei-cloud-migration-windows-ecs

huawei-cloud-migration-windows-ecs is a skill for Claude Code, Codex from huaweicloud/huaweicloud-skills. It costs 381 tokens per session (5,435 once invoked), scanned A, original, MIT.

An automation workflow for moving Windows computers to Huawei Cloud ECS using Server Migration Service. ECS is Huawei Cloud's virtual-machine service; the workflow installs a migration agent, prepares a target machine, transfers data, and can switch over to the new machine.

In plain words
What is it for?
Use it to discover source hosts, prepare ECS targets, create and run migration tasks, synchronize data, perform cutover, and clean up migration resources.
Why use it?
It coordinates the many steps of a migration and includes checks for source cleanup, target resources, environment settings, and migration progress. It supports both public-network and private-network setups.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to discover source hosts, prepare ECS targets, create and run migration tasks, synchronize data, perform cutover, and clean up migration resources.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/huaweicloud/huaweicloud-skills/huawei-cloud-migration-windows-ecs
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-migration-windows-ecs
Clone the repo
git clone --depth 1 https://github.com/huaweicloud/huaweicloud-skills

Made for: Claude Code, 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-migration-windows-ecs

README.md
[![agentmods](https://agentmods.dev/badge/skills/huaweicloud/huaweicloud-skills/huawei-cloud-migration-windows-ecs/github.svg)](https://agentmods.dev/skills/huaweicloud/huaweicloud-skills/huawei-cloud-migration-windows-ecs)
Your own site
<a href="https://agentmods.dev/skills/huaweicloud/huaweicloud-skills/huawei-cloud-migration-windows-ecs"><img src="https://agentmods.dev/badge/skills/huaweicloud/huaweicloud-skills/huawei-cloud-migration-windows-ecs/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-migration-windows-ecs

Your own site · 80×15
<a href="https://agentmods.dev/skills/huaweicloud/huaweicloud-skills/huawei-cloud-migration-windows-ecs"><img src="https://agentmods.dev/badge/skills/huaweicloud/huaweicloud-skills/huawei-cloud-migration-windows-ecs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 381 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,435 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.00381 $0.05435
Opus 5.5 $0.00152 $0.02174
Sonnet 5.5 $0.00076 $0.01087
Haiku 4.5 $0.00038 $0.00543

Measured 1mo ago against content hash ec5fda3d3fd7, 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-migration-windows-ecs 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 1mo ago.

The scan reads SKILL.md. This mod also ships 46 executable files (scripts/windows_migration/agent_recover.py, scripts/windows_migration/cleanup_environment.py, scripts/windows_migration/cleanup_windows.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-migration-windows-ecs/SKILL.md · 327 lines

How it starts

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

Huawei Cloud SMS Windows 主机迁移 Skill

基本信息

项目 内容
name huawei-cloud-migration-windows-ecs
description 华为云 SMS(Server Migration Service)Windows 主机迁移到 ECS 的自动化编排 Skill。支持 Windows Server 2008/2008R2/2012/2012R2/2016/2019/2022/2025 及 Win7/8.1/10/11(64位)。公网/私网迁移模板与环境变量模板 + 前置任务提醒(未设置 Host_Information/migration_* 时先配置环境变量再迁移);双 CLI(unified_migrate.py 部署 Agent + sms_task.py 目标/迁移任务/同步/割接)+ 环境清理编排(cleanup_environment.py);KooCLI 7.2.x 实测兼容(BatchStartServers 等效割接、EVS 磁盘校验 fallback、sync/cutover 枚举不支持时自动回退);批量主机信息从环境变量 Host_Information(JSON 模板)读取(CSV 兼容回退);部署前必清源端(CleanupSourcePhase);私网 Squid/gost 代理(CONNECT 仅迁移端口);资源属主体系(OwnerID 指纹);71+ 安全规则(含红线 O1-O6);目标编排自动创建数据盘(1:1);任务名 ≤16 防 SMS.7711。触发词:Windows迁移、SMS迁移、迁移Windows服务器、Windows to ECS、migrate Windows、Windows server migration、批量迁移、公网迁移、私网迁移、创建目标虚拟机、创建迁移任务、host-migration、清理环境

迁移基本逻辑

Phase A: unified_migrate.py — 清理 + 部署 Agent 并注册源端
  阶段链: WinRMPhase → CleanupSourcePhase(清残留) → InstallAgentPhase → ConfigurePhase → VerifyPhase
Phase B: sms_task.py — 目标编排 → 迁移任务 → 同步 → 割接 → 回收
  子命令: discover / prepare-target / create / start / wait / sync / cutover / cleanup / release / delete
环境清理: cleanup_environment.py — ①打通 gost → ②清源端 → ③清代理
  • 迁移前必做源端清理:引擎已固化 CleanupSourcePhase(先建 WinRM,私网经 gost,再清残留,最后全新部署 Agent)。
  • Py3 GUI 配置必须在交互会话:计划任务带 /it;无桌面会话(explorer/Session>0)直接快速失败。
  • 主机信息不再来自 Excel;批量模式从环境变量 Host_Information 读取(见下)。

源端关键约束

约束项 要求
文件系统 / 磁盘 NTFS、基本磁盘;≤23 块;系统卷必须在磁盘 1
分区空间 分区>600MB→可用≥320MB;<600MB→可用≥40MB
CPU / 内存 CPU<80%;内存>256MB(迁移期间)
Agent 版本 Server 2012+ → Py3 GUI(AutoIt/exe 自动化);2008/2008R2/7 → Py2 CLI
禁止 RAID / BitLocker / 动态磁盘 / 共享文件系统 / ZRAM / AD / 多节点数据库
网络端口 22 / 8899 / 8900 / 443(源端→SMS);5985/5986 WinRM;目标端 SG 仅放行迁移端口

迁移主机信息来源(Host_Information 环境变量)

批量迁移主机信息从环境变量 Host_Information(JSON 数组模板)读取,不再读取 Excel/CSV。 模板(中文键/英文键均可;数组可含源端主机与代理主机两类对象;可多条源端 + 一条代理):

Read the full file on GitHub · 327 lines

Files

What ships with it

60 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.

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. 1mo ago First seen · 327 lines · 381 tokens per session scan A ec5fda3d3fd7

Subscribe to this mod's changes

huawei-cloud-migration-windows-ecs is a skill published in the GitHub repository huaweicloud/huaweicloud-skills (59 stars, last pushed 4d ago), licensed MIT. It adds 381 tokens to every session and 5,435 once invoked, about $0.0015 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-10-31.

Related

huawei-cloud-migration-windows-ecs compared with skills from other repositories

huawei-cloud-migration-windows-ecs next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
huawei-cloud-migration-windows-ecshuaweicloud/huaweicloud-skillsSkill594d agoMITA381Claude Code, Codex
gke-compute-classesgoogle/skillsSkill25ktodayApache-2.0A83Claude Code, Codex
cloud-operator-admin-setupgoogle/skillsSkill25ktodayApache-2.0A115Claude Code, Codex
gke-reliabilitygoogle/skillsSkill25ktodayApache-2.0A85Claude Code, Codex
gke-workload-securitygoogle/skillsSkill25ktodayApache-2.0A171Claude Code, Codex
nemo-automodel-launcher-configNVIDIA/skillsSkill4.2k2d agoApache-2.0A30Claude Code
azure-mgmt-botservice-dotnetmicrosoft/skillsSkill3.3k3d agoMITA78Claude Code