# alibabacloud-cms-alert-rule-create

alibabacloud-cms-alert-rule-create is a Claude Code skill for creating and managing Alibaba Cloud alert rules across CMS 1.0 cloud resources and CMS 2.0 Prometheus, APM, and UModel.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 288 installs · ★ 300 repo stars
- Author: aliyun
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/aliyun/alibabacloud-aiops-skills/tree/HEAD/skills/middleware/cms/alibabacloud-cms-alert-rule-create/SKILL.md
- Updated: 2026-10-23
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/alibabacloud-cms-alert-rule-create

## What it does

This skill bridges two monitoring systems in Alibaba Cloud. For cloud resources like ECS, RDS, SLB, OSS, Redis, and MongoDB, it uses CMS 1.0 with the `PutResourceMetricRule` API. For Prometheus, APM applications, and custom UModel metrics, it switches to CMS 2.0 with `ManageAlertRules`. The skill detects which workflow to use based on the alert type you describe.

The workflow follows these steps: lock the context (region, instances, workspace), generate a metric query by calling `describe-metric-meta-list` for CMS 1.0 or building PromQL/APM configuration for CMS 2.0, set detection thresholds and check frequency, pick notification channels (contact groups for CMS 1.0, webhooks for CMS 2.0), preview the config and confirm before running the CLI command. All API calls include the user-agent header `AlibabaCloud-Agent-Skills/alibabacloud-cms-alert-rule-create` and set timeouts to `--read-timeout 30` for queries and `--read-timeout 60` for writes.

For CMS 2.0 creation, the skill asks you for workspace value; Prometheus rules also need cluster ID, APM rules need service ID. No guessing or auto-completion happens here.

## Requirements
- Works with: Kubernetes

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-cms-alert-rule-create -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/alibabacloud-cms-alert-rule-create/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/alibabacloud-cms-alert-rule-create/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-cms-alert-rule-create -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/alibabacloud-cms-alert-rule-create/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-cms-alert-rule-create -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/alibabacloud-cms-alert-rule-create/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install aliyun/alibabacloud-aiops-skills skills/middleware/cms/alibabacloud-cms-alert-rule-create
```

2. **Manually: put the files in place**
- File: `.github/skills/alibabacloud-cms-alert-rule-create/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-cms-alert-rule-create -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/aliyun/alibabacloud-aiops-skills --path skills/middleware/cms/alibabacloud-cms-alert-rule-create
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/alibabacloud-cms-alert-rule-create/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-cms-alert-rule-create -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/aliyun/alibabacloud-aiops-skills/tree/HEAD/skills/middleware/cms/alibabacloud-cms-alert-rule-create/SKILL.md

## When to use it
- Set up CPU alerting on ECS or RDS without manual metric configuration
- Deploy a Prometheus alert to monitor a Kubernetes cluster in Alibaba Cloud
- Retrieve and check status of existing alert rules across your environment
- Add an APM alert with a custom threshold for a production application
- Bind notification contacts to an alert so the right team receives notifications

## Example prompts
- Create an alert for CPU usage on an ECS instance in `cn-beijing` region
- Set up a Prometheus alert using PromQL to track job queue depth
- List all alert rules tied to my APM application

## Similar
- [prometheus-expert](https://affpapa.org/en/nevibecode/skills/prometheus-expert.md) — skill · 204 installs
- [gke-alert-configuration](https://affpapa.org/en/nevibecode/skills/gke-alert-configuration.md) — skill · 3600 installs
- [newrelic](https://affpapa.org/en/nevibecode/plugins/newrelic.md) — plugin · ★ 6 repo stars
- [promql-generator](https://affpapa.org/en/nevibecode/skills/promql-generator.md) — skill · 685 installs
- [ops-investigate-alert](https://affpapa.org/en/nevibecode/skills/ops-investigate-alert.md) — skill · ★ 111 repo stars
- [prometheus-configuration](https://affpapa.org/en/nevibecode/skills/prometheus-configuration.md) — skill · 11228 installs

From the same set: [aliyun/alibabacloud-aiops-skills](https://affpapa.org/en/nevibecode/by/aliyun/alibabacloud-aiops-skills.md) — 66 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
