huawei-cloud-asm-fuzzy-list
Query the list of Huawei Cloud ASM (Application Service Mesh) meshes belonging to the current tenant / project and fuzzy-match them by mesh name. Returns the…
от erickeyhu-hug571 установка в других каталогах
Установить huawei-cloud-asm-fuzzy-list в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Huawei Cloud ASM List Skill
Overview
This skill queries the list of ASM (Application Service Mesh) meshes under
the current Huawei Cloud tenant / project and fuzzy-matches them by mesh
name. It returns the matching meshes together with their key attributes: the
mesh name (metadata.name), mesh id (metadata.uid), status (status.phase)
and creation timestamp (metadata.creation_timestamp).
The ASM list API (GET /v1/{project_id}/meshes) returns all meshes of the
project and has no server-side name filter. Therefore the skill performs a
client-side fuzzy match: it lists all meshes and keeps only those whose
name contains the requested keyword (case-insensitive substring match).
Architecture:
Agent → huaweicloudsdkasm.v1 AsmClient.list_meshes() → Huawei Cloud ASM API (GET /v1/{project_id}/meshes)
↘ client-side fuzzy filter on metadata.name → matched meshes
API used (verified from SDK _http_info):
| Operation | SDK Method | API Path |
|---|---|---|
| List meshes | AsmClient.list_meshes() |
GET /v1/{project_id}/meshes |
Region endpoint (from SDK AsmRegion): cn-north-4 →
https://asm.cn-north-4.myhuaweicloud.com. Note: the ASM service currently
supports only the cn-north-4 region — AsmRegion.value_of() rejects any
other region id.
Applicable Scenarios:
- ASM inventory: "list all ASM meshes of this tenant" or "show me the ASM name list"
- Locate a mesh by name: "find the mesh whose name contains 'prod'"
- Daily inspection: snapshot of all meshes and their status phase
- Troubleshooting: check a mesh's status by fuzzy name lookup
能力边界(Capability Boundary): 本 Skill 仅查询 ASM 网格列表并按名称模糊匹配。不创建/删除/修改网格, 也不查询/操作网格内的服务、虚拟服务、目标规则、网关等子资源。若用户询问 "创建/删除/更新ASM网格" 或 "查询网格内资源" 等,请明确告知本 Skill 不提供 该能力。
Prerequisites
Python 3.8+ with the Huawei Cloud Python SDK installed:
pip3 install huaweicloudsdkasmAuthentication credentials —
HUAWEICLOUD_SDK_AKandHUAWEICLOUD_SDK_SKenvironment variables (or the alternateHUAWEI_ACCESS_KEY/HUAWEI_SECRET_KEY, orHWC_AK/HWC_SK). Credentials are read from the environment only — never hardcode them.IAM permissions — the account needs the mesh list permission. See
references/iam-policies.md.A region where the tenant owns ASM meshes; specify it with
AsmRegion.value_of(...).
Workflow
- Identify the intent — Confirm the user wants to list ASM meshes and, if given, the fuzzy name keyword (the substring to match).
- Confirm region — Default
cn-north-4; let the user override with another region if needed. - Run the query — Call
list_meshes()through the SDK to fetch all meshes. - Apply the fuzzy filter — If a keyword is provided, keep only meshes
whose
metadata.namecontains the keyword (case-insensitive). If no keyword is given, list all meshes. - Present the results — Show name, id, status phase and creation timestamp for each matching mesh.
- Handle errors — If the call fails:
- Region not supported (
region_id ... is not in the following supported regions): the ASM service only supportscn-north-4— use that region. - Credentials/permissions (
APIGW.0802 forbiddenor a 403): the account lacks permission — verify the IAM policy grants the mesh list action. - SDK not installed:
pip3 install huaweicloudsdkasm.
- Region not supported (
Core Commands
This skill runs through the Python SDK because the KooCLI (hcloud) does
not support the ASM service. Use the following pattern:
List all ASM meshes of the project (compact fields)
python3 -c "
import os
from huaweicloudsdkcore.auth.credentials import BasicCredentials
from huaweicloudsdkasm.v1 import AsmClient, ListMeshesRequest
from huaweicloudsdkasm.v1.region.asm_region import AsmRegion
client = AsmClient.new_builder() \\
.with_credentials(BasicCredentials(os.environ['HUAWEICLOUD_SDK_AK'],
os.environ['HUAWEICLOUD_SDK_SK'])) \\
.with_region(AsmRegion.value_of('cn-north-4')) \\
.build()
resp = client.list_meshes(ListMeshesRequest())
for m in resp.items or []:
print(m.metadata.name, m.metadata.uid, m.status.phase)
"
Fuzzy-match meshes by name (case-insensitive substring)
python3 -c "
import os
from huaweicloudsdkcore.auth.credentials import BasicCredentials
from huaweicloudsdkasm.v1 import AsmClient, ListMeshesRequest
from huaweicloudsdkasm.v1.region.asm_region import AsmRegion
keyword = 'prod' # the fuzzy name keyword
client = AsmClient.new_builder() \\
.with_credentials(BasicCredentials(os.environ['HUAWEICLOUD_SDK_AK'],
os.environ['HUAWEICLOUD_SDK_SK'])) \\
.with_region(AsmRegion.value_of('cn-north-4')) \\
.build()
resp = client.list_meshes(ListMeshesRequest())
matched = [m for m in (resp.items or []) if keyword.lower() in (m.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл huawei-cloud-asm-fuzzy-list?
Query the list of Huawei Cloud ASM (Application Service Mesh) meshes belonging to the current tenant / project and fuzzy-match them by mesh name. Returns the mesh name (metadata.name), mesh id (metadata.uid), status phase and creation timestamp for every mesh whose name contains the given keyword (case-insensitive substring match, client-side). Uses the huaweicloudsdkasm Python SDK ListMeshes call (GET /v1/{project_id}/meshes). Read-only — never creates, modifies or deletes any mesh or related resource. Use this skill whenever the user wants to list/inspect the ASM meshes of the tenant or query the ASM name list with fuzzy matching, e.g. for mesh inventory, locating a mesh by name, daily inspection or troubleshooting. Triggers include: "query ASM list", "list ASM", "ASM name list", "ASM mesh list", "模糊查询ASM", "查询ASM列表", "ASM名称", "查询ASM网格列表", "list meshes", "查询服务网格", "服务网格列表", "ASM inventory", "find ASM mesh by name".
Как установить скилл huawei-cloud-asm-fuzzy-list?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл huawei-cloud-asm-fuzzy-list запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis 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…