mcpField
A
alibabacloud-sls-alerting

alibabacloud-sls-alerting

github.com/aliyunCloud & DevOps281113 installsUpdated 1d ago
Repository

About alibabacloud-sls-alerting

An Agent Skill for managing Alibaba Cloud SLS alert rules and notification settings, and diagnosing alert events through Aliyun CLI. It is intended for SLS operations and emphasizes reading existing configuration before changes and checking writes afterward.

Key features

  1. 01Manage alert rules
  2. 02Manage notification objects and policies
  3. 03Query alert history
  4. 04Diagnose alert triggers
  5. 05Read back and verify changes

Use cases

  1. 01Find or adjust alert rules
  2. 02Enable, disable, or mute rules temporarily
  3. 03Manage alert policies and content templates
  4. 04Analyze alert frequency and duration

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/aliyun/alibabacloud-aiops-skills --skill alibabacloud-sls-alerting

After installing, type/alibabacloud-sls-alertingin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
cli-installation-guide.md
manifest.json
references/diagnosis/
cause.md
diagnose.md
references/diagnosis/history/
center.md
execution-fields.md
project.md
references/examples/
latency-alert.md
references/notifications/
manage-notifications.md
references/notifications/action-policies/
action-conditions.md
actions.md
channels.md
create-update-action-policy.md
escalation.md
manage-action-policies.md
references/notifications/alert-policies/
create-update-alert-policy.md
manage-alert-policies.md
notification-grouping.md
references/notifications/api/
resource-records.md
references/notifications/objects/
manage-notification-objects.md
on-call.md
user-groups.md
users.md
references/notifications/objects/webhooks/
bots.md
custom-http.md
manage-webhook-integrations.md
references/notifications/templates/
channel-content.md
create-update-content-template.md
manage-content-templates.md
syntax.md

Details

From the project README

Alibaba Cloud SLS Alerting

Prerequisites

Complete these checks before executing commands; explanation-only requests do not require CLI setup.

Install Aliyun CLI

Run aliyun version to verify version >= 3.3.22. If missing or outdated, follow the CLI installation guide.

Update Plugins

Check aliyun sls version and the requested command's help. When an update is needed, update the SLS plugin:

aliyun plugin update --name sls
Profile selection

Use the CLI's configured profile by default; add --profile only when the user specifies a profile.

Observability (MUST follow for every aliyun api command)

Before the first cloud call, read this skill's manifest and use its top-level non-empty string version as {skill-version}. Stop and report an invalid or missing file/version; never guess it.

Generate a fresh random 32-character lowercase hexadecimal {session-id} for this skill in the conversation; reuse it for operations, pagination, and retries. When switching skills, read the selected skill's manifest and use its own session ID and version, including when returning to this skill.

Every cloud API command and request-only dry run MUST include this flag. Local configure, plugin, version, and help commands are exempt:

--user-agent "AlibabaCloud-Agent-Skills/alibabacloud-sls-alerting/{session-id} skill-version/{skill-version}"

Set SLS_ALERT_USER_AGENT to the resolved value and pass it double-quoted. Do not send literal placeholders, credentials, or personal identifiers.

Select the operation

Rules define when to raise alerts. Notification resources determine how those alerts are handled and sent. Event diagnosis explains an alert that occurred. Read the matching management or diagnosis entry, then follow only the references needed for the requested operation.

Skill usage troubleshooting

For problems running commands or bundled scripts, use skill usage troubleshooting. Rule behavior and alert outcomes belong to the functional branches above.

Shared operation boundaries

  • Read before replacement updates and preserve unrelated fields.
  • Execute changes covered by the user's request and existing authorization.
  • Read back writes and compare intended fields. Configuration success does not prove evaluation or delivery success.
  • NEVER run aliyun configure get.
  • NEVER extract or print AccessKey IDs, AccessKey secrets, or STS tokens from configuration files, environment variables, or command output. Never ask users to paste credentials. Let the CLI use its configured authentication.

Reference Documents

These references support all operation branches; consult them when needed.

Comments

Markdown supported