Huawei cloud modelarts skill
Huawei Cloud ModelArts platform integration. Modular design, OBS as primary storage support, environment variable authentication, includes pool plugin management and node configuration template queries.From its SKILL.md
npx -y skills add modelarts-agent/huawei-cloud-modelarts-skillAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
9.8 KB, ~2.2k tokens by cl100k_base, as published. Nobody here has run it
ModelArts Skill
Huawei Cloud ModelArts platform integration skill, featuring modular design, OBS as Notebook primary storage, and environment variable auto-authentication.
๐ Security Model (CRITICAL)
All credentials handled internally, never returned to LLM:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ LLM / OpenClaw โ
โ โ NEVER sees: AK, SK, Security Token, raw credentials โ
โ โ
ONLY sees: Masked status, API results, resource IDs โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ (Safe data only)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ auth_manager.py (Secure Vault) โ
โ ๐ Credentials stored in memory only โ
โ โ
Only masked data exposed externally โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ (Secure session)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Module Functions (Secure SDK Wrapper) โ
โ Unified pattern: access.sdk().execute(api_func, ...) โ
โ Returns: Standard format API responses only โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ Authentication Methods
| Mode | How It Works |
|---|---|
| Notebook Mode | Auto-detects ModelArts environment, zero configuration |
| Local Mode | Reads MODELARTS_AK/SK/PROJECT_ID/REGION environment variables |
๐ Module Routing
Use keywords to find the corresponding reference file for function index and locations.
| Keyword | Reference File |
|---------|----------------|---------------|--------|
| notebook, jupyter, image, obs, flavor, cluster, auth | references/notebook.md |
| pool, resource pool, dedicated pool, node, workload, os network, plugin | references/pool.md |
| node pool, nodepool, scale node, node group, plugin, config template | references/node_pool.md |
| train, training job, ่ฎญ็ปไปปๅก | references/train.md |
| infer1.0, inference, service, ๆง็ๆจ็ๆๅก,ๆง็ๅจ็บฟๆๅก | references/infer_v1.md |
| infer2.0, inference, service, ๆฐ็ๆจ็ๆๅก๏ผๅจ็บฟๆๅก,ๆฐ็ๅจ็บฟๆๅก | references/infer_v2.md |
| management, workspace, authmode, authorization, quota, tag, scheduled event | references/management.md |
| swr, image repo, ้ๅไปๅบ | references/swr.md |
| vpc, virtual private, subnet, security group, ่ๆ็งๆไบ | references/vpc.md |
| kms, key management, ๅฏ้ฅ็ฎก็ | references/kms.md |
| liteserver, dev server, hyper cluster, hyperinstance, eip, roce | references/liteserver.md |
| common, auth, api helper, format result, decorator | references/common.md |
๐ฆ Module Architecture
modelarts/
โโโ scripts/
โ โโโ common_module/ # ่ทจๆจกๅๅ
ฑไบซๅบ็ก่ฎพๆฝ
โ โ โโโ __init__.py
โ โ โโโ _bootstrap.py # ็ปไธๅผๅฏผ
โ โ โโโ auth.py # ่ฎค่ฏ็ฎก็
โ โ โโโ api_helper.py # API ่ฐ็จๅฐ่ฃ
โ โ โโโ result.py # ่ฟๅๆ ผๅผ็ปไธ
โ โ
โ โโโ notebook_module/ # Notebook & ้ๅ็ฎก็
โ โโโ pool_module/ # ่ตๆบๆฑ ็ฎก็
โ โโโ node_pool_module/ # ่็นๆฑ ็ฎก็
โ โโโ train_module/ # ่ฎญ็ปไปปๅก็ฎก็
โ โโโ infer_v1_module/ # ๆง็ๆจ็ๆๅก็ฎก็
โ โโโ infer_v2_module/ # ๆฐ็ๆจ็ๆๅก็ฎก็
โ โโโ management_module/ # ๅนณๅฐ็ฎก็: ๅทฅไฝ็ฉบ้ด/ๆๆ/้
้ข/ไบไปถ
โ โโโ swr_module/ # SWR ้ๅไปๅบ
โ โโโ vpc_module/ # VPC ่ๆ็งๆไบ
โ โโโ kms_module/ # KMS ๅฏ้ฅ็ฎก็ๆๅก
โ โโโ liteserver_module/ # Lite Server ่ฝป้่ฎก็ฎ่็น็ฎก็ (ๅซ HPS/่ถ
่็นๅฎๆดๆฏๆ)
โ โโโ __pycache__/
โ
โโโ references/
โโโ notebook.md
โโโ pool.md
โโโ node_pool.md
โโโ train.md
โโโ infer_v1.md
โโโ infer_v2.md
โโโ management.md
โโโ swr.md
โโโ vpc.md
โโโ kms.md
โโโ common.md
โ Design Features
- Modular Design - One file per function, clean structure, easy to maintain
- OBS as Primary Storage - Notebook can use OBS buckets directly as root filesystem
- OBS Bucket Management - Built-in create/delete/list OBS bucket functions
- Environment Variable Auth - Zero configuration for local/CI environments
- Unified API Pattern - All functions use consistent calling pattern
- Clean Deliverables - No temp scripts, no debug code, no redundant files
- Node Pool Management - Independent node pool lifecycle management
- Plugin Management - Resource pool plugin listing and creation (ListPoolPlugins, CreatePoolPlugin)
- Node Configuration Template Query - Query node configuration template details (ShowNodeConfigTemplate)
- Common Infrastructure - Extracted shared infrastructure, improved code reuse
- Training Job Management - Full lifecycle: create/list/stop/delete training jobs
- Inference Service Management - Old v1 API: create/list/start/stop/update/delete inference services
- Workspace & Authorization - Workspace CRUD, auth mode, IAM authorization, quotas, scheduled events
- SWR Image Repository - Query training images from SWR
- VPC Virtual Private Cloud - Query VPCs, Subnets, Security Groups from Huawei Cloud VPC service
- KMS Key Management Service - Query SSH keypairs from Huawei Cloud KMS
- Lite Server Management - Full lifecycle management of lightweight compute nodes (51 APIs covering Chapter 22)
- Hyper Cluster Management - Create, list, delete hyper clusters for high-performance computing
- Hyperinstance Operations - Scale, start, stop, and manage hyper instances
- Batch Operations - Bulk actions on multiple Lite Server instances (start/stop/reboot/changeOS/reinstallOS/delete)
- Job Management - Create, list, delete jobs on Lite Server instances
๐ฏ Quick Reference by Use Case
| What You Want To Do | Go To Module |
|---|---|
| Start/Stop/Create/Delete Notebook | notebook_module |
| Save Notebook to Image | notebook_module |
| Attach/Detach OBS Storage | notebook_module |
| Create/Delete OBS Buckets | notebook_module |
| Create/Delete Dedicated Resource Pool | pool_module |
| Batch Node Operations (Reboot/Delete/Lock/Resize) | pool_module |
| Scale Node Pool Size | node_pool_module |
| Create Additional Node Pools (different flavors) | node_pool_module |
| List Resource Pool Plugins (ListPoolPlugins) | node_pool_module |
| Create Plugin in Resource Pool (CreatePoolPlugin) | node_pool_module |
| Query Node Configuration Template (ShowNodeConfigTemplate) | node_pool_module |
| Create/Stop/Delete Training Job | train_module |
| List Training Jobs (running/pending/completed) | train_module |
| Create/Start/Stop/Delete Inference Service | infer_v1_module |
| List/Get Inference Service Details | infer_v1_module |
| List Models (custom/subscription) | infer_v1_module |
| Create/Start/Stop/Delete Inference Service (ๆฐ็) | infer_v2_module |
| List/Get Inference Service Details (ๆฐ็) | infer_v2_module |
| Query Dedicated Pools & Flavors (ๆฐ็) | infer_v2_module |
| Get Service Exec Login Info (ๆฐ็) | infer_v2_module |
| Batch Delete Inference Services (ๆฐ็) | infer_v2_module |
| Service Version Management (ๆฐ็) | infer_v2_module |
| Service Events & Health Monitoring (ๆฐ็) | infer_v2_module |
| Region Detection & Consistency (ๆฐ็) | infer_v2_module |
| Create/Update/Delete Workspace | management_module |
| Manage Authorization (add/delete/list) | management_module |
| Query/Update Auth Mode | management_module |
| List Quotas & Scheduled Events | management_module |
| Query SWR Training Images | swr_module |
| Query VPC/Subnet/SecurityGroup | vpc_module |
| Query SSH Keypairs | kms_module |
| Create/Start/Stop Lite Server Instances | liteserver_module |
| Manage Hyper Clusters & Hyperinstances | liteserver_module |
| Batch Operations on Lite Servers | liteserver_module |
| Attach/Detach Volumes & EIPs | liteserver_module |
| Query Flavors & Images for Lite Server | liteserver_module |
| Create/Manage Jobs on Lite Server | liteserver_module |
| Infrastructure / Internal Tools | common_module |
What ships with it: 231 files
512.1 KB alongside SKILL.md, 218 of them executable
references/
- common.md863 B
- infer_v1.md3.6 KB
- infer_v2.md3.9 KB
- kms.md1.7 KB
- liteserver.md10.1 KB
- management.md2.1 KB
- node_pool.md1.4 KB
- notebook.md3.2 KB
- pool.md3.2 KB
- swr.md279 B
- train.md2.4 KB
- vpc.md3.7 KB
scripts/
- auth_manager.pyruns14.4 KB
- common_module/api_helper.pyruns3.4 KB
- common_module/auth.pyruns1.1 KB
- common_module/__init__.pyruns552 B
- common_module/result.pyruns532 B
- infer_v1_module/_bootstrap.pyruns893 B
- infer_v1_module/create_service.pyruns3.5 KB
- infer_v1_module/create_service_tags.pyruns1.5 KB
- infer_v1_module/delete_service.pyruns5.1 KB
- infer_v1_module/delete_service_tags.pyruns1.4 KB
- infer_v1_module/full_update_service.pyruns1.3 KB
- infer_v1_module/GetApiEndpoint.pyruns1.2 KB
- infer_v1_module/get_dedicated_pool.pyruns4.2 KB
- infer_v1_module/get_dedicated_spec.pyruns2.3 KB
- infer_v1_module/get_model.pyruns5.3 KB
- infer_v1_module/get_public_spec.pyruns1.2 KB
- infer_v1_module/get_service_events.pyruns1.4 KB
- infer_v1_module/get_service_internal_channel_info.pyruns1.4 KB
- infer_v1_module/get_service.pyruns1.2 KB
- infer_v1_module/get_services_count.pyruns1.2 KB
- infer_v1_module/get_service_specifications.pyruns1.1 KB
- infer_v1_module/get_service_tags.pyruns1.4 KB
- infer_v1_module/get_token_headers.pyruns1.2 KB
- infer_v1_module/__init__.pyruns3.1 KB
- infer_v1_module/list_services.pyruns1.5 KB
- infer_v1_module/make_token_auth_request.pyruns1.2 KB
- infer_v1_module/parse_api_response.pyruns1.2 KB
- README.md31 B
191 more files not listed here. See all 231 in the repository.