Install
openclaw skills install huawei-cloud-cce-env-assessmentA skill for huawei cloud container(CCE) assessment. It automatically collects metrics and configurations from containerized application environments on Huawei Cloud to generate a comprehensive assessment report. Use this when users want to evaluate if their Huawei Cloud applications align with cloud-native best practices and identify areas for improvement.
openclaw skills install huawei-cloud-cce-env-assessmentAutomatically collects evaluation metrics of the huawei cloud container environment, outputs metric scoring tables by dimension, and generates evaluation reports and improvement suggestions.
Prerequisite check: Huawei Cloud CLI (hcloud) >= 7.2.2 required Run
hcloud versionto verify the version is >= 7.2.2, andhcloud configure listto confirm a profile exists. If it is not installed or the version is too low, see references/koocli-installation-guide.md for the installation guide.
hcloud version
hcloud configure list
Prerequisite check: Python >= 3.6 required Run
python --versionto verify the version is >= 3.6.0 If it is not installed or the version is too low, The skill execution is interrupted proactively, and the user is prompted to install Python 3.6 or later. If the Python version is 3.6.x, run the following command to upgrade pip to the latest versionpip3 install --user --upgrade 'pip<22'
After each step, you MUST:
Do NOT chain multiple steps in a single run!
After each step, you MUST:
data/ directorysudo. If that does not resolve it, error out and abort the Skill flowBefore executing each step, verify that its prerequisites are satisfied:
| Step | Prerequisite |
|---|---|
| Step 2: Environment check | Step 1 is complete; Huawei Cloud AK/SK have been obtained |
| Step 3: Container environment collection | Step 2 is complete with no errors; data/ and artifacts/ are emptied |
| Step 4: Metric scoring | Step 3 is complete; data/cloud-native-collection.md has been generated |
| Step 5: Report generation | Step 4 is complete; artifacts/cloud-native-summary.xlsx has been generated |
hcloud commands)📋 Cloud-Native Container Assessment — Status Board
├────────────────────────────────────────────┤
│ Step 1: Configuration [⏳ In progress]│
│ Step 2: Environment check [○ Pending] │
│ Step 3: Information collect [○ Pending] │
│ Step 4: Metric scoring [○ Pending] │
│ Step 5: Report generation [○ Pending] │
└────────────────────────────────────────────┘
After each step, update the status board:
📋 Cloud-Native Container Assessment — Status Board
├────────────────────────────────────────────┤
│ Step 1: Configuration [✅ Done] │
│ Step 2: Environment check [✅ Done] │
│ Step 3: Information collect [✅ Done] │
│ Step 4: Metric scoring [✅ Done] │
│ Step 5: Report generation [⏳ In progress]│
└────────────────────────────────────────────┘
Any out-of-bounds operation must stop immediately and wait for user confirmation. Continuing is forbidden.
Prompt the user for the environment configuration.
| Item | Description | Example |
|---|---|---|
| Huawei Cloud AK/SK | Access Key and Secret Key for Huawei Cloud API | AK/SK = HPUAN3EWCG... / 1Bt5sdDU.. |
| Region | Region where the container cluster lives | region = cn-north-4 |
| Cluster name | CCE cluster name (Step 1 only) | cce_name = dify-cce-cluster |
| Dockerfile source | Source code repository (containing the Dockerfile) | Dockerfile = https://github.com/langgenius/dify |
Once the user supplies the configuration, save the values into environment variables HWC_AK, HWC_SK, CCE_Region, CCE_NAME, Dockerfile_REPO_URL respectively.
Diamond Gate 1: Get user confirmation before Step 2.
Using the configuration provided in Step 1, verify that the environment is reachable and that local runtime dependencies are present.
hcloud with AK/SK to access the Huawei Cloud CCE environment and confirm it is reachable, If it is not installed or the version is too low, see references/koocli-installation-guide.md for the installation guide.pip3 install --user --upgrade 'pip<22'python3 -m pip install -r requirements.txt. If the Python version is later than 3.7, Execute commands using a Python virtual environment pip3 install -r requirements.txt.data/; if data/ does not exist, create itartifacts/; if artifacts/ does not exist, create itFor every metric listed in references/cloud-native-checklist.xlsx, collect the corresponding environment information.
references/cloud-native-checklist.xlsx and MUST invoke scripts/collect_all.py to collect fresh data — do NOT reuse historical or cached datatemplates/cloud-native-assessment-template.md, write the result to data/cloud-native-collection.md, and show it to the userBased on the collection data in data/cloud-native-collection.md, score each metric:
scripts/score_and_excel.py to produce a fresh scoring sheet, output as Excel containing the columns: number, cloud-native dimension, level, acceptance metric, quantified target, acceptance method, description, acceptance verdict, score, full score, scoring basis. Save to artifacts/cloud-native-summary.xlsxUsing the contents of the scoring sheet artifacts/cloud-native-summary.xlsx, generate the final assessment report:
The final report uses templates/report_template.md as its base template
The report title is fixed as "Cloud-Native Assessment Report"
The report contains 4 chapters; Chapter 1 and Chapter 2 reuse the content of templates/report_template.md directly
Chapter 3 of the final report is populated from the scoring sheet artifacts/cloud-native-summary.xlsx
Invoke scripts/make_charts.py against the cloud-native-summary.xlsx produced in Step 4 to generate a radar chart and a staircase chart
Chart generation requirements:
Place the generated radar chart into report section 3.3.3 and the staircase chart into 3.3.4
Replace Chapter 4 of the final report with the actual remediation recommendations
Based on the assessment results, output remediation recommendations by P0/P1/P2 priority:
Invoke scripts/make_report_html.py to generate the final report as a html, written to artifacts/cloud-native-report.html
hcloud cce ListClusters --cli-region=cn-north-4
hcloud cce CreateKubernetesClusterCert \
--cli-region=cn-north-4 \
--cluster_id=a5659ec8-55b5........ \
--duration=1
hcloud cce ListClusters --cli-region=cn-north-4
| Auth mode | Required | Optional |
|---|---|---|
| AKSK | --cli-access-key, --cli-secret-key | --cli-security-token |
| Profile | --cli-profile | --cli-mode, --cli-region |
artifacts/ directoryhcloud version MUST return 7.2.2 or higherhcloud --help MUST list the available serviceshcloud configure list MUST show the configured profilereport_template.md — Final report templatecloud-native-checklist.xlsx — Description of assessment metricsrequirements.txt — Python dependency librarycollect_all.py — Main assessment script; integrates all collection modulesmake_charts.py — Chart generation scriptmake_report.py — Report generation scriptscore_and_excel.py — Scoring sheet generation scriptreport_template.md — Final report templatecloud-native-assessment-template.md — Data collection template