alibabacloud-cms-alert-rule-create — Claude Code skill
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.
no license 288 installs ★ 300 updated 2026-10-23
npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-cms-alert-rule-create -a claude-codeWhat alibabacloud-cms-alert-rule-create 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.
What it helps with
- 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 for the agent
- Create an alert for CPU usage on an ECS instance in
cn-beijingregion - Set up a Prometheus alert using PromQL to track job queue depth
- List all alert rules tied to my APM application
How to install alibabacloud-cms-alert-rule-create
1Skills CLI (Vercel)
npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-cms-alert-rule-create -a claude-code2Manually: put the files in place
~/.claude/skills/alibabacloud-cms-alert-rule-create/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/alibabacloud-cms-alert-rule-create/
1Skills CLI (Vercel)
npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-cms-alert-rule-create -a codex2Manually: put the files in place
.agents/skills/alibabacloud-cms-alert-rule-create/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-cms-alert-rule-create -a cursor2Manually: put the files in place
.cursor/skills/alibabacloud-cms-alert-rule-create/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install aliyun/alibabacloud-aiops-skills skills/middleware/cms/alibabacloud-cms-alert-rule-create2Manually: put the files in place
.github/skills/alibabacloud-cms-alert-rule-create/SKILL.md1Skills CLI (Vercel)
npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-cms-alert-rule-create -a gemini-cli2Platform CLI
gemini skills install https://github.com/aliyun/alibabacloud-aiops-skills --path skills/middleware/cms/alibabacloud-cms-alert-rule-createManually: put the files in place
.devin/skills/alibabacloud-cms-alert-rule-create/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-cms-alert-rule-create -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about alibabacloud-cms-alert-rule-create
How do I install alibabacloud-cms-alert-rule-create in Claude Code?
Run npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-cms-alert-rule-create -a claude-code, then open the file ~/.claude/skills/alibabacloud-cms-alert-rule-create/SKILL.md to activate it.
What does alibabacloud-cms-alert-rule-create do?
It creates and queries alert rules in Alibaba Cloud. It supports monitoring standard cloud resources (ECS, RDS, SLB, and others) via CMS 1.0 and advanced monitoring (Prometheus, APM, UModel) via CMS 2.0. It picks the right API automatically.
What information do I need to create an alert in CMS 2.0?
For Prometheus alerts, provide the cluster ID and workspace. For APM alerts, provide the service ID and workspace. The skill prompts you for these values interactively without auto-filling.