huawei-cloud-dws-dymem-diag
DWS cluster memory high root cause diagnosis skill, based on KooCLI v3.2.0+ and DWS Autopilot MCP Server. Automatically collects memory metrics, analyzes root…
от huaweicloudskill514 установок в других каталогах
Установить huawei-cloud-dws-dymem-diag в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Huawei Cloud DWS Memory High Diagnosis Skill
Overview
This skill is dedicated to DWS cluster memory high root cause diagnosis. When a cluster triggers a memory usage too high alarm, it automatically collects metric data, analyzes root causes (customer-side / system-side), and outputs a standardized diagnosis report.
Architecture: KooCLI (hcloud) → DWS Autopilot API → Cluster monitoring metrics; MCP Server (dws_autopilot) → Fallback channel for the same API
Applicable Scenarios:
- DWS cluster memory usage too high alarm
- Memory insufficient / OOM investigation
- User-initiated memory diagnosis request
Typical Use Cases:
- "My DWS cluster memory usage is very high, help diagnose"
- "Received a memory alarm, cluster ID is xxx, help analyze the cause"
- "DWS cluster has OOM, see what's causing it"
Important Rules: All diagnosis conclusions must come from actual tool return results. Fabricating or assuming values is prohibited. Output only contains the diagnosis report; adding remediation suggestions, outputting SQL optimization statements, and using emoji are prohibited.
Background Knowledge: Memory usage formulas, CN/DN instance distinction, memory_pool analysis, memory thresholds, and important principles are documented in Memory Background Knowledge. Must read before diagnosis.
Out of Scope
This skill only diagnoses DWS cluster memory high issues. The following cases are out of scope and must be rejected:
- Non-DWS services: ECS, RDS, CSS, GaussDB, and any other Huawei Cloud service. If the resource does not belong to DWS, do not diagnose.
- Non-memory issues: CPU usage, disk usage, network latency, IO bottleneck, etc. A bare "DWS" mention without a memory-related issue must not activate this skill.
- Remediation actions: Do not kill SQL, modify parameters, restart instances, or perform any other write/remediation operations. Diagnosis and reporting only.
Prerequisites
1. CLI Requirements
- KooCLI (hcloud) >= 3.2.0
- Verify installation:
hcloud version - If not installed or version too low, see CLI Installation Guide
2. MCP Server Configuration (Fallback)
- When KooCLI is unavailable, use MCP Server as an alternative
- See MCP Installation Guide
3. Authentication Configuration
- Valid Huawei Cloud credentials (AK/SK mode or IAM Token)
- Security Rules:
- Never expose AK/SK values in conversations or commands
- Never ask users to input AK/SK directly in conversation
- Only use
hcloud configure listto check credential status
4. IAM Permission Requirements
- dws:clusters:get, dws:clusters:list
- dws:metricData:get, dws:hostOverview:get
- See IAM Policies
KooCLI Command Format Standard
Command Format
# Query metric data
hcloud DWS ListMetricsData --cli-region=<region> --cluster_id=<id> --metric_name=<name> --project_id=<pid> --offset=0 --limit=200 --from=<from_ts> --to=<to_ts>
# Query host information
hcloud DWS ListHostOverview --cli-region=<region> --project_id=<pid> --offset=0 --limit=200
Note: For ListHostOverview, --offset and --limit are required parameters — always include both in the command (e.g., --offset=0 --limit=200).
Tool Selection Strategy
Choose between KooCLI and MCP Server, preferring KooCLI. Step 0 checks hcloud availability:
- hcloud available (version >= 3.2.0) → Use KooCLI command line calls for subsequent steps
- hcloud unavailable (not installed or version < 3.2.0) → Use MCP Server tool calls for subsequent steps
Fallback and Termination Strategy:
- After selecting hcloud, if the first call returns
NETWORK_ERROR(connection timeout, network unreachable, etc.), automatically fall back to MCP Server and use MCP mode for all subsequent steps - If hcloud returns NETWORK_ERROR and MCP Server is also unavailable (not configured or returns authentication/connection error), terminate this skill and output:
KooCLI network unavailable and MCP Server connection failed. Please check KooCLI network configuration or DWS Autopilot MCP Server configuration and retry - After selecting MCP Server, if the first call returns an authentication error (e.g., 401 Unauthorized), do not fall back to hcloud. Terminate this skill directly and output:
MCP Server authentication failed. Please check DWS Autopilot MCP Server authentication configuration and retry - hcloud call failures that are not NETWORK_ERROR (e.g., parameter errors, insufficient permissions) do not trigger fallback; follow existing retry logic
- Cluster ID validity: If any call returns error code
DWS.13026(越权操作,集群校验不通过) orDWS.13032(集群id参数非法,请检查输入), the provided cluster_id is invalid or does not exist. Terminate immediately and output:Cluster ID <cluster_id> is invalid or does not exist. Please verify the cluster ID in DWS console.Do
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
dws_autopilot_get_clusters - 02
dws_autopilot_get_metric - 03
dws_autopilot_get_hosts
FAQ
Что делает скилл huawei-cloud-dws-dymem-diag?
DWS cluster memory high root cause diagnosis skill, based on KooCLI v3.2.0+ and DWS Autopilot MCP Server. Automatically collects memory metrics, analyzes root causes (customer-side / system-side), and outputs a standardized diagnosis report. Applicable to DWS cluster memory usage too high, memory alarms, OOM scenarios. Trigger words: "内存高", "内存告警", "内存诊断", "内存使用率过高", "内存不足", "OOM", "内存溢出", "动态内存使用率超阈值", "high memory", "memory alarm", "memory diagnosis"
Как установить скилл huawei-cloud-dws-dymem-diag?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл huawei-cloud-dws-dymem-diag запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…