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-windows-ecsgit 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-windows-ecs)<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.
<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>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.00381 | $0.05435 |
| Opus 5.5 | $0.00152 | $0.02174 |
| Sonnet 5.5 | $0.00076 | $0.01087 |
| Haiku 4.5 | $0.00038 | $0.00543 |
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.
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 — 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。
模板(中文键/英文键均可;数组可含源端主机与代理主机两类对象;可多条源端 + 一条代理):
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.
- README.md 6.1 KB
- references/cli-commands.md 4.7 KB
- references/migration-workflow.md 8.9 KB
- references/safety-rules.md 9.4 KB
- references/sms-agent-automation-guide.md 12 KB
- references/sms-agent-guide.md 10 KB
- references/troubleshooting.md 26 KB
- requirements.txt 201 B
- scripts/windows_migration/agent_recover.py 5.2 KB runs code
- scripts/windows_migration/cleanup_environment.py 8.1 KB runs code
- scripts/windows_migration/cleanup_windows.py 11 KB runs code
- scripts/windows_migration/config/env.private.sh.example 1.5 KB
- scripts/windows_migration/config/env.public.sh.example 1.3 KB
- scripts/windows_migration/config/hosts.csv.example 79 B
- scripts/windows_migration/config/migrate.private.yaml 8.9 KB
- scripts/windows_migration/config/migrate.public.yaml 9.0 KB
- scripts/windows_migration/config/README.md 1.9 KB
- scripts/windows_migration/core/__init__.py 0 B runs code
- scripts/windows_migration/core/batch_base.py 15 KB runs code
- scripts/windows_migration/core/batch_orchestrator.py 2.8 KB runs code
- scripts/windows_migration/core/callbacks.py 4.8 KB runs code
- scripts/windows_migration/core/config.py 21 KB runs code
- scripts/windows_migration/core/exceptions.py 3.3 KB runs code
- scripts/windows_migration/core/executor/__init__.py 0 B runs code
- scripts/windows_migration/core/executor/local_executor.py 2.4 KB runs code
- scripts/windows_migration/core/executor/ssh_executor.py 5.2 KB runs code
- scripts/windows_migration/core/executor/winrm_executor.py 16 KB runs code
- scripts/windows_migration/core/hostinfo.py 12 KB runs code
- scripts/windows_migration/core/interfaces/__init__.py 0 B runs code
- scripts/windows_migration/core/interfaces/cloud_provider.py 1.3 KB runs code
- scripts/windows_migration/core/interfaces/executor.py 1.3 KB runs code
- scripts/windows_migration/core/interfaces/winrm_manager.py 1.5 KB runs code
- scripts/windows_migration/core/markers.py 765 B runs code
- scripts/windows_migration/core/obs_signer.py 3.0 KB runs code
- scripts/windows_migration/core/ownership.py 6.8 KB runs code
- scripts/windows_migration/core/private_batch_orchestrator.py 5.6 KB runs code
- scripts/windows_migration/core/sms_client.py 12 KB runs code
- scripts/windows_migration/core/target_provider.py 44 KB runs code
- scripts/windows_migration/core/winrm/__init__.py 0 B runs code
- scripts/windows_migration/core/winrm/detector.py 2.9 KB runs code
- scripts/windows_migration/core/winrm/keepalive.py 3.4 KB runs code
- scripts/windows_migration/core/winrm/manager.py 2.8 KB runs code
- scripts/windows_migration/core/winrm/providers/__init__.py 0 B runs code
- scripts/windows_migration/core/winrm/providers/aliyun.py 691 B runs code
- scripts/windows_migration/core/winrm/providers/aws.py 757 B runs code
- scripts/windows_migration/core/winrm/providers/base.py 2.3 KB runs code
- scripts/windows_migration/core/winrm/providers/factory.py 662 B runs code
- scripts/windows_migration/core/winrm/providers/huawei_cloud.py 1.1 KB runs code
- scripts/windows_migration/phases/__init__.py 0 B runs code
- scripts/windows_migration/phases/base_phase.py 3.5 KB runs code
- scripts/windows_migration/phases/cleanup_source_phase.py 2.6 KB runs code
- scripts/windows_migration/phases/configure_phase.py 16 KB runs code
- scripts/windows_migration/phases/configure_py2_phase.py 25 KB runs code
- scripts/windows_migration/phases/install_agent_phase.py 3.4 KB runs code
- scripts/windows_migration/phases/install_autoit_phase.py 4.3 KB runs code
- scripts/windows_migration/phases/obs_download_phase.py 5.7 KB runs code
- scripts/windows_migration/phases/source_download_phase.py 2.8 KB runs code
- scripts/windows_migration/phases/verify_phase.py 6.4 KB runs code
- scripts/windows_migration/phases/winrm_phase.py 4.9 KB runs code
- scripts/windows_migration/preflight_check.py 3.8 KB runs code
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.
- 1mo ago First seen · 327 lines · 381 tokens per session scan A ec5fda3d3fd7
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.
huawei-cloud-migration-windows-ecs compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| huawei-cloud-migration-windows-ecshuaweicloud/huaweicloud-skills | Skill | 59 | 4d ago | MIT | A | 381 | Claude Code, Codex |
| gke-compute-classesgoogle/skills | Skill | 25k | today | Apache-2.0 | A | 83 | Claude Code, Codex |
| cloud-operator-admin-setupgoogle/skills | Skill | 25k | today | Apache-2.0 | A | 115 | Claude Code, Codex |
| gke-reliabilitygoogle/skills | Skill | 25k | today | Apache-2.0 | A | 85 | Claude Code, Codex |
| gke-workload-securitygoogle/skills | Skill | 25k | today | Apache-2.0 | A | 171 | Claude Code, Codex |
| nemo-automodel-launcher-configNVIDIA/skills | Skill | 4.2k | 2d ago | Apache-2.0 | A | 30 | Claude Code |
| azure-mgmt-botservice-dotnetmicrosoft/skills | Skill | 3.3k | 3d ago | MIT | A | 78 | Claude Code |