Generate and edit Draw.io, Mermaid, and Excalidraw diagrams from natural language using a structured JSON spec.
Coding
Huawei Cloud Cce Daily Cluster Inspector
Try itUse when performing periodic, low-risk health checks on Huawei Cloud CCE clusters — daily inspection, quick health check, heartbeat summary, or continuous op...
What it does
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.
The skill document
CCE Daily Cluster Inspector
Overview
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 generation
When to Use
- Daily or periodic cluster health check
- Quick heartbeat summary for operational dashboards
- Continuous operations report generation
- Post-change validation (read-only verification after changes made by other skills)
- First-pass triage before escalating to deep diagnosis
Do NOT use for:
- Executing remediation actions → use
huawei-cloud-cce-auto-remediation-runner - Deep single-resource diagnosis → use domain-specific diagnoser skills
- Capacity forecasting → use
huawei-cloud-cce-capacity-trend-forecaster
Prerequisites
1. Python Dependencies
- Python 3.8+ with
huaweicloudsdkcce,huaweicloudsdkcore,kubernetespackages - Run environment check before first use
2. Credential Configuration
- Valid Huawei Cloud credentials (AK/SK mode)
- Security Rules:
- Never expose AK/SK values in code, conversation, or commands
- Never use
echoto check credential values - Use environment variables:
HUAWEI_AK,HUAWEI_SK,HUAWEI_REGION - Prefer IAM users over root account for cloud operations
export HUAWEI_AK=
export HUAWEI_SK=
export HUAWEI_REGION=cn-north-4
3. IAM Permission Requirements
| API Action | Permission | Purpose |
|---|---|---|
cce:cluster:get | Get cluster | View CCE cluster details |
cce:cluster:createCert | Create certificate | Obtain kubeconfig for kubectl access |
cce:node:list | List nodes | Query CCE cluster nodes |
aom:instance:list | List AOM instances | Discover AOM Prom instance for metrics |
aom:metricsData:get | Get metrics data | Query Pod/node CPU/memory metrics |
aom:alarm:get | Get alarms | Query AOM alarm history |
Workflow
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:
- Collect region, cluster_id, inspection scope, and report expectations from user
- Run quick check first (
huawei_cce_quick_checkorhuawei_cce_auto_inspection) - If healthy → output brief heartbeat summary
- If anomalies found → run deep diagnosis or parallel inspection, grouped by Pod, Node, Event, AOM, ELB, Resource
- Classify risks as P0/P1/P2 with recommended owner
- Output read-only report; for actionable items, provide handoff checklist to
huawei-cloud-cce-auto-remediation-runner - If formal report needed → call
huawei_export_inspection_report
See references/workflow.md for the complete workflow reference.
Core Tools
All actions dispatched through scripts/huawei-cloud.py using skill action=exec.
Quick Check (First Pass)
| Action | Required Parameters | Description |
|---|---|---|
huawei_cce_quick_check | region, cluster_id | Lightweight cluster health summary |
huawei_cce_auto_inspection | region, cluster_id | Automated inspection with anomaly detection |
Deep Diagnosis (Escalation)
| Action | Required Parameters | Description |
|---|---|---|
huawei_cce_deep_diagnosis | region, cluster_id | In-depth cluster diagnosis |
huawei_cce_cluster_inspection_parallel | region, cluster_id | Parallel multi-domain inspection |
huawei_cce_cluster_inspection_subagent | region, cluster_id | Subagent-based distributed inspection |
huawei_pod_status_inspection | region, cluster_id | Pod health inspection |
huawei_node_status_inspection | region, cluster_id | Node health inspection |
huawei_node_resource_inspection | region, cluster_id | Node resource utilization inspection |
huawei_event_inspection | region, cluster_id | Kubernetes Event analysis |
huawei_aom_alarm_inspection | region, cluster_id | AOM alarm inspection |
huawei_elb_monitoring_inspection | region, cluster_id | ELB health monitoring inspection |
Aggregation & Reporting
| Action | Required Parameters | Description |
|---|---|---|
huawei_aggregate_inspection_results | region, cluster_id | Aggregate results from parallel/subagent inspections |
huawei_export_inspection_report | region, cluster_id | Export formal inspection report |
Parameter Reference
| Parameter | Required | Description | Default |
|---|---|---|---|
region | Yes | Huawei Cloud region, e.g., cn-north-4 | HUAWEI_REGION |
cluster_id | Yes | CCE cluster ID | N/A |
namespace | No | Kubernetes namespace scope | All namespaces |
ak | No | Override AK | HUAWEI_AK |
sk | No | Override SK | HUAWEI_SK |
project_id | No | Project ID | Auto from IAM |
Output Format
See references/output-schema.md for the complete JSON response structure.
Key output fields:
summary— daily inspection summary textstatus—HEALTHY,WARNING, orCRITICALcluster.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 path
Risk Constraints
This skill operates under R1 read-only constraints:
- Only read-only actions allowed — no scaling, deletion, drain, reboot, hibernate, or awake
- Inspection reports must never contain AK/SK, tokens, certificates, or full kubeconfig
- Anomalies only produce recommendations; remediation must be confirmed via
huawei-cloud-cce-auto-remediation-runner - See
references/risk-rules.mdfor full risk boundary details
Verification
- Run environment check script
- Call huawei_cce_cluster_auto_inspection with a test cluster
- Verify the report contains all expected sections
- Confirm read-only behavior (no mutation actions)
Best Practices
- Quick check first — always start with
huawei_cce_quick_checkorhuawei_cce_auto_inspection; avoid heavy checks on every cycle - Classify risks — label each anomaly as P0 (critical), P1 (warning), or P2 (low) with recommended owner
- Hand off remediation — never attempt mutation actions; provide actionable checklist for
huawei-cloud-cce-auto-remediation-runner - Scope appropriately — provide
namespaceto reduce noise when targeting specific workloads - Aggregate parallel results — when using
huawei_cce_cluster_inspection_parallel, always callhuawei_aggregate_inspection_resultsto consolidate - Use formal reports for operations reviews — call
huawei_export_inspection_reportwhen a persistent report is needed
Common Pitfalls
| Pitfall | Symptom | Quick Fix |
|---|---|---|
| Running deep diagnosis every cycle | Slow inspection, wasted resources | Start with quick check; escalate only on anomaly |
| Attempting remediation directly | Skill scope violation | Hand off to huawei-cloud-cce-auto-remediation-runner |
| Missing cluster_id | Action fails immediately | Provide cluster_id from huawei_get_cce_clusters |
| No AOM Prom instance | Metrics return empty | Verify AOM instance exists; check aom:instance:list permission |
| Not aggregating parallel results | Incomplete or fragmented report | Call huawei_aggregate_inspection_results after parallel inspection |
| Exposing credentials in report | Security violation | Reports auto-sanitize; never manually include AK/SK or kubeconfig |
Reference Documents
| Document | Description |
|---|---|
| Workflow | Quick-check-first escalation workflow and classification |
| Risk Rules | R1 read-only boundaries and prohibited actions |
| Output Schema | JSON response format for inspection results |
Notes
- This skill is read-only — it inspects and reports, never mutates cluster state
- AK/SK must never be hardcoded — use environment variables only
- All actions dispatched through
scripts/huawei-cloud.pyviaskill action=exec; do not run scripts directly in shell - When risks require action, hand off to
huawei-cloud-cce-auto-remediation-runnerwith a confirmation checklist - For deep single-resource diagnosis, delegate to domain-specific diagnoser skills (
huawei-cloud-cce-pod-failure-diagnoser,huawei-cloud-cce-node-failure-diagnoser, etc.)
Related skills
Stores durable facts in a categorized, plain-markdown vault on disk, alongside your agent's built-in memory.
Find why your productivity system keeps failing, then apply the smallest fix — capacity math, bottleneck routing, durable local notes.
Site audit, content writing, and competitor analysis for organic search rankings.
Write, debug, and tune Playwright specs with locator strategy, trace diagnosis, and CI-aware timeouts.
Run Git operations — commits, branches, merges, rebases, conflict resolution, and recovery — with safety rules enforced.
More from pintudeyudi
Browse all skillsManage Huawei Cloud CCE cluster lifecycle, node pools, nodes, and addons with built-in safety confirmations.
Query Huawei Cloud CCE Pod/Node metrics and ECS, ELB, EIP, NAT resource metrics with threshold-based anomaly detection.
Automate cross-region image replication and trigger-based CCE/CCI deployments on Huawei Cloud SWR using hcloud CLI.
Manage Huawei Cloud SWR namespaces, image repositories, tags, docker login credentials, and quotas via the hcloud CLI.
Manage Huawei Cloud CCI containers end-to-end via hcloud CLI: namespaces, networks, workloads, logs, with built-in safety checks.
Govern Huawei Cloud SWR image permissions, retention rules, shared domains, and agency delegation via hcloud CLI.