Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

huawei-cloud-ecs-lifecycle

БесплатноЗапускает вложенные скриптыНе проверен

Manage the full lifecycle of Huawei Cloud ECS (Elastic Cloud Server) instances — create, list, show details, start, stop, reboot, rename, delete, reinstall or…

huaweicloudskillот huaweicloudskill460 установок в других каталогах

Об этом скилле

Huawei Cloud ECS Lifecycle Management

Full lifecycle management for Huawei Cloud Elastic Cloud Server (ECS) — from provisioning to decommissioning, including power-state orchestration and instance queries.

Overview

This Skill manages the complete lifecycle of ECS (Elastic Cloud Server) instances on Huawei Cloud using the KooCLI ECS service (with the huaweicloudsdkecs Python SDK as fallback):

Capability Operations Actions
Query ListServersDetails, ShowServer List instances with filters/pagination; show instance detail
Linked query ListServerVolumeAttachments, EVS ListVolumes/ShowVolume/ListSnapshots/ShowSnapshot, VPC ShowVpc/ListSubnets/ShowSubnet/ListSecurityGroups/ShowSecurityGroup/ListSecurityGroupRules, EIP ListPublicips/ShowPublicip Query the instance's attached EVS volumes & snapshots, VPC/subnet topology, security groups & rules, and bound EIPs
Create CreateServers Create one or more pay-per-use cloud servers
Power state BatchStartServers, BatchStopServers, BatchRebootServers Start / stop / reboot (batch)
Update BatchUpdateServersName Rename one or more servers
OS image ReinstallServerWithCloudInit / ReinstallServerWithoutCloudInit, ChangeServerOsWithCloudInit / ChangeServerOsWithoutCloudInit Reinstall the operating system, or switch the instance to a different OS image
Resize ListResizeFlavors, ResizeServer, ResizePostPaidServer, BatchResizeServers Query the flavors a server may be resized to; change the flavor (vCPU / memory) of one or many servers
Delete DeleteServers Delete one or more servers (optional EIP/data volume release)
Knowledge — Basic ECS FAQ (flavors, billing, auth, network, disk) answered inline

Scope note: All mutating operations (create / delete / start / stop / reboot / rename / reinstall OS / change OS / resize) are executed only after explicit user confirmation. Query operations are safe to run anytime. Reinstall OS, change OS, and resize are destructive or disruptive — see references/lifecycle-change-operations.md for the full sequence, parameters, and warnings.

Prerequisites

  1. KooCLI (hcloud) installed and authenticated — see references/cli-installation-guide.md. ⚠️ This is verified at runtime by the Step 0 preflight check, not merely assumed: if hcloud is missing from PATH, unauthenticated, or no region can be resolved, the run aborts before any ECS command is attempted.
  2. Region — pass --cli-region=cn-north-4 (use the account's region; e.g. cn-north-4), or the active CLI profile default is used
  3. IAM permissions — the authenticated account needs the ECS permissions listed in references/iam-policies.md (least privilege); OS reinstall/change and resize additionally need the change-operation permissions documented there
  4. Python 3.8+ with huaweicloudsdkecs (only needed for the SDK fallback path)

Quality Reporting Environment Variables

Environment Variable Required Description
SKILL_QUALITY_ENDPOINT No 上报地址,默认 https://skillsapi.developer.myhuaweicloud.com/api/quality/report
SKILL_QUALITY_GUEST_ENDPOINT No Guest (unauthenticated) report endpoint
SKILL_QUALITY_NAME No Skill name (auto-detected)
SKILL_QUALITY_DISABLE No Set 1 to disable reporting (local debugging)
SKILL_QUALITY_TIMEOUT No Report timeout in seconds (default 3)

Workflow

  1. Preflight — mandatory entry check. Run the preflight script before anything else:

    bash scripts/preflight_check.sh --region={region}
    

    It checks, in order: (1) hcloud is on PATH, (2) hcloud version runs, (3) credentials are configured, (4) the region is resolvable — then performs a read-only smoke call to prove the credentials actually work. If any check fails, stop here, print the installation / authentication guidance from references/cli-installation-guide.md, and do not attempt any ECS command. Use --skip-auth-check only for a deliberately offline run. This step exists precisely so that a missing binary or an unauthenticated account fails immediately at the entry point instead of surfacing as command not found in the middle of an operation. Exit codes: 0 = environment ready, 1 = not ready (abort the workflow), 2 = invalid usage.

  2. Classify the request — knowledge question (answer inline from the Overview/FAQ below and official docs) or an ECS operation.

  3. Resolve the target server(s) — for instance-specific operations, get server_id from the user, or list instances first (ListServersDetails) if the ID is unknown.

  4. Query operations — build the command with the requested filters and execute directly. For linked-resource

Полный SKILL.md на ClawHub

Установить huawei-cloud-ecs-lifecycle в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл huawei-cloud-ecs-lifecycle?

Manage the full lifecycle of Huawei Cloud ECS (Elastic Cloud Server) instances — create, list, show details, start, stop, reboot, rename, delete, reinstall or switch the operating system, and resize (change flavor) cloud servers — plus basic ECS knowledge Q&A. Covers CRUD, power-state orchestration (start/stop/reboot) with batch support, OS reinstall/change, flavor resize, pagination, and filters. Also queries the instance's linked cross-product resources (attached EVS volumes and snapshots, VPC/subnet topology, security groups and rules, bound EIPs). A Step 0 preflight check validates the KooCLI installation, credentials, and region before anything runs. All mutating operations require explicit user confirmation before execution. Triggers include: "创建云服务器", "删除云服务器", "启动云服务器", "停止云服务器", "重启云服务器", "修改云服务器名称", "查询云服务器列表", "查询云服务器详情", "重装操作系统", "切换操作系统", "变更云服务器规格", "查询云服务器关联资源", "查询挂载云硬盘", "云硬盘快照", "ECS生命周期管理", "ECS运维", "ECS关联资源", "create ecs", "delete ecs", "start ecs", "stop ecs", "reboot ecs", "reinstall os", "resize ecs", "change flavor", "ecs lifecycle", "linked resources", "elastic cloud server management", "云服务器增删改查".

Как установить скилл huawei-cloud-ecs-lifecycle?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл huawei-cloud-ecs-lifecycle запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить huawei-cloud-ecs-lifecycle с