Command Palette

Search for a command to run...

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

huawei-cloud-iam-user-manage

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

1. Creates Huawei Cloud IAM users and authorizes them through the IAM v5 OpenAPI: create a user (name / description / enabled), create or reuse a user group…

wlc-devот wlc-dev206 установок в других каталогах

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

Huawei Cloud IAM User Manage

Overview

Create Huawei Cloud IAM users and authorize them. The skill wraps the IAM v5 identity OpenAPI and can be driven either through KooCLI (hcloud) or the official Python SDK. It covers the two outcomes the user cares about:

  1. Create an IAM user and return its identifier (user_id / user_name).
  2. Authorize the user by adding it to a user group and/or attaching one or more identity policies.

Architecture:

agent → python3 scripts/iam_user_manage.py <command>
      → validation (name / description / id rules)
      → execution:  hcloud IAM <Operation> --cli-region=<region>  (CLI, primary)
                  → huaweicloudsdkiam v5 (SDK fallback)
      → normalized result → text / JSON stdout

Key properties:

  • CLI first, SDK fallback — hcloud is attempted first; when it is absent or a call fails to construct, the skill falls back to the official SDK.
  • Read-only name resolution — --group-name / --policy-name are resolved to ids with read-only list calls, so users do not need to look up ids by hand.
  • Idempotent — an existing user or group is reused; a duplicate membership or attachment is reported (already_member / already_attached) rather than raising an error.
  • Write confirmation — every mutating command requires --confirm (or --dry-run to preview the plan first).
  • Capability boundary — this skill never deletes or disables a user, never deletes a group, and never touches AK/SK, password policy, MFA or agencies.

Dependency: Quality telemetry is collected automatically via skill-quality-cli (installed by scripts/ensure_cli.sh if absent).

IAM v5 Operations

All REST paths below are the SDK _http_info resource_path verbatim.

Feature KooCLI operation SDK method REST path
Create user CreateUserV5 create_user_v5 POST /v5/users
List users ListUsersV5 list_users_v5 GET /v5/users
Show user ShowUserV5 show_user_v5 GET /v5/users/{user_id}
Create group CreateGroupV5 create_group_v5 POST /v5/groups
List groups ListGroupsV5 list_groups_v5 GET /v5/groups
Add user to group AddUserToGroupV5 add_user_to_group_v5 POST /v5/groups/{group_id}/add-user
Attach user policy AttachUserPolicyV5 attach_user_policy_v5 POST /v5/policies/{policy_id}/attach-user
List policies ListPoliciesV5 list_policies_v5 GET /v5/policies
List attached user policies ListAttachedUserPoliciesV5 list_attached_user_policies_v5 GET /v5/users/{user_id}/attached-policies

Request bodies (verified against the SDK models):

  • CreateUserReqBody: name (1-64; letters/digits/_/-/.; first char not a digit), description (0-255; forbids @ # % & < > \ $ ^ *), enabled (bool).
  • CreateGroupReqBody: group_name (1-128), description (0-255).
  • AddUserToGroupReqBody: user_id. AttachUserPolicyReqBody: user_id.

Prerequisites

  1. KooCLI (hcloud) — optional primary execution path; install and authenticate out-of-band. See references/cli-installation-guide.md. When absent, the SDK fallback is used.
  2. Python 3.8+ with the Huawei Cloud SDK — run python3 scripts/ensure_env.py to install huaweicloudsdkcore and huaweicloudsdkiam.
  3. Credentials configured out-of-band — the CLI reads the active hcloud profile; the SDK fallback reads AK/SK from whitelisted environment variables (HUAWEICLOUD_SDK_AK / HUAWEICLOUD_SDK_SK, HUAWEI_*, HW_*, HWC_*). Never paste AK/SK into chat; the script never reads, echoes or stores secrets.
  4. IAM permissions — the least-privilege actions are listed in references/iam-policies.md.
  5. Outbound HTTPS access to iam.<region>.myhuaweicloud.com.
  • skill-quality-cli — ensured by bash scripts/ensure_cli.sh (idempotent, skips if present)
    • Upgrade: run skill-quality-cli upgrade manually (no auto-upgrade)
    • Disable telemetry report: set SKILL_QUALITY_REPORT=0

Workflow

  1. (Optional) prepare the environment — python3 scripts/ensure_env.py installs any missing SDK dependency.
  2. (Optional) confirm readiness (read-only) — see the Core Commands block.
  3. Create the user — create-user validates the name, optionally reuses / creates a group, and optionally attaches policies.
  4. Authorize the user — authorize adds an existing user to a group and/or attaches policies (idempotent).
  5. Inspect — list-users / list-groups / list-policies / show-user.
  6. Read the result — text by default, or --json for the full payload.
  7. Handle errors per the Error Handling table below.

Core Commands

**⚠️ Mandatory: every hcloud command in this skill MUST be wrapped with skill-quality-cli run --skill-name huawei-cloud-

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

Установить huawei-cloud-iam-user-manage в Claude Code и Claude Desktop

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

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

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

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

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

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

FAQ

Что делает скилл huawei-cloud-iam-user-manage?

1. Creates Huawei Cloud IAM users and authorizes them through the IAM v5 OpenAPI: create a user (name / description / enabled), create or reuse a user group, add the user to the group, and attach identity policies. 2. Execution order: KooCLI (`hcloud IAM <Operation>`) first, then the official `huaweicloudsdkiam` v5 Python SDK as a transparent fallback. Read-only lookups (list users / groups / policies) support name-to-id resolution. 3. Idempotent by design: an existing user/group is reused and an already-existing membership or attachment is reported instead of failing. 4. Explicitly OUT OF SCOPE: deleting or disabling users, deleting groups, AK/SK rotation, password policy, MFA, agencies/delegation. 5. Triggers include: "创建IAM用户", "IAM用户授权", "给用户授权", "关联用户组", "绑定权限策略", "IAM user create", "create IAM user", "authorize IAM user", "add user to group", "attach policy to user", "iam user manage".

Как установить скилл huawei-cloud-iam-user-manage?

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

Скилл huawei-cloud-iam-user-manage запускает скрипты?

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

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

Сравнить huawei-cloud-iam-user-manage с