huawei-cloud-ascend-command
БесплатноЗапускает вложенные скриптыНе проверенHuawei Ascend NPU natural language management skill, supporting both local direct connection and SSH remote modes. Provides comprehensive npu-smi command…
от huaweicloudskill490 установок в других каталогахОб этом скилле
Natural language command translation and execution for Huawei Ascend NPU devices: device queries, configuration management, firmware upgrade, vNPU virtualization, certificate management, and compute power testing.
Overview
Translates natural language requests into npu-smi / ascend-dmi commands on Huawei Ascend NPU devices, over either a local direct connection or an SSH remote session. This is a stateless, operational skill: it stores no credentials, device state or conversation history between invocations.
Capabilities: device queries (health, temperature, power, HBM, ECC, topology) · configuration (ECC, fan mode/speed) · firmware version / upgrade / activate / rollback · vNPU virtualization · TLS certificate management · FLOPS testing.
Orchestration: the Agent invokes this skill alongside others when a task needs them — for example a general-purpose SSH remote-operations skill (disk, Docker, logs, processes) or a model-deployment skill whose NPU state is monitored after deploy. Skills never call each other directly; the Agent selects and chains them from user intent. See references/architecture.md.
Prerequisites
| Requirement | Detail |
|---|---|
| Python | 3.8+ (python3 --version) |
| Local mode | npu-smi (CANN) on the local machine; ascend-dmi additionally for FLOPS tests |
| SSH remote mode | paramiko — install with pip install -r requirements.txt (paramiko>=2.11,<4) |
| Target host | Reachable network, running sshd, password authentication enabled |
- Local mode needs no Python package beyond the standard library.
- SSH mode needs
paramiko; it is imported lazily, so local mode still works when it is absent. - The target machine must have CANN/
npu-smiinstalled — runnpu-smi infothere once to confirm. - Security: never read, echo or print password values; never ask the user to paste a password into the conversation; read credentials only from the
--passwordcommand-line argument.
Core Workflow
- Parse the user intent and normalize Chinese trigger words (触发词: 温度 / 功耗 / 显存 / 算力 / 固件 / 虚拟化 / 风扇 / 启用 / 禁用 …) to English.
- Direct passthrough first: if the input starts with
npu-smi, execute it verbatim — this precedes natural-language routing, sonpu-smi info -lkeeps its-l. - Route the natural-language request to a handler and resolve the device target (
NPU0 Chip0), defaulting to NPU 0 / Chip 0. - Read-only queries execute immediately and are formatted for the user.
- Write operations print a confirmation gate and wait for
confirm/确认(orcancel/取消) before executing — see Parameter Confirmation. - Any failure returns a structured
[ERROR] NPU-*response; a Python traceback is never shown.
python3 scripts/main.py --command "NPU health check" # one-shot
python3 scripts/main.py --command "查看NPU温度" # Chinese trigger words
python3 scripts/main.py --command "NPU list" --host <ip> --user root --password <pwd> # SSH remote
python3 scripts/main.py # interactive
Core Commands
| Intent | Example input | Underlying command |
|---|---|---|
| List devices | NPU list |
npu-smi info -l |
| Full / card info | NPU info |
npu-smi info (full NPU information) |
| Card / chip mapping | NPU chip mapping, chip list |
npu-smi info -m (card-to-chip mapping) |
| Direct passthrough | any input starting with npu-smi, e.g. npu-smi info -t board |
executed verbatim, exactly as typed — passthrough takes precedence over natural-language routing |
| Health check | NPU health check |
npu-smi info -t health -i 0 |
| Temperature / power / memory / usage | NPU temperature, 功耗, 显存 |
npu-smi info -t temp | power | memory | usages -i 0 -c 0 |
| ECC direction (mandatory) | set ECC enable, disable ECC |
npu-smi set -t ecc-enable -i 0 -c 0 -d 1 | 0 (confirmation) |
| Fan mode | set fan auto, set fan manual |
npu-smi set -t pwm-mode -d 1 | 0 (confirmation) |
| Fan speed | set fan speed 70 |
npu-smi set -t pwm-duty-ratio -d 70 (confirmation) |
| Firmware version / upload | firmware version, upgrade firmware |
npu-smi upgrade -b mcu -i 0 / upgrade -t mcu -i 0 -f <file>.hpm (confirmation) |
| Firmware activate | activate firmware, activate upgrade mcu NPU0 |
npu-smi upgrade -a <component> -i 0 (confirmation) |
| Firmware rollback | rollback firmware |
npu-smi upgrade -a rollback -i <npu_id> (confirmation) |
| vNPU | vNPU info, template info, create vNPU, destroy vNPU |
npu-smi info -t info-vnpu | template-info …, set -t create-vnpu | destroy-vnpu … (confirmation) |
| Certificate | certificate info, cert expiration |
npu-smi info -t tls-cert | tls-cert-period -i 0 -c 0 |
| FLOPS | FLOPS test, FP32 FLOPS, `all d |
Установить huawei-cloud-ascend-command в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
python3bashsshFAQ
Что делает скилл huawei-cloud-ascend-command?
Huawei Ascend NPU natural language management skill, supporting both local direct connection and SSH remote modes. Provides comprehensive npu-smi command capabilities including device queries, configuration management, firmware upgrade, vNPU virtualization, certificate management, and compute power testing (FLOPS). Enables remote management and monitoring of Ascend NPU devices with real-time metrics tracking. Use this skill when the user wants to: (1) query NPU device status and health, (2) monitor temperature, power, memory/HBM utilization, (3) configure ECC settings and fan modes, (4) perform firmware upgrades or rollbacks, (5) manage vNPU virtualization, (6) run compute power tests, (7) check certificate information. Trigger: user mentions 'npu', 'ascend', 'NPU', 'Ascend', 'temperature', 'power', 'HBM', 'firmware', 'upgrade', 'vNPU', 'virtualization', 'certificate', 'FLOPS', 'compute', 'health', 'memory', 'utilization', 'ECC', 'fan', '昇腾', '昇腾卡', '昇腾状态', '显存', '算力', '设备查询', 'NPU监控'
Как установить скилл huawei-cloud-ascend-command?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл huawei-cloud-ascend-command запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub