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-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:
- Create an IAM user and return its identifier (
user_id/user_name). - 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 —
hcloudis 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-nameare 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-runto 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
- 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. - Python 3.8+ with the Huawei Cloud SDK — run
python3 scripts/ensure_env.pyto installhuaweicloudsdkcoreandhuaweicloudsdkiam. - 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. - IAM permissions — the least-privilege actions are listed in references/iam-policies.md.
- 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
- (Optional) prepare the environment —
python3 scripts/ensure_env.pyinstalls any missing SDK dependency. - (Optional) confirm readiness (read-only) — see the Core Commands block.
- Create the user —
create-uservalidates the name, optionally reuses / creates a group, and optionally attaches policies. - Authorize the user —
authorizeadds an existing user to a group and/or attaches policies (idempotent). - Inspect —
list-users/list-groups/list-policies/show-user. - Read the result — text by default, or
--jsonfor the full payload. - 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-
Установить 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 запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic