Command Palette

Search for a command to run...

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

huawei-cloud-iam-manage

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

Manages Huawei Cloud IAM identity configuration for users, groups, policies, agencies and permanent AK/SK. Every write (R2/R1) is previewed and explicitly…

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

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

Huawei Cloud IAM Management

STOP - Do not answer from general knowledge. Follow the procedure below.

Overview

This skill provides write-capable management of Huawei Cloud IAM identity configuration through the IAM service of the hcloud CLI (advanced operation reference: IAM --help). It is the manage companion to the read-only IAM query capability (a query+manage pair for IAM security).

It covers 22 huawei_* actions in four capability groups:

Capability Risk level Actions
Query (read-only pre-checks) R3 — run directly huawei_list_iam_users, huawei_list_iam_groups, huawei_list_iam_policies, huawei_list_iam_agencies, huawei_list_iam_custom_policies
Diagnose / Analyze (read-only) R3 — run directly huawei_analyze_iam_least_privilege, huawei_analyze_iam_password_compliance
Manage (create/configure) R2 — preview + confirm huawei_create_iam_user, huawei_create_iam_group, huawei_attach_iam_policy, huawei_detach_iam_policy, huawei_create_iam_agency, huawei_create_iam_ak_sk, huawei_create_iam_custom_policy, huawei_config_iam_login
Manage (delete) R1 — preview + confirm + impact list huawei_delete_iam_user, huawei_delete_iam_group, huawei_delete_iam_agency, huawei_delete_iam_ak_sk, huawei_delete_iam_custom_policy
Provision (Python SDK, no hcloud) R2 — preview + confirm huawei_add_iam_user_to_group, huawei_provision_iam_user

The two Provision actions are the only actions in this skill that do not go through the hcloud CLI: they run the bundled Python SDK scripts (scripts/iam_user_provision.py) signed with AK/SK or temporary AK/SK (security token). All other actions keep using hcloud IAM.

Scope boundaries:

  • ✅ List users/groups/policies/agencies/custom policies (R3, read-only, run directly)
  • ✅ Analyze least-privilege and domain password policy compliance (R3, read-only)
  • ✅ Create users, groups, agencies, custom policies, permanent AK/SK; attach/detach policies; configure login profile / password / login protection (R2, preview + confirm)
  • ✅ Delete users, groups, agencies, permanent AK/SK, custom policies (R1, preview + confirm)
  • ✅ Add an existing user to a user group, and one-shot provision (create user → create group → add to group) via pure Python SDK with --dry-run / --confirm (R2, no hcloud dependency)
  • ❌ NEVER modify a system (predefined) policy — only custom policies are manageable
  • ❌ NEVER disable the root/enterprise administrator account, or take any irreversible action without explicit confirmation
  • ❌ NEVER write the Secret Access Key (SK), passwords, or any credential value to logs, files, persistent storage, tool intermediates, or any later conversation turn — the SK may only appear in the final reply, shown once to the user

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

Critical Warnings

Trap Why
SK 仅返回一次 — The Secret Access Key is returned exactly once by CreatePermanentAccessKey. Show it to the user exactly once, in the final reply. It must not be written to logs, files, persistent storage, tool-call inputs/outputs, or any later conversation turn. A lost SK cannot be retrieved; the key must be deleted and re-created.
Passwords are Sensitive — --password in login-profile operations must never be echoed, logged, or stored. Credential leakage.
Granting high-authority policies (e.g. AdministratorAccess, SysAdm*, FullAccess) requires an explicit warning before confirmation. Least-privilege principle.
Creating an agency for an external account authorizes that account to assume the rights granted by the agency — show the trusted account (trust_domain_name) and warn before confirmation. Cross-account risk.
Delete is irreversible — deleting a user permanently removes the IAM user and its access keys; deleting an agency revokes delegated access; deleting a custom policy breaks any attachments. Data/access loss.
Verifying by name first — always run the read-only pre-check (list_users, list_groups, list_policies, list_agencies) before creating to avoid duplicates, and re-read after write to confirm. Idempotency + accuracy.

Prerequisites

  1. hcloud CLI (KooCLI 7.2.x or later) installed and authenticated.
    • Recommended authentication — Mode B: local hcloud profile via the configure wizard: run hcloud configure set (interactive; credentials are prompted and never passed on the command line), then hcloud configure list must show a valid profile with mode AKSK and a real accessKeyId.
    • AK/SK environment variables are NOT a supported credential path for KooCLI — KooCLI reads its configuration from the OS user home directory (resolved from the OS user home, not $HOME)
Полный SKILL.md на ClawHub

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

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

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

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

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

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

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

FAQ

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

Manages Huawei Cloud IAM identity configuration for users, groups, policies, agencies and permanent AK/SK. Every write (R2/R1) is previewed and explicitly confirmed; deletes enumerate impacted resources first; high-authority grants and external-account agencies show warnings; the Secret Access Key is returned once and never persisted or logged. Provides 22 huawei_* actions: huawei_list_iam_users, huawei_list_iam_groups, huawei_list_iam_policies, huawei_list_iam_agencies, huawei_list_iam_custom_policies, huawei_analyze_iam_least_privilege, huawei_analyze_iam_password_compliance, huawei_create_iam_user, huawei_create_iam_group, huawei_attach_iam_policy, huawei_detach_iam_policy, huawei_create_iam_agency, huawei_create_iam_ak_sk, huawei_create_iam_custom_policy, huawei_config_iam_login, huawei_delete_iam_user, huawei_delete_iam_group, huawei_delete_iam_agency, huawei_delete_iam_ak_sk, huawei_delete_iam_custom_policy, huawei_add_iam_user_to_group, huawei_provision_iam_user. The last two (add-user-to-group / one-shot provision) run as pure Python SDK scripts signed with AK/SK or temporary AK/SK (security token); they need no hcloud/KooCLI, are idempotent (409 reuse / already_member), support --dry-run and --confirm, and never print credentials. Triggers include: IAM, 用户, 用户组, 策略, 委托, 权限, AK/SK, MFA, 创建用户, 删除用户, 创建子用户并加入用户组, 一键开通 IAM 用户, 用户加入用户组, AddUserToGroupV5, provision IAM user, policy, agency, delete.

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

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

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

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

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

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