huaweicloud/huaweicloud-skills/huawei-cloud-cce-alarm-correlation-engine
Claude Code and agent skill by huaweicloud/huaweicloud-skills
- community
Checking that the SKILL.md file is still in the repository.
Huawei Cloud AOM alarm correlation and alarm-rule management skill for CCE operations. Use this skill when the user wants to: (1) query AOM active and historical alarms, (2) analyze alarm deduplication, alarm storms, severity grouping, burst alarms, and chronic alarms, (3) inspect CCE cluster alarm health, (4) query, create, update, delete, enable, or disable AOM alarm rules, (5) query or create notification action rules, (6) batch configure or clean CCE recommended AOM alarm rules from the cloud-side CCE alarm template. Trigger: user mentions "alarm correlation", "AOM alarm", "alarm rule", "alarm storm", "alarm inspection", "notification rule", "告警关联", "AOM 告警", "告警规则", "告警风暴", "通知规则", or "CCE 告警".
Install
npx vskill@latest install huaweicloud/huaweicloud-skills/huawei-cloud-cce-alarm-correlation-engineSKILL.md
The same SKILL.md was published earlier as huaweicloud/huaweicloud-skills/huawei-cloud-cce-alarm-correlation-engine.
Huawei Cloud CCE Alarm Correlation Engine
Overview
Correlate Huawei Cloud AOM active and historical alarms for CCE operations, then convert raw alarm streams into prioritized investigation leads. This skill also manages AOM alarm rules and notification action rules through a strict preview-and-confirm workflow.
Architecture: python3 scripts/huawei-cloud.py dispatcher -> local hcloud (KooCLI) -> AOM/CCE/IAM cloud service operations -> alarm query, alarm correlation, alarm-rule management, notification-rule management, and CCE alarm health inspection.
Execution Method: All Huawei Cloud operations must go through the bundled Python dispatcher. The dispatcher invokes the localhcloudCLI. Direct SDK imports, hand-written API signing, curl IAM flows, openstack commands, or out-of-band cloud access paths are prohibited.
Related Skills:
huawei-cloud-cce-metric-analyzer- CCE, AOM, and cloud-resource metric checkshuawei-cloud-cce-kubernetes-event-analyzer- Kubernetes warning event analysishuawei-cloud-cce-pod-failure-diagnoser- Pod failure diagnosishuawei-cloud-cce-node-failure-diagnoser- Node failure diagnosishuawei-cloud-cce-auto-remediation-runner- Remediation preview and execution
Capabilities:
- Query active AOM alarms, historical AOM alarms, and merged active+historical views
- Analyze alarm deduplication, severity grouping, burst alarms, attention alarms, and chronic alarms
- Inspect CCE alarm health and produce risk items for follow-up diagnosis
- Query AOM alarm rules with optional
cluster_idfiltering - Resolve the AOM Prometheus instance bound to a CCE cluster
- Create metric alarm rules and event alarm rules
- Create notification action rules from a user-provided SMN topic
- Batch configure CCE recommended alarm rules from the cloud-side CCE alarm template
- Batch clean CCE alarm rules matching the cloud-side CCE alarm template
- Update, delete, enable, and disable AOM alarm rules
- Query AOM action rules and mute rules
Typical Use Cases:
- "List AOM alarms for this CCE cluster"
- "Analyze active and historical alarms for alarm storms"
- "Show current alarm rules for cluster
<cluster_id>" - "Create CCE recommended alarm rules with this notification rule"
- "Clean CCE template alarm rules for this cluster"
- "Create a notification action rule using this SMN topic"
- "Disable this noisy alarm rule after I confirm"
Prerequisites
1. Runtime Dependencies
- Python 3.8+ for the dispatcher and result processing
- hcloud (KooCLI) 7.2.2+ in
PATH - A local hcloud profile configured with
hcloud configure - Run environment checks before first use when available in the skill package
2. Credential Configuration
- Valid Huawei Cloud credentials via explicit tool parameters, local hcloud profile, or environment variable fallback
- Credential priority for hcloud calls is: explicit tool parameters > local hcloud profile > environment variables
- Tools that need
project_idresolve it internally where possible: explicitproject_idparameter first, then active hcloud profile/IAM project lookup for the target region, then environment fallback
Security Rules:
- Never expose AK/SK, tokens, or credential-derived secrets in code, commands, logs, or responses
- Never run
echo $HUAWEI_AKorecho $HUAWEI_SK - Never write credentials to files
- Prefer hcloud profile for normal use
- Use IAM users with least privilege
Optional Environment Fallback:
3. IAM Permission Requirements
| Permission | Purpose | |
|---|---|---|
aom:event:list | Query active and historical AOM alarms | |
aom:alarmRule:list | Query AOM alarm rules | |
aom:alarmRule:create | Create AOM alarm rules | |
aom:alarmRule:update | Update, enable, or disable AOM alarm rules | |
aom:alarmRule:delete | Delete AOM alarm rules | |
aom:actionRule:list | Query AOM action/notification rules | |
aom:actionRule:create | Create AOM notification action rules | |
aom:actionRule:delete | Delete AOM notification action rules | |
aom:muteRule:list | Query AOM mute rules | |
cce:cluster:get | Resolve CCE cluster and AOM Prometheus binding |
Permission Failure Handling:
- Show the failed operation and required permission.
- Ask the user to grant the missing IAM permission.
- Pause mutation work until the user confirms permissions are ready.
Core Commands
All commands use the Python dispatcher script:
KooCLI命令格式标准
This skill does not ask users to run raw hcloud commands directly. All cloud operations must use the dispatcher command format:
The dispatcher converts tool parameters into standard KooCLI calls:
Follow these rules for every command:
- Use
key=valueparameters; quote values that contain spaces,>,<,|, JSON, or PromQL. - Do not print or persist AK/SK, security tokens, or generated JSON input files.
- Use dispatcher preview output first for R2/R1/R0 tools; add
confirm=trueonly after explicit user confirmation. - Prefer hcloud profile credentials; explicit tool parameters override profile and environment fallback.
- See CLI Installation Guide for setup and validation.
1. Alarm Query And Correlation
Do not conclude "no issue" from absence of active alarms alone. Always consider historical alarms when diagnosing a recent or recovered problem.
2. Alarm Rule Query
huawei_list_aom_alarm_rules supports cluster filtering by cluster_id only. Do not use cluster_name as a filter.
3. Notification Rules
Never choose a notification rule automatically. If bind_notification_rule_id is missing for batch alarm creation, list available action rules and wait for explicit user selection, or ask the user to provide an SMN topic and create a notification rule first.
4. Alarm Rule Creation
Metric rules with cluster_id + alarm_item and event rules both use the same CCE template payload path and default naming as batch creation. Pass rule_name only when the user explicitly requests a custom name. Single-rule creation requires explicit bind_notification_rule_id during confirmed execution, same as batch CCE alarm rule configuration. Event alarm rule event_name should reference references/cce-event-list.md; metric alarm_item should use the CCE template alias or rule name.
5. CCE Template Alarm Rules
huawei_configure_cce_aom_alarm_rules requires explicit bind_notification_rule_id. If not provided, do not return or choose available_notification_rules from this tool; call huawei_list_aom_action_rules separately and present choices to the user.
The batch configuration depends on the target cluster AOM Prometheus instance (cie-collector addon). Batch creation auto-resolves the instance from the cluster's cie-collector addon config; when the cluster does not have the cie-collector addon installed, auto-resolution fails and prom_instance_id becomes required. Query available instances with hcloud AOM ListPromInstance --Enterprise-Project-Id=all_granted_eps and pass prom_instance_id=<instance-id> explicitly.
6. Alarm Rule Mutation
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/container/cce/huawei-cloud-cce-alarm-correlation-engine/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/huaweicloud/huaweicloud-skills/huawei-cloud-cce-alarm-correlation-engine)