Command Palette

Search for a command to run...

Назад к скиллам
скилл № 72715

huawei-cloud-swr-image-management

Huawei Cloud SWR (Software Repository for Container) image lifecycle management skill using hcloud CLI. Use this skill when the user wants to: (1) manage SWR…

БесплатноБез исполняемых скриптов
huaweicloudskillот huaweicloudskill470 установок в других каталогах

Установить huawei-cloud-swr-image-management в Claude Code и Claude Desktop

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

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

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

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

Huawei Cloud SWR Image Management

Overview

This skill provides lifecycle management capabilities for Huawei Cloud SWR (Software Repository for Container) images using the hcloud CLI.

Architecture: hcloud CLI → SWR Service API → Namespace/Repository/Tag/Auth/Quota resources

  • Create and manage SWR namespaces (organizations)
  • Create and manage image repositories with public/private settings
  • Query and manage image tags/versions
  • Obtain docker login credentials (temporary and long-term)
  • Check SWR resource quotas

Typical Use Cases:

  • "Create a SWR namespace for my project"
  • "List all image repositories in namespace 'group-dev'"
  • "Query image tags for repository 'nginx' in namespace 'group-dev'"
  • "Get docker login command for SWR"
  • "Delete an old image tag to clean up storage"
  • "Check my SWR quota usage"
  • "Create a private repository for my custom image"
  • "Update repository description and visibility"

工作流

  1. ⚠️ Billing Confirmation (MANDATORY) — Before executing any operation, inform the user of potential billing implications and obtain explicit consent:
    • SWR basic service: The basic SWR service is free within quotas. Exceeding namespace or repository quotas may require upgrading to enterprise instances (which incur costs).
    • Storage costs: Image storage in SWR consumes OBS storage. Large images or many tags increase storage costs.
    • Traffic costs: Frequent image pulls/pushes, especially cross-region, may incur network traffic fees.
    • Ask the user to confirm: "Do you understand the billing implications and wish to proceed? (yes/no)"
    • Only proceed if the user explicitly confirms. If the user declines, stop and do not execute any operations.
  2. Parse user request — identify the SWR operation (namespace, repository, tag, auth, quota)
  3. Verify prerequisites — check hcloud CLI installation and credential configuration
  4. Confirm parameters — display the operation, target resources, and parameters to the user for confirmation
  5. Execute read operations — for query operations (Show, List), run hcloud CLI directly
  6. Confirm write operations — for write operations (Create, Update, Delete), prompt user confirmation before execution (see 参数确认)
  7. Parse and format output — extract relevant fields, format as table or structured output
  8. Report results — present results with context (e.g., namespace created, repository visibility changed)
  9. Suggest next actions — recommend related operations (e.g., after creating namespace, suggest creating a repository)

参数确认

All write operations (Create, Update, Delete) require explicit user confirmation before execution.

Before executing any write operation, the skill must:

  1. Display the exact hcloud command to be executed
  2. Show the target resource (namespace, repository, tag, etc.)
  3. Show the change to be applied (create, delete, visibility change)
  4. Wait for user confirmation ("yes" / "确认") before proceeding
  5. If user declines, abort the operation and return to step 1

Write operations requiring confirmation:

Operation Command Risk Level Description
Create namespace CreateNamespace Medium Creates a new SWR namespace (consumes quota)
Create repository CreateRepo Medium Creates a new image repository
Update repository UpdateRepo Medium Changes repository visibility (public/private). When changing is_public to true (private→public), an explicit security warning must be displayed: ⚠️ Public repositories allow any user to pull images, which may pose security risks. The skill must warn the user and require explicit confirmation before proceeding. If the user declines, abort the operation.
Delete namespace DeleteNamespaces High Deletes namespace AND all repos/images under it
Delete repository DeleteRepo High Deletes repository AND all image tags permanently
Delete tag DeleteRepoTag High Deletes image tag permanently (irreversible)

Prerequisites

1. hcloud CLI Requirements (MANDATORY)

  • hcloud CLI installed (version >= 7.2.2)
  • Run hcloud version to verify installation
  • First-time usage: printf "y\n" | hcloud version to accept privacy statement

2. Credential Configuration

hcloud CLI supports two credential modes via environment variables, automatically detected at runtime:

Mode A — Long-term AK/SK (permanent access):

export HUAWEI_CLOUD_AK=<your-ak>
export HUAWEI_CLOUD_SK=<your-sk>
export HUAWEI_CLOUD_REGION=cn-north-4

Mode B — Temporary AK/SK + SecurityToken (recommended for temporary or delegated access):

export HUAWEI_CLOUD_AK=<your-temp-ak>
export HUAWEI_CLOUD_SK=<your-temp-sk>
export HUAWEI_CLOUD_SECURITY_TOKEN=<your-security-token>
export HUAWEI_CLOUD_REGION=cn-north-4

When HUAWEI_CLOUD_SECURITY_TOKEN is present, hcloud CLI automatically uses temporary cre

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

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

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

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

FAQ

Что делает скилл huawei-cloud-swr-image-management?

Huawei Cloud SWR (Software Repository for Container) image lifecycle management skill using hcloud CLI. Use this skill when the user wants to: (1) manage SWR namespaces (organizations) - create/query/delete, (2) manage image repositories - create/query/update/delete, (3) manage image tags/versions - query/create/delete, (4) obtain docker login credentials for SWR, (5) check SWR quotas and usage limits. Trigger: user mentions "SWR image management", "SWR 镜像管理", "container image", "镜像仓库", "SWR 组织", "SWR namespace", "镜像版本", "docker login", "SWR 配额", "SWR tag", "容器镜像", "镜像生命周期", "SWR repository", "SWR 登录", "SWR quota"

Как установить скилл huawei-cloud-swr-image-management?

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

Скилл huawei-cloud-swr-image-management запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить huawei-cloud-swr-image-management с