Install
openclaw skills install @sdk-team/alibabacloud-ecs-linux-os-troubleshootingTroubleshoot an Alibaba Cloud ECS Linux OS. Use when a user needs to diagnose a specified ECS Linux instance, such as instance stuck in Starting, boot stuck, SSH/VNC/Workbench login failure, network issues, disk/FS issues, performance anomalies, suspected mining or hidden processes, crash/hang, clock drift, or configuration not taking effect.
openclaw skills install @sdk-team/alibabacloud-ecs-linux-os-troubleshootingThis skill applies only to Linux GuestOS on Alibaba Cloud ECS and diagnoses abnormal issues on the Alibaba Cloud ECS Linux instance specified by the user (the target instance). The agent may run on the target instance or another machine, and uses the aliyun CLI to remotely diagnose and collect data from the target ECS instance.
references/ are written for the in-instance environment.references/utils/guestos-pe-prep.md, all other steps may only use the subcommands listed in references/aliyun-cli-cheatsheet.md. Do not call subcommands that are not listed there.references/<slug>.md troubleshooting document. Do not blindly guess commands on your own.references/ram-policies.md as the permission source of truth.Before starting the troubleshooting workflow, create the following 6 phase tasks with the progress checklist tool. After completing each phase, immediately mark the corresponding task as complete before moving to the next phase:
Validate all user-provided and model-derived values before placing them in an aliyun CLI command because invalid identifiers or shell metacharacters can target the wrong resource or change command meaning.
--biz-region-id): allow only Alibaba Cloud region identifiers such as cn-hangzhou; use ^[a-z]+-[a-z]+-[a-z0-9]+$ as the baseline pattern.InstanceIds and AdditionalOptions: build them with a JSON serializer or a quoted literal verified as valid JSON; do not concatenate untrusted fragments.StartTime <= EndTime.Use bounded waits for all polling operations because cloud operations may stay pending or fail silently. Default policy: poll every 10 to 20 seconds, stop after 10 minutes or 30 attempts, and then report the last observed status and the next safe action. A referenced document may define a shorter timeout for a specific operation.
Every aliyun CLI command must include the following user-agent parameter:
--user-agent AlibabaCloud-Agent-Skills/alibabacloud-ecs-linux-os-troubleshooting/{session-id}
Requirements:
session-id for each troubleshooting session.session-id for all aliyun CLI commands within the same troubleshooting session.session-id across different troubleshooting sessions.Example:
aliyun ecs describe-instances \
--biz-region-id <region-id> \
--instance-ids '["<instance-id>"]' \
--user-agent AlibabaCloud-Agent-Skills/alibabacloud-ecs-linux-os-troubleshooting/<session-id>
Execute the phases in order.
First, call DescribeInstances to query the instance information:
references/degraded-mode.md.Before opening any domain document, if the user's issue description is vague, first refine the issue through multi-turn dialogue. Use the aliyun CLI and questions to the user to complete the evidence and related environment information for when the abnormal issue occurred. This usually includes the following information:
| Dimension | Information to Complete | How to Obtain |
|---|---|---|
| Basic instance information, status, and specification | Instance status | Call aliyun CLI as needed |
| Scope | Whether it is reproducible; start and end time; whether there were changes, restarts, scale-out/scale-in, or configuration changes when the abnormal issue occurred | Ask the user |
| Access channel | Whether VNC is available; whether SSH/Workbench/Cloud Assistant is available | Ask the user |
| Network direction | External source to instance service port, instance to external network, only intra-VPC connectivity, etc. | Ask the user |
| Symptoms | Original error messages and screenshots | Ask the user |
Note: the instance status and the GuestOS status may be inconsistent. Even if the instance status is Running, the GuestOS kernel may have failed to start. This phase only completes the environment information; do not make any root cause judgment or output any conclusion.
references/symptom-to-domain.md, and select the phenomenon domain category and phenomenon domain based on the clarified abnormal issue description.references/<slug>.md. At the same time, ask the user to confirm whether the phenomenon domain is accurate. Enter Phase 3 only after it is confirmed as accurate. If the user says it is inaccurate, exclude the phenomenon domain selected in step 2 and show the TOP 3 secondary phenomenon domains to the user for confirmation. If the user says none of the secondary phenomenon domains applies, stop all subsequent workflows and recommend that the user submit an Alibaba Cloud support ticket.After opening the selected references/<slug>.md, complete the steps in the initial "Confirm Whether It Is a GuestOS Issue" section in order. Requirements:
Before entering detailed domain-specific investigation, first perform a quick investigation using the diagnostic tools recommended for the phenomenon domain.
references/phenomenon-domain.md to determine the list of diagnostic metric sets to call. If the recommended column is "—" (no recommended diagnostic metric set), skip this phase and enter Phase 5 directly.references/create-diagnostic-report.md to create resource diagnostic reports and run diagnostics. If the user does not agree, skip this phase. Notes:
Read the GuestOS-internal section of references/<slug>.md:
references/utils/<component-slug>.md, open the referenced document and perform component investigation in order. Requirements: collect data through the aliyun CLI (when GuestOS-internal data for the current phenomenon domain needs to be collected, use the plugin command aliyun ecs run-command to call the RunCommand OpenAPI action). Commands should be as detailed as possible, and should collect all data needed for this phenomenon domain in one run whenever possible to reduce the number of RunCommand executions.Finally, provide a summary and recommendations based on one of the following two situations:
references/diagnosis-report-template.md.Output contract:
| Path | Purpose |
|---|---|
symptom-to-domain.md | Natural language to phenomenon-domain routing |
phenomenon-domain.md | Authoritative table: unique identifier, concept, typical symptoms, slug, and recommended diagnostic tools |
aliyun-cli-cheatsheet.md | aliyun CLI quick reference (allowlisted subcommands) |
ram-policies.md | Least-privilege RAM actions required by the workflows |
create-diagnostic-report.md | Resource diagnostic report creation and interpretation |
degraded-mode.md | Available evidence and phase behavior when the instance is released or unreachable |
diagnosis-report-template.md | Diagnosis report template (used in Phase 6) |
references/<slug>.md | Complete troubleshooting workflows for each phenomenon domain |
references/utils/<component-slug>.md | GuestOS component-level investigation |
utils/guestos-console-log.md | Serial console log acquisition, keyword search, and context expansion |
utils/cloudmonitor-metrics.md | CloudMonitor metric queries and per-domain metric selection |
utils/guestos-malware-mining.md | Mining trojan and hidden process investigation |