/alibabacloud-cms-alert-rule-create
Create and query Alibaba Cloud alert rules via CLI. Supports CMS 1.0 cloud resource monitoring (ECS, RDS, SLB, etc.) and CMS 2.0 advanced monitoring (Prometheus, APM, UModel). Intent routing automatically selects the correct workflow based on alert type. Use this skill when
$ npx -y skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-cms-alert-rule-create --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/alibabacloud-cms-alert-rule-create
Context preview
The summary Claude sees to decide when to auto-load this skill.
Create and query Alibaba Cloud alert rules via CLI. Supports CMS 1.0 cloud resource monitoring (ECS, RDS, SLB, etc.) and CMS 2.0 advanced monitoring (Prometheus, APM, UModel). Intent routing automatically selects the correct workflow based on alert type. Use this skill when
SKILL.md
alibabacloud-cms-alert-rule-create.SKILL.mdname: alibabacloud-cms-alert-rule-create
description: |
Create and query Alibaba Cloud alert rules via CLI. Supports CMS 1.0 cloud resource
monitoring (ECS, RDS, SLB, etc.) and CMS 2.0 advanced monitoring (Prometheus, APM, UModel).
Intent routing automatically selects the correct workflow based on alert type.
Use this skill when users mention: create alert, setup monitoring, configure alarm,
ECS/RDS/SLB alert, Prometheus alert, PromQL, K8s monitoring, APM alert, UModel alert,
list alerts, query rules, 告警规则, 创建告警, 监控报警, Prometheus告警, 应用监控, 查看告警.
Alibaba Cloud Alert Rule Management
This skill creates and queries alert rules. Intent routing selects CMS 1.0 or CMS 2.0 workflow automatically.
---
CLI Setup (Required Before Execution)
aliyun configure ai-mode enable
aliyun configure ai-mode set-user-agent --user-agent "AlibabaCloud-Agent-Skills/alibabacloud-cms-alert-rule-create"
aliyun plugin update
---
Step 0: Intent Routing
> Identify user's monitoring target → route to the correct workflow. See `step0-intent-routing.md`.
| User Scenario | Route To | |---------------|----------| | Cloud product system metrics (ECS, RDS, SLB, OSS, Redis, MongoDB…) | **CMS 1.0 Workflow** | | Prometheus / APM / UModel / custom metrics | **CMS 2.0 Workflow** |
---
Supported Alert Types
| Version | Type | Create API | Query API | |---------|------|------------|-----------| | CMS 1.0 | Cloud Resource (ECS/RDS/SLB/OSS/Redis/MongoDB…) | `PutResourceMetricRule` | `DescribeMetricRuleList` | | CMS 2.0 | Prometheus (`PROMETHEUS`) | `ManageAlertRules` | `QueryAlertRules` | | CMS 2.0 | APM (`APM`) | `ManageAlertRules` | `QueryAlertRules` | | CMS 2.0 | UModel (`UMODEL`) | `ManageAlertRules` | `QueryAlertRules` |
---
CMS 1.0 Workflow
For **query** requests → `step-query.md`
For **create** requests:
| Step | Description | Reference | |------|-------------|-----------| | 1 | Context Lock — namespace, region, instances | `step1-context-lock.md` | | 2 | Query Generation — discover metrics via API, match to user intent | `step2-query-generation.md` | | 3 | Detection Config — threshold, frequency (default 1min) | `step3-detection-config.md` | | 4 | Notification — query contacts → select or create | `step4-notification.md` | | 5 | Preview & Execute — show summary → confirm → CLI | `step5-preview-execute.md` | | 6 | Verification — check status | `step6-verification.md` |
---
CMS 2.0 Workflow
For **query** requests → `cms2-step-query.md`
For **create** requests:
| Step | Description | Reference | |------|-------------|-----------| | 1 | Context Lock — build datasourceConfig (type, instanceId, region) | `cms2-step1-context-lock.md` | | 2 | Query Config — build queryConfig (PromQL / APM measures / UModel entity) | `cms2-step2-query-config.md` | | 3 | Detection Config — build conditionConfig (P1-P4, threshold, duration) | `cms2-step3-detection-config.md` | | 4 | Webhook Query — call `list-alert-webhooks`, user selects; other types → console | `cms2-step5-preview-execute.md` | | 5 | Preview & Execute — show summary → confirm → manage-alert-rules CLI | `cms2-step5-preview-execute.md` |
---
Critical Rules
> Full details → `references/critical-rules.md`
1. **Intent Routing** — Route cloud resource metrics to CMS 1.0, Prometheus/APM/UModel to CMS 2.0. Never mix APIs. 2. **CMS 2.0 API Enforcement** — CMS 2.0 alert rules MUST ONLY be created via `ManageAlertRules` and queried via `QueryAlertRules`. No other API (e.g. `PutResourceMetricRule`, `DescribeMetricRuleList`, ARMS `CreateOrUpdateAlertRule`, ARMS `CreatePrometheusAlertRule`) is permitted for CMS 2.0 alert rule creation or query. If `ManageAlertRules` returns error, DO NOT fallback to other APIs — report the error to user and STOP execution. CLI format: `aliyun cms manage-alert-rules --body '{"action":"CREATE",...}'` 3. **Contact/Webhook Query First** — CMS 1.0: `DescribeContactGroupList`; CMS 2.0: `ListAlertWebhooks` is **MANDATORY before alert creation**. (CMS 2.0 other notification → console). DO NOT use CMS 1.0 APIs as substitute for CMS 2.0. Skipping webhook query is a critical failure. 4. **Resources Parameter** — (CMS 1.0) `--resources` must always be explicitly passed. 5. **Workspace Required** — (CMS 2.0) Must ask user for workspace value using AskUser tool. Never auto-construct (e.g. 'default', 'default-cms-{accountId}'). If AskUser fails, retry once with simplified options, then report error and STOP — do NOT proceed with fabricated values. 6. **Prometheus Required Params** — (CMS 2.0) `cluster_id` (instanceId) + `workspace` **MUST ASK USER** using AskUser tool. Never guess, omit, or auto-select. PromQL is generated based on user-provided cluster_id + monitoring target. If AskUser fails, STOP execution. 7. **APM Required Params** — (CMS 2.0) `service_id` (for `datasourceConfig.instanceId` AND `queryConfig.serviceIdList`) + `workspace` **MUST ASK USER** using AskUser tool. Never fabricate, use placeholders, or auto-select from discovered applications (e.g. via ListTraceApps). Discovery APIs are for reference only — final selection MUST come from user input. If AskUser fails, STOP execution. 8. **Required API Calls** — Every operation must call designated APIs even if values seem known. 9. **Dynamic Metric Discovery** — (CMS 1.0) MUST call `describe-metric-meta-list`. Use `metrics.md` only as fallback. 10. **CLI Timeout** — `--read-timeout 30` for queries, `--read-timeout 60` for writes. 11. **Duplicate Pre-check** — Query existing rules before creation to avoid duplicates. 12. **Mandatory Confirmation** — Show config summary and get user confirmation before execution. EVEN in automated/simulated environments, you MUST output a configuration summary block and explicitly state 'Waiting for user confirmation' before proceeding. Do NOT skip this step with excuses about automation. Example format:
【配置摘要】
告警类型: APM/Prometheus
阈值: 5%
严重级别: P2
通知方式: webhook
请确认以上配置是否正确(回复确认或修改意见):
13. **User-Agen
Read more
name: alibabacloud-cms-alert-rule-create description: | Create and query Alibaba Cloud alert rules via CLI. Supports CMS 1.0 cloud resource monitoring (ECS, RDS, SLB, etc.) and CMS 2.0 advanced monitoring (Prometheus, APM, UModel). Intent routing automatically selects the correct workflow based on alert type. Use this skill when users mention: create alert, setup monitoring, configure alarm, ECS/RDS/SLB alert, Prometheus alert, PromQL, K8s monitoring, APM alert, UModel alert, list alerts, query rules, 告警规则, 创建告警, 监控报警, Prometheus告警, 应用监控, 查看告警.
Alibaba Cloud Alert Rule Management
This skill creates and queries alert rules. Intent routing selects CMS 1.0 or CMS 2.0 workflow automatically.
---
CLI Setup (Required Before Execution)
aliyun configure ai-mode enable aliyun configure ai-mode set-user-agent --user-agent "AlibabaCloud-Agent-Skills/alibabacloud-cms-alert-rule-create" aliyun plugin update
---
Step 0: Intent Routing
> Identify user's monitoring target → route to the correct workflow. See `step0-intent-routing.md`.
| User Scenario | Route To | |---------------|----------| | Cloud product system metrics (ECS, RDS, SLB, OSS, Redis, MongoDB…) | **CMS 1.0 Workflow** | | Prometheus / APM / UModel / custom metrics | **CMS 2.0 Workflow** |
---
Supported Alert Types
| Version | Type | Create API | Query API | |---------|------|------------|-----------| | CMS 1.0 | Cloud Resource (ECS/RDS/SLB/OSS/Redis/MongoDB…) | `PutResourceMetricRule` | `DescribeMetricRuleList` | | CMS 2.0 | Prometheus (`PROMETHEUS`) | `ManageAlertRules` | `QueryAlertRules` | | CMS 2.0 | APM (`APM`) | `ManageAlertRules` | `QueryAlertRules` | | CMS 2.0 | UModel (`UMODEL`) | `ManageAlertRules` | `QueryAlertRules` |
---
CMS 1.0 Workflow
For **query** requests → `step-query.md`
For **create** requests:
| Step | Description | Reference | |------|-------------|-----------| | 1 | Context Lock — namespace, region, instances | `step1-context-lock.md` | | 2 | Query Generation — discover metrics via API, match to user intent | `step2-query-generation.md` | | 3 | Detection Config — threshold, frequency (default 1min) | `step3-detection-config.md` | | 4 | Notification — query contacts → select or create | `step4-notification.md` | | 5 | Preview & Execute — show summary → confirm → CLI | `step5-preview-execute.md` | | 6 | Verification — check status | `step6-verification.md` |
---
CMS 2.0 Workflow
For **query** requests → `cms2-step-query.md`
For **create** requests:
| Step | Description | Reference | |------|-------------|-----------| | 1 | Context Lock — build datasourceConfig (type, instanceId, region) | `cms2-step1-context-lock.md` | | 2 | Query Config — build queryConfig (PromQL / APM measures / UModel entity) | `cms2-step2-query-config.md` | | 3 | Detection Config — build conditionConfig (P1-P4, threshold, duration) | `cms2-step3-detection-config.md` | | 4 | Webhook Query — call `list-alert-webhooks`, user selects; other types → console | `cms2-step5-preview-execute.md` | | 5 | Preview & Execute — show summary → confirm → manage-alert-rules CLI | `cms2-step5-preview-execute.md` |
---
Critical Rules
> Full details → `references/critical-rules.md`
1. **Intent Routing** — Route cloud resource metrics to CMS 1.0, Prometheus/APM/UModel to CMS 2.0. Never mix APIs. 2. **CMS 2.0 API Enforcement** — CMS 2.0 alert rules MUST ONLY be created via `ManageAlertRules` and queried via `QueryAlertRules`. No other API (e.g. `PutResourceMetricRule`, `DescribeMetricRuleList`, ARMS `CreateOrUpdateAlertRule`, ARMS `CreatePrometheusAlertRule`) is permitted for CMS 2.0 alert rule creation or query. If `ManageAlertRules` returns error, DO NOT fallback to other APIs — report the error to user and STOP execution. CLI format: `aliyun cms manage-alert-rules --body '{"action":"CREATE",...}'` 3. **Contact/Webhook Query First** — CMS 1.0: `DescribeContactGroupList`; CMS 2.0: `ListAlertWebhooks` is **MANDATORY before alert creation**. (CMS 2.0 other notification → console). DO NOT use CMS 1.0 APIs as substitute for CMS 2.0. Skipping webhook query is a critical failure. 4. **Resources Parameter** — (CMS 1.0) `--resources` must always be explicitly passed. 5. **Workspace Required** — (CMS 2.0) Must ask user for workspace value using AskUser tool. Never auto-construct (e.g. 'default', 'default-cms-{accountId}'). If AskUser fails, retry once with simplified options, then report error and STOP — do NOT proceed with fabricated values. 6. **Prometheus Required Params** — (CMS 2.0) `cluster_id` (instanceId) + `workspace` **MUST ASK USER** using AskUser tool. Never guess, omit, or auto-select. PromQL is generated based on user-provided cluster_id + monitoring target. If AskUser fails, STOP execution. 7. **APM Required Params** — (CMS 2.0) `service_id` (for `datasourceConfig.instanceId` AND `queryConfig.serviceIdList`) + `workspace` **MUST ASK USER** using AskUser tool. Never fabricate, use placeholders, or auto-select from discovered applications (e.g. via ListTraceApps). Discovery APIs are for reference only — final selection MUST come from user input. If AskUser fails, STOP execution. 8. **Required API Calls** — Every operation must call designated APIs even if values seem known. 9. **Dynamic Metric Discovery** — (CMS 1.0) MUST call `describe-metric-meta-list`. Use `metrics.md` only as fallback. 10. **CLI Timeout** — `--read-timeout 30` for queries, `--read-timeout 60` for writes. 11. **Duplicate Pre-check** — Query existing rules before creation to avoid duplicates. 12. **Mandatory Confirmation** — Show config summary and get user confirmation before execution. EVEN in automated/simulated environments, you MUST output a configuration summary block and explicitly state 'Waiting for user confirmation' before proceeding. Do NOT skip this step with excuses about automation. Example format:
【配置摘要】 告警类型: APM/Prometheus 阈值: 5% 严重级别: P2 通知方式: webhook 请确认以上配置是否正确(回复确认或修改意见):
13. **User-Agen
Official Alibaba Cloud Agent Skills collection, providing AI agents with rich Alibaba Cloud product capabilities and general-purpose tooling.
Other skills on alibabacloud-aiops-skills.
- /alibabacloud-agentbay-aio-skills
Execute code in a secure cloud sandbox via AgentBay SDK. Use this skill whenever users request to run, execute, or evaluate code (Python, JavaScript, R, Java), including plotting charts, running scripts, or viewing code output. Covers requests like "run this code", "execute
Open skill - /alibabacloud-agentloop-dataset
Operate Alibaba Cloud AgentLoop Dataset resources with aliyun CLI and the AgentLoop API version 2026-05-20. Use when requests concern AgentLoop datasets, data rows, Dataset schemas, embedding fields, semantic search, ExecuteQuery, AgentSpace data, 数据集, 数据写入, 数据查询, 语义检索, or ask
Open skill - /alibabacloud-agentloop-evaluation
Orchestrate AgentLoop evaluation workflows through the Aliyun CLI plugin with safe previews, saved evaluator and evaluator-skill management, one-shot sample tests, trace or dataset batch runs, polling, and result inspection. Analyze evaluation quality and low-score cases from
Open skill - /alibabacloud-agentloop-experience
Proactively use AgentLoop Recall to retrieve prior Alibaba Cloud AgentLoop experience through the bundled SearchContext CLI whenever the user asks or implies that prior work may help. Trigger for requests to check, search, recall, retrieve, look up, review, consult, reference,
Open skill - /alibabacloud-agentloop-management
AgentLoop APM接入 / AI可观测接入 / 应用监控接入 / 自研探针 / 探针安装. Use for Python aliyun-bootstrap (aliyun-instrument), Java AliyunJavaAgent, Golang instgo, Node.js cms_node_sdk, PHP/.NET OpenTelemetry, ack-onepilot, LicenseKey, AgentLoop workspace agentloop-*. Also for LangChain, Dify,
Open skill - /alibabacloud-avatar-video
Use Alibaba Cloud DashScope API and LingMou to generate AI video and speech. Seven capabilities — (1) LivePortrait talking-head (image + audio → video, two-step), (2) EMO talking-head, (3) AA/AnimateAnyone full-body animation (three-step), (4) T2I text-to-image (Wan 2.x, default
Open skill

