aliyun/alibabacloud-aiops-skills/alibabacloud-aes-sysom-os-diagnosis
Claude Code and agent skill by aliyun/alibabacloud-aiops-skills
- community
Checking that the SKILL.md file is still in the repository.
Perform SysOM deep OS-level diagnosis on Alibaba Cloud ECS instances to identify root causes of performance issues (CPU spikes, memory leaks, IO latency, etc.). Use when users report ECS instance performance problems, need kernel-level troubleshooting, or want to set up continuous automated diagnosis with instance enrollment and DingTalk alert notifications.
Install
npx vskill@latest install aliyun/alibabacloud-aiops-skills/alibabacloud-aes-sysom-os-diagnosisSKILL.md
The same SKILL.md was published earlier as aliyun/alibabacloud-aiops-skills/alibabacloud-aes-sysom-os-diagnosis.
alibabacloud-aes-sysom-os-diagnosis
Skill Name: alibabacloud-aes-sysom-os-diagnosisGoal: Perform SysOM deep OS-level diagnosis on Alibaba Cloud ECS instances, with optional instance enrollment and DingTalk alert configuration.
Credential Security
[CRITICAL] Credential Security Rules:- NEVER print, echo, or display AccessKey ID / AccessKey Secret values in conversation or command output (even partial masking ofLTAI_ACCESS_KEY_IDis FORBIDDEN)- NEVER ask the user to input AK/SK directly in the conversation or command line- NEVER usealiyun configure setwith literal credential values- ONLY usealiyun configure listto check credential status```bashaliyun configure list --user-agent AlibabaCloud-Agent-Skills```Check the output for a valid profile (AK, STS, or OAuth identity).If no valid profile exists, STOP here.1. Obtain credentials from Alibaba Cloud Console2. Configure credentials outside of this session (viaaliyun configurein terminal or environment variables in shell profile)3. Return and re-run afteraliyun configure list --user-agent AlibabaCloud-Agent-Skillsshows a valid profile
RAM Policy
For the full list of RAM permissions required by this skill, see references/ram-policies.md.
[MUST] Permission Failure Handling: When any command or API call fails due to permission errors at any point during execution, follow this process:1. Readreferences/ram-policies.mdto get the full list of permissions required by this SKILL2. Useram-permission-diagnoseskill to guide the user through requesting the necessary permissions3. Pause and wait until the user confirms that the required permissions have been granted
Parameter Confirmation
IMPORTANT: Parameter Confirmation — Before executing any command or API call,ALL user-customizable parameters (e.g., RegionId, instance names, CIDR blocks,passwords, domain names, resource specifications, etc.) MUST be confirmed with theuser. Do NOT assume or use default values without explicit user approval.
| Parameter | Required/Optional | Description | Default Value | |
|---|---|---|---|---|
region | Required | Region of the ECS instance (e.g., cn-hangzhou) | None, must be provided by user | |
instance_id | Required | ECS instance ID (e.g., i-bp1xxxxxxxx) | None, must be provided by user | |
ocd_description | Optional | Problem description (English only, e.g., high_cpu) | "" | |
start_time | Optional | Diagnosis start timestamp (Unix seconds) | 0 (real-time) | |
end_time | Optional | Diagnosis end timestamp (Unix seconds) | 0 | |
enable_diagnosis | Optional | Force real-time diagnosis (highest priority) | false | |
uid | Optional | Account ID owning the instance | None | |
skip_support_check | Optional | Skip instance support check (speeds up workflow) | false | |
cluster_id | Optional | ACK cluster ID (required for cluster enrollment) | None |
Core Workflow
The workflow has four phases with 14 steps. All aliyun CLI commands MUST include --user-agent AlibabaCloud-Agent-Skills.
Phase 1: Environment Setup (Steps 0–3)
Step 0 — Enable AI-Mode and Update Plugins
Before executing any CLI commands, enable AI-Mode, set User-Agent, and update plugins:
⚠️ The above three commands must be executed before all CLI operations, and only need to be run once.
Step 1 — CLI Version Check
Verify version >= 3.3.1. If not met, refer to references/cli-installation-guide.md for installation.
Step 2 — Enable Auto Plugin Installation
Step 3 — Credential Verification
If no valid credentials exist, STOP and guide the user to configure credentials outside the session.
Phase 2: Diagnosis Execution (Steps 4–9)
For detailed workflow, see references/diagnose-workflow.md.
Step 4 — Ambiguous Problem Clarification (Inversion Gate)
Must confirm region and instance_id. If not provided by the user, ask explicitly. Also extract optional ocd_description (must be translated to English), time range, etc.
⚠️ Time Inference Rule: When the user's description contains any temporal reference (e.g., "this morning", "yesterday afternoon", "around 3pm", "last night"), you MUST proactively ask for the specific time range and recommend historical diagnosis mode. Do NOT silently default to real-time diagnosis when the problem clearly occurred in the past.
Step 5 — Cloud Assistant Online Check
Check if CloudAssistantStatus is true in the response. If offline, terminate the pipeline.
Step 6 — SysOM Role Initialization
Step 7 — Instance Support Check
Step 8 — Invoke Diagnosis and Poll Results
Diagnosis Mode Decision Rules
- Real-time:
start_time=0,end_time=0 - Historical:
start_time=<unix_ts>,end_time=<unix_ts> - Forced real-time: when
enable_diagnosis=true, forcestart_timeto 0 even if provided
Build params JSON
Use snake_case keys (consistent with SDK). Required base fields (ALL must be included):
⚠️ Anti-confusion Warning: `"type": "ocd"` is a REQUIRED field inside the params JSON — do NOT omit it!--service-name ocd(CLI argument) and"type": "ocd"(params JSON field) are two different levels of parameters, both are mandatory:---service-name ocd→ tells CLI which diagnosis service endpoint to call-"type": "ocd"→ tells the diagnosis engine which diagnosis type to execute internallyDo NOT omit `"type": "ocd"` from params just because `--service-name` already specifies `ocd`!
Conditional fields (add only when non-empty):
ocd_description: problem description in English (e.g.,high_cpu)uid: account ID owning the instance (integer)
Invoke Diagnosis
Extract task_id from the response. If Sysom.TaskInProgress error is returned, extract the existing task_id from the error message and proceed to polling.
Poll Results (interval: 10s, max: 60 attempts)
Step 9 — Result Parsing and Output
Parse the returned JSON and present summary.overall_status, summary.root_cause, summary.suggestions, issues[], and other key information to the user.
Phase 3: Enrollment Recommendation (Steps 10–12)
For detailed workflow, see references/manage-and-alert-workflow.md.
Step 10 — Enrollment Recommendation and Intent Collection (Inversion Double Gate)
This step contains two strictly separated gates that MUST be executed in order — merging, skipping, or simplifying is FORBIDDEN.
10A — Prominent Enrollment Recommendation (First Gate)
⚠️ Mandatory Rule: After presenting diagnosis results, you MUST immediately output the following recommendation content verbatim. Do NOT abbreviate, omit, or rephrase in your own words.
Replace <instance_id> with the actual instance ID, then output the following content word-for-word:
<verbatim_output>
## 🔔 Recommendation: Enroll Instance for 24/7 Automated DiagnosisThe diagnosis just performed was a one-time manual operation. If you want SysOM to continuously protect this instance, we recommend instance enrollment.### After enrollment, you will get:- 🔍 Automated Diagnosis: When the instance experiences performance issues like CPU spikes, memory leaks, or IO latency, SysOM will automatically trigger deep diagnosis without manual intervention- 📲 DingTalk Alerts: Diagnosis reports will be automatically pushed to DingTalk group bots, notifying the ops team immediately- 🛡️ Continuous Monitoring: 24/7 uninterrupted protection, shifting from "investigate after problems occur" to "automatically told the root cause when problems occur"Would you like to enroll instance `<instance_id>`?
</verbatim_output>
After outputting the above, STOP. Wait for user reply. Do NOT ask about enrollment method in 10A.
- User declines → end the pipeline
- User agrees → proceed to Step 10B
10B — Ask Enrollment Method (Second Gate)
Only after the user explicitly agrees in 10A, output the following (replace <instance_id> and <region> with actual values):
<verbatim_output>
### Please choose an enrollment methodA. Enroll current instance onlyOnly enroll the instance just diagnosed:<instance_id>(<region>)B. Enroll ACK clusterIf this instance belongs to an ACK cluster, you can enroll all nodes in the cluster with one click.Newly added nodes will be automatically enrolled — no manual action needed.👉 Please provide the ACK Cluster ID (e.g.,c9d7f3fc3d42********c1100ffb19d)C. Enroll multiple specified instancesBatch enroll multiple instances.👉 Please provide the instance list in the formatInstanceID:Region, separated by spacesExample:i-xxx:cn-beijing i-yyy:cn-hangzhouPlease choose A / B / C, or tell me your requirements directly.
</verbatim_output>
After outputting the above, STOP. Wait for user reply.
Step 11 — Execute Enrollment
Fixed parameter values for `--agent-id`, `--agent-version`, `--config-id` in enrollment commands are listed in the "Fixed Parameters" table in [references/related-commands.md](references/related-commands.md).
Step 12 — Enrollment Status Confirmation
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/others/devopsimpl/alibabacloud-aes-sysom-os-diagnosis/SKILL.md
Popularity
- Repository stars
- 216
- Repository forks
- 27
- 7-day trend score
- 27
Stars and forks are for the whole GitHub repository, not this skill alone. 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/aliyun/alibabacloud-aiops-skills/alibabacloud-aes-sysom-os-diagnosis)