Command Palette

Search for a command to run...

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

huawei-cloud-architecture-resource-archive

Huawei Cloud full-resource query and resource marker table generation toolchain. Driven by KooCLI (hcloud), covering 40+ cloud services and 80+ resource types…

БесплатноЗапускает вложенные скрипты
huaweicloudskillот huaweicloudskill130 установок в других каталогах

Установить huawei-cloud-architecture-resource-archive в Claude Code и Claude Desktop

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

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

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

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

Huawei Cloud Full Resource Query & Marker Table Generation

1. Overview

This skill is a Huawei Cloud full-resource query toolchain. Driven by KooCLI (hcloud), it automatically queries resources across all regions and all key services of a Huawei Cloud account, then generates the marker table required for resource architecture topology.

Architecture

run_pipeline.py (one-click entry)
    ├── Step 1: check_koocli.py        → Environment check / install KooCLI + dependencies
    ├── Step 2: query_resources.py     → Full-region × 40+ services concurrent query
    ├── Step 3: convert_to_tsc_json.py → Convert to marker-table compatible JSON
    └── Step 4: generate_marker_table.py → Generate marker table Excel + store JSON

Involved cloud services: ECS, VPC, EIP, ELB, NAT, DNS, OBS, RDS, DCS, DDS, CCE, WAF, CDN, BMS, CCI, SFS, CSS, MRS, DLI, CloudTable, BGP and 40+ service modules in total. The full registered module list is in references/service-coverage.md.

Use Cases

  • Full cloud resource inventory and archival
  • Resource architecture topology data collection
  • Automatic resource marker table generation
  • Cross-account resource reconciliation and gap analysis
  • Pre-migration resource inventory

Typical User Requests

  • "Query all resources under my Huawei Cloud account"
  • "Generate the resource marker table"
  • "Inventory ECS, VPC, RDS resources across all regions"
  • "Export the resource list to Excel"

2. Prerequisites

KooCLI Version

# Verify KooCLI installation
hcloud version
# Requires version >= 7.2.2

If not installed, see CLI Installation Guide.

Python Version

python3 --version
# Requires Python >= 3.8

Python Dependencies

All third-party Python dependencies are checked and auto-installed in Step 1 (check_koocli.py):

Package pip name Used by Blocking?
kubernetes kubernetes CCE K8s sub-resource direct connection (query_cce_k8s.py) No
huaweicloudsdkcore huaweicloudsdkcore CCE proxy fallback for K8s sub-resources (query_cce_k8s.py) No
openpyxl openpyxl Marker table Excel generation (generate_marker_table.py, Step 4) Yes
requests requests CCE proxy HTTP calls (query_cce_k8s.py) No
urllib3 urllib3 SSL warning suppression in K8s query (query_cce_k8s.py) No
yaml pyyaml Kubeconfig YAML parsing (query_cce_k8s.py) No

The dependency list is declared in PYTHON_DEPS inside check_koocli.py; the checker also scans all scripts via AST to detect any undeclared third-party imports.

Authentication

Recommended: configure AK/SK via environment variables.

export HW_ACCESS_KEY=<your-ak>
export HW_SECRET_KEY=<your-sk>

Or via KooCLI config file:

hcloud configure set --cli-access-key=<AK> --cli-secret-key=<SK>
hcloud configure set --cli-region=cn-north-4

⚠️ Never hardcode AK/SK values in conversations or scripts.

IAM Permissions

This skill only requires read-only permissions. See IAM Policies for the full list.

Permission failure handling flow:

  1. When a command fails due to permission errors, read references/iam-policies.md
  2. Show the user the required permission list and policy JSON
  3. Guide the user to create a custom policy and grant it in the IAM console
  4. Pause execution and wait for the user to confirm the permission has been granted

3. KooCLI Command Format Standard

# Standard format
hcloud <SERVICE> <Operation> --param1=value1 --cli-region=<region>

# Example: list ECS instances
hcloud ECS ListServersDetails --cli-region=cn-north-4

# Example: list VPC security groups (v3 operation)
hcloud VPC ListSecurityGroups/v3 --cli-region=cn-north-4

# Example: list IAM users (Keystone prefix)
hcloud IAM KeystoneListUsers --cli-region=cn-north-4

Special rules: some VPC/ELB operations require a /v3 suffix; IAM operations require the Keystone prefix; EIP is an independent service. See KooCLI Command Reference.

4. Workflow

run_pipeline.py automatically executes the following 4 steps in order, aborting on any failure:

Step Script Description
1 check_koocli.py Check/install KooCLI + AK/SK config + kubernetes client
2 query_resources.py Full-region (auto discovery) × 40+ services concurrent query, outputs raw JSON
3 convert_to_tsc_json.py Convert to marker-table compatible JSON
4 generate_marker_table.py Generate 关键资源标记表.xlsx + _resource_store.json
# One-click full pipeline (recommended)
python scripts/run_pipeline.py --account <account-name>

# Specify regions
python scripts/run_pipeline.py --account <account-name> --regions cn-north-4,cn-east-3

# Query only some services
python scripts/run_pipeline.py --account <account-name> --s
Полный SKILL.md на ClawHub

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

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

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

FAQ

Что делает скилл huawei-cloud-architecture-resource-archive?

Huawei Cloud full-resource query and resource marker table generation toolchain. Driven by KooCLI (hcloud), covering 40+ cloud services and 80+ resource types (compute/storage/network/database/security/CDN etc.), with full-region auto-discovery concurrent query, format conversion, and one-click marker table generation. Scenarios: cloud resource inventory, resource architecture topology data collection, resource marker table generation, cross-account resource reconciliation. Trigger words: 资源查询, 全量查询, 资源盘点, resource query, resource archive, 资源标记表, marker table, KooCLI, hcloud, 资源归档

Как установить скилл huawei-cloud-architecture-resource-archive?

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

Скилл huawei-cloud-architecture-resource-archive запускает скрипты?

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

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

Сравнить huawei-cloud-architecture-resource-archive с