This skill performs periodic, low-risk CCE cluster health inspections. It follows a quick-check-first strategy: run lightweight checks first, and only escalate to deep diagnosis when anomalies are detected. This avoids running heavy diagnostic actions on every inspection cycle.
This skill is strictly read-only — it never performs mutation actions. When risks are found, it outputs recommendations and hands off to the appropriate remediation skill.
Architecture: python3 scripts/huawei-cloud.py dispatcher → Huawei Cloud Python SDK + Kubernetes client → cluster status, Events, metrics, AOM alarms
Related Skills:
huawei-cloud-cce-auto-remediation-runner — execute confirmed remediation actions (scale, drain, rollback, etc.)huawei-cloud-cce-root-cause-analyzer — cross-domain root cause analysishuawei-cloud-cce-pod-failure-diagnoser — deep Pod failure diagnosishuawei-cloud-cce-node-failure-diagnoser — deep Node failure diagnosishuawei-cloud-cce-network-failure-diagnoser — network connectivity, DNS, ELB diagnosishuawei-cloud-cce-alarm-correlation-engine — alarm correlation and deduplicationhuawei-cloud-cce-ops-report-generator — formal operations report generationDo NOT use for:
huawei-cloud-cce-auto-remediation-runnerhuawei-cloud-cce-capacity-trend-forecasterhuaweicloudsdkcce, huaweicloudsdkcore, kubernetes packagesValid Huawei Cloud credentials (AK/SK mode)
Security Rules:
echo to check credential valuesHUAWEI_AK, HUAWEI_SK, HUAWEI_REGIONbash
export HUAWEI_AK=<your-ak>
export HUAWEI_SK=<your-sk>
export HUAWEI_REGION=cn-north-4
API ActionPermissionPurposecce:cluster:getGet clusterView CCE cluster detailscce:cluster:createCertCreate certificateObtain kubeconfig for kubectl accesscce:node:listList nodesQuery CCE cluster nodesaom:instance:listList AOM instancesDiscover AOM Prom instance for metricsaom:metricsData:getGet metrics dataQuery Pod/node CPU/memory metricsaom:alarm:getGet alarmsQuery AOM alarm history
dot
digraph inspection_flow {
rankdir=TB;
start [shape=doublecircle label="Start Inspection"];
quick [shape=box label="Quick Check\nhuawei_cce_quick_check or\nhuawei_cce_auto_inspection"];
healthy [shape=box label="Output Heartbeat\nSummary"];
anomaly [shape=diamond label="Anomalies\nFound?"];
deep [shape=box label="Deep Diagnosis\nor Parallel Inspection"];
classify [shape=box label="Classify by:\nPod/Node/Event/\nAOM/ELB/Resource"];
report [shape=box label="Generate Report\n(P0/P1/P2 risks)"];
handoff [shape=box label="Recommend\nRemediation Handoff"];
start -> quick;
quick -> anomaly;
anomaly -> healthy [label="No"];
anomaly -> deep [label="Yes"];
deep -> classify;
classify -> report;
report -> handoff;
}
Step-by-step:
huawei_cce_quick_check or huawei_cce_auto_inspection)huawei-cloud-cce-auto-remediation-runnerhuawei_export_inspection_reportSee references/workflow.md for the complete workflow reference.
All actions dispatched through scripts/huawei-cloud.py using skill action=exec.
ActionRequired ParametersDescriptionhuawei_cce_quick_checkregion, cluster_idLightweight cluster health summaryhuawei_cce_auto_inspectionregion, cluster_idAutomated inspection with anomaly detection
ActionRequired ParametersDescriptionhuawei_cce_deep_diagnosisregion, cluster_idIn-depth cluster diagnosishuawei_cce_cluster_inspection_parallelregion, cluster_idParallel multi-domain inspectionhuawei_cce_cluster_inspection_subagentregion, cluster_idSubagent-based distributed inspectionhuawei_pod_status_inspectionregion, cluster_idPod health inspectionhuawei_node_status_inspectionregion, cluster_idNode health inspectionhuawei_node_resource_inspectionregion, cluster_idNode resource utilization inspectionhuawei_event_inspectionregion, cluster_idKubernetes Event analysishuawei_aom_alarm_inspectionregion, cluster_idAOM alarm inspectionhuawei_elb_monitoring_inspectionregion, cluster_idELB health monitoring inspection
ActionRequired ParametersDescriptionhuawei_aggregate_inspection_resultsregion, cluster_idAggregate results from parallel/subagent inspectionshuawei_export_inspection_reportregion, cluster_idExport formal inspection report
ParameterRequiredDescriptionDefaultregionYesHuawei Cloud region, e.g., cn-north-4HUAWEI_REGION``cluster_idYesCCE cluster IDN/AnamespaceNoKubernetes namespace scopeAll namespacesakNoOverride AKHUAWEI_AK``skNoOverride SKHUAWEI_SK``project_idNoProject IDAuto from IAM
See references/output-schema.md for the complete JSON response structure.
Key output fields:
summary — daily inspection summary textstatus — HEALTHY, WARNING, or CRITICALcluster.region / cluster.cluster_id — cluster identificationchecks — list of check resultsrisks — classified risk items (P0/P1/P2)recommended_followups — handoff recommendations to other skillsreport_file — optional exported report pathThis skill operates under R1 read-only constraints:
huawei-cloud-cce-auto-remediation-runnerreferences/risk-rules.md for full risk boundary detailshuawei_cce_quick_check or huawei_cce_auto_inspection; avoid heavy checks on every cyclehuawei-cloud-cce-auto-remediation-runnernamespace to reduce noise when targeting specific workloadshuawei_cce_cluster_inspection_parallel, always call huawei_aggregate_inspection_results to consolidatehuawei_export_inspection_report when a persistent report is neededPitfallSymptomQuick FixRunning deep diagnosis every cycleSlow inspection, wasted resourcesStart with quick check; escalate only on anomalyAttempting remediation directlySkill scope violationHand off to huawei-cloud-cce-auto-remediation-runnerMissing cluster_idAction fails immediatelyProvide cluster_id from huawei_get_cce_clustersNo AOM Prom instanceMetrics return emptyVerify AOM instance exists; check aom:instance:list permissionNot aggregating parallel resultsIncomplete or fragmented reportCall huawei_aggregate_inspection_results after parallel inspectionExposing credentials in reportSecurity violationReports auto-sanitize; never manually include AK/SK or kubeconfig
DocumentDescriptionWorkflowQuick-check-first escalation workflow and classificationRisk RulesR1 read-only boundaries and prohibited actionsOutput SchemaJSON response format for inspection results
scripts/huawei-cloud.py via skill action=exec; do not run scripts directly in shellhuawei-cloud-cce-auto-remediation-runner with a confirmation checklisthuawei-cloud-cce-pod-failure-diagnoser, huawei-cloud-cce-node-failure-diagnoser, etc.)