huaweicloud/huaweicloud-skills/huawei-cloud-ces-aom-capacity-assessment
Claude Code and agent skill by huaweicloud/huaweicloud-skills
- community
Checking that the SKILL.md file is still in the repository.
Huawei Cloud capacity assessment. Assesses capacity for instances across 21 services (NAT/RDS/ECS/ELB/EIP/CSS/DDS/DWS/DCS/DMS/TaurusDB/GeminiDB/DC/ER/EVS/EFS Turbo/APIG/DRS/VPCEP/Bandwidth/CCE) by comparing peak/valley fluctuations of monitoring data between entry instances and target instances, calculating pressure coefficients to predict festival traffic ceilings, and giving scale-out recommendations. Data collection uses hcloud (KooCLI) CES commands (CCE and other cloud-native metrics go through AOM). Supports four modes: single-instance historical, full historical, single-instance 近一天(t-24), full 近一天(t-24). Trigger words: 容量评估、扩容建议、节日保障、压力系数、峰谷值倍数、预计节日上限、容量预测、capacity assessment、要不要扩容、ECS/RDS/CCE 够不够用.
Install
npx vskill@latest install huaweicloud/huaweicloud-skills/huawei-cloud-ces-aom-capacity-assessmentSKILL.md
The same SKILL.md was published earlier as huaweicloud/huaweicloud-skills/huawei-cloud-ces-aom-capacity-assessment.
Huawei Cloud Capacity Assessment
Assesses instances in the Excel capacity template: collects monitoring data (hcloud CES; CCE and other cloud-native metrics via hcloud AOM), computes peak/valley multiples, pressure coefficients, and expected festival ceilings, decides whether business peaks (festival events) need scale-out, and writes results back to Excel.
Core division of labor (must follow)
- The script does all computation, data collection, and Excel read/write; the model only orchestrates the flow, selects modes, and reports results.
- The model must not manually compute peak/valley or pressure coefficients, and must not make logic decisions beyond writing Excel cells.
- The model must not investigate root causes of collection failures (§9.3); report failure details to the user as-is.
Prerequisites: script locations and dependencies
First-time setup: pip install -r <SKILL_DIR>/scripts/requirements.txt
Placeholders in the commands below must be replaced before running — they are not literal paths:-<SKILL_DIR>= the directory that contains thisSKILL.md(e.g.skills/monitoring/ces/huawei-cloud-ces-aom-capacity-assessment).-<xlsx>= the full path of the workbook you are assessing (copytemplates/capacity_assessment_template.xlsxto a writable location first, e.g./tmp/capacity.xlsx).-<region>/<region-code>= region code such ascn-north-4;<row>= row number;<name>= the value to check.Running a command with the angle brackets left in place fails with "script not found" / "file not found".
Offline tests (no cloud credentials needed): cd <SKILL_DIR> && python3 -m pytest tests -q
Step 0: Expand (auto-fill metrics)
The user copies templates/capacity_assessment_template.xlsx, fills in region/实例类型/实例ID/入口实例ID (one row per instance, including entry instances), then runs expand.
Recommended: before assessment, run expand to auto-fill 关键指标/云服务维度/云服务维度资源ID for each instance row. (Users may also manually fill these columns and skip expand; expand is the recommended flow to avoid manual errors.) The user only needs to fill region/实例类型/实例ID/入口实例ID; the tool looks up all supported metrics from the registry and expands each row into one row per metric (inserting new rows as needed).
For DMS instances, the tool auto-detects the engine subtype (kafka/rabbitmq/rocketmq) via ShowInstance API (Kafka/RabbitMQ/RocketMQ), falling back to CES ListMetrics probing. For GeminiDB instances, the tool auto-detects the engine subtype (cassandra/redis) via GaussDBforNoSQL ListInstances, falling back to CES ListMetrics probing. For DCS instances, the tool auto-detects the instance type (single/ha/cluster/proxy) via DCS ShowInstance API, falling back to CES ListMetrics probing; only metrics matching the detected instance type are expanded.
Returns: {expanded_rows, inserted_rows, total_metrics, subtypes_detected, errors}. After expand, report the summary to the user (N rows → M rows, K metrics total), then proceed to Phase 2 (assess-all).
- If
errorscontains only关键指标 already filledwarnings: all rows already expanded, proceed directly to assessment. - If
errorscontains subtype detection warnings (e.g. "could not detect DMS subtype"): report to user but proceed — all metrics for that service are expanded as a fallback. - If
ok: falsewith real errors (no rows to expand, all rows failed): report to user and stop.
Four assessment modes
| Mode | Command | Time range | |
|---|---|---|---|
| Single-instance historical | assess-row --mode historical --start ... --end ... | user-specified | |
| Full historical | assess-all --mode historical | user-specified | |
| Single-instance 近一天(t-24) | assess-row --mode t24 | last 24h (automatic) | |
| Full 近一天(t-24) | assess-all --mode t24 | last 24h (automatic) |
Time parameter format: YYYY-MM-DD HH:MM:SS (day windows are split by day automatically, peak=max, valley=min).
Template and metric explanation (user-facing)
When users ask "what is the template / how do I fill it / which metrics are supported", run:
This command outputs in one shot: Excel template instructions (including the template file location) + the list of supported instance type abbreviations (to prevent users filling Chinese full names that fail recognition) + the full supported-metric list grouped by 云服务/云服务维度/关键指标.
- Show the user the complete output of this command verbatim; do not paraphrase or trim it.
- The output is user-facing and contains no internal command parameters/paths; the model side should not expose internal details.
- The content already covers three key points, pass them through as-is, no extra additions needed:
1) expand flow: the user only fills region/实例类型/实例ID/入口实例ID; run expand to auto-fill 关键指标/云服务维度/云服务维度资源ID by looking up all supported metrics from the 241-metric registry (one row per metric, inserting rows as needed). For DMS, the tool auto-detects the engine subtype (kafka/rabbitmq/rocketmq); for GeminiDB, it auto-detects cassandra/redis; for DCS, it auto-detects the instance type (single/ha/cluster/proxy). 2) "资源上限" is an optional column: assessment works without it; when absent, the default ceiling is taken from the registry by 实例类型+关键指标 (some metrics have a default ceiling, some do not; when absent, the ceiling is left blank and the recommendation outputs "现有数据不支持给出建议"); filling it in when known is recommended. 3) ECS metric note: current ECS assessment metrics come from physical-machine (host) level collection, less accurate than in-instance collection; for more accurate ECS metrics, install the Cloud Eye Agent on that ECS.
- When users ask "which regions are supported / how to fill the region column", refer to
references/region-map.md(Chinese region name ↔ region code mapping, consistent withresolve_regionin config.py).
Pre-assessment validation (must follow before Phase 2)
Before running assess, the model must perform these checks and interact with the user accordingly:
- 入口实例ID + 账号组合校验: every target row must have 入口实例ID filled, and hcloud must be configured with the collection account's AK/SK (see
references/cli-installation-guide.md).
- If 入口实例ID is empty for a row: warn the user that this row will only perform data collection, no pressure-coefficient prediction. Ask whether to proceed or fill in the entry instance.
- If hcloud is not configured (AK/SK missing): stop and guide the user through
references/cli-installation-guide.mdfirst.
- 时间窗口校验 (historical mode only):
- If the user requests historical mode but does not provide --start/--end: prompt the user to fill in the time window.
- If the user still does not provide a time window: inform them that the tool will automatically switch to 近一天(t-24)mode (collects the last 24 hours), and proceed with
--mode t24.
- 入口实例关键指标校验: for each row that has 入口实例ID filled, check whether the entry instance's corresponding row in Excel has 关键指标 filled.
- If 关键指标 is empty for the entry row: do not execute the skill immediately. First remind the user:
> "入口实例 {instance_id} 的关键指标未填写。建议先运行 expand 自动填充,或手动填写关键指标。也可以不填写——此时压力系数仍会计算但不可靠(入口实例回退到目标指标),扩容建议将输出'入口实例异常,需人工确认'。"
- If the user chooses to proceed without filling: the assessment runs normally, 压力系数/预计节日上限 are still computed and written (but unreliable), and the 扩容建议 column outputs "入口实例异常,需人工确认" instead of a yes/no recommendation.
- Mode-specific output columns:
- Historical mode: output Excel only shows historical columns (峰谷值倍数/压力系数/预计节日上限/资源上限/单位/扩容建议 + M/D峰值、M/D谷值). 近一天(t-24)columns are not created.
- 近一天(t-24)mode: output Excel only shows 近一天(t-24)columns (近一天(t-24)峰值/近一天(t-24)谷值/近一天(t-24)峰谷值增长倍数/近一天(t-24)压力系数/近一天(t-24)预计节日上限/近一天(t-24)是否需要扩容). Historical columns are not created.
The workbook template spells these six columns t-24峰值/t-24谷值/t-24峰谷值增长倍数/t-24压力系数/t-24预计节日上限/t-24是否需要扩容; both spellings resolve to the same column, so values are written into the template's own columns and no duplicate column is ever appended.
Workflow: standard flow
Always start with Phase 0 (expand), then proceed through Phase 1 → Phase 2 → Phase 3 → Phase 4.
Phase 0: Expand (auto-fill metrics)
Reads each row, determines the service type from 实例类型, for DMS auto-detects the subtype, for DCS auto-detects the instance type (single/ha/cluster/proxy), looks up all supported metrics from the 241-metric registry, and expands each row into one row per metric (filling in 关键指标/云服务维度/云服务维度资源ID, inserting new rows as needed).
- Rows that already have 关键指标 filled are skipped (already expanded).
- For DMS, the tool tries ShowInstance on each service (Kafka/RabbitMQ/RocketMQ) to determine the engine type,
falling back to CES ListMetrics probing with kafka_instance_id/rabbitmq_instance_id/reliablemq_instance_id.
- For GeminiDB, the tool tries GaussDBforNoSQL ListInstances with datastore_type=cassandra/redis to determine the
engine type, falling back to CES ListMetrics probing with cassandra_cluster_id/redis_cluster_id.
- For DCS, the tool tries DCS ShowInstance to determine the instance type (single/ha/cluster/proxy),
falling back to CES ListMetrics probing; only metrics matching the detected type are expanded (single/ha→实例 only; cluster→实例+数据节点; proxy→Proxy集群-节点).
- For metrics requiring 云服务维度资源ID, the tool queries the cloud to discover all available dimension
resource IDs (e.g. CCE node hostIDs, DMS Kafka broker IDs, POD names) and creates one row per value. For services where the dim_resource_id equals the instance_id (e.g. EIP), it is used directly. Because CES ListMetrics --dim.0 matches the exact dimension set, node/broker-level metrics (which also carry e.g. dcs_cluster_redis_node) are not returned by an instance-filtered query; the tool then retries a namespace-wide listing and keeps only metrics attributed to this instance by its instance dimension, so single-node/ha instances are unaffected and no other instance's nodes leak in. If discovery still finds nothing (hcloud not available, instance stopped, no sub-resources), the instance ID is used as a fallback and the warnings array says so — warn the user, since node-level metrics then collect as instance-level (or fail).
Phase 1: Read Excel + validate
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/monitoring/ces/huawei-cloud-ces-aom-capacity-assessment/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-ces-aom-capacity-assessment)