Token导航 LogoToken导航

Agent Skill · 效率

alibabacloud-ecs-reboot-or-crash-diagnosis(阿里云 ecs 重启或崩溃诊断)

alibabacloud-ecs-reboot-or-crash-diagnosis 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 OpenClaw 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

alibabacloud-ecs-reboot-or-crash-diagnosis 是效率类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为接触敏感数据;许可证为 MIT-0,第三方扫描有提醒项,按安装量在效率类的 21,003 个 Skill 里排第 20,695。

总安装 1,304周安装 56GitHub Stars 公开资料未说明下载 457核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
0.0.1

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:alibabacloud-ecs-reboot-or-crash-diagnosis(阿里云 ecs 重启或崩溃诊断)
来源仓库:https://github.com/sdk-team/alibabacloud-ecs-reboot-or-crash-diagnosis
安装命令:
openclaw skills install alibabacloud-ecs-reboot-or-crash-diagnosis
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install alibabacloud-ecs-reboot-or-crash-diagnosis

这个 Skill 是做什么的

效率类 Skill 把重复的整理、汇总、转换工作交给助手完成,减少手工复制粘贴。

诊断 ECS 实例异常重启或崩溃的根本原因。首先检查维护事件,再通过云助手分析内核日志与进程状态。输出可能原因列表,如内核 panic 或资源耗尽。安装命令:openclaw skills install alibabacloud-ecs-reboot-or-crash-diagnosis。

若频繁发生需结合应用日志进一步分析,避免仅依赖平台层诊断。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install alibabacloud-ecs-reboot-or-crash-diagnosis;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

alibabacloud-ecs-reboot-or-crash-diagnosis 怎么安装?

在终端执行 openclaw skills install alibabacloud-ecs-reboot-or-crash-diagnosis。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

alibabacloud-ecs-reboot-or-crash-diagnosis 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

alibabacloud-ecs-reboot-or-crash-diagnosis 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

alibabacloud-ecs-reboot-or-crash-diagnosis 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

alibabacloud-ecs-reboot-or-crash-diagnosis 用的人多吗?

公开数据是累计安装 1,304 次,近一周安装 56 次,下载 457 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

alibabacloud-ecs-reboot-or-crash-diagnosis 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理效率类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

效率类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
github

GitHub 代码协作 · OpenClaw

7,632,918545需要联网MIT-0通过
nano-pdf

Nano PDF 文档 · OpenClaw

4,249,476231需要联网MIT-0通过
auto-updater

自动更新程序 · OpenClaw

2,964,063386操作浏览器MIT-0通过
video-frames

视频帧 · OpenClaw

2,621,304112需要联网MIT-0通过
gemini

Gemini 助手 · OpenClaw

2,547,39648需要联网MIT-0有提醒
alibabacloud-ecs-reboot-or-crash-diagnosis

阿里云 ecs 重启或崩溃诊断 · 本页

1,304—接触敏感数据MIT-0有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
alibabacloud-ecs-reboot-or-crash-diagnosis
description
Diagnose ECS instance reboot or crash issues. First checks for abnormal maintenance events, then uses Cloud Assistant to check for internal restarts or kernel panics. Use this skill when users report ECS instance unexpected reboot, crash, abnormal shutdown, kernel panic, or OOM. Supports vmcore file analysis, kdump configuration, system log analysis, and Windows crash dump analysis.
metadata
pattern
pipeline
steps
5
required_params
instance_id, region_id
domain
aiops
owner
ecs-team
contact
ecs-agent@alibaba-inc.com
ai-mode
disabled

ECS Instance Reboot/Crash Diagnosis

Diagnose root cause of ECS instance unexpected reboot or crash. Uses standard workflow: check platform maintenance events first, then check internal system logs. Supports both Linux and Windows systems.

Required Parameters

Before starting diagnosis, must obtain the following parameters from user:

ParameterDescriptionExample
INSTANCE_IDECS instance IDi-bp1a2b3c4d5e6f7g8h9j
REGION_IDRegion IDcn-hangzhou

If user does not provide any of the above parameters, must ask user first. Do not start diagnosis.

Mandatory Execution Rules

  1. Must obtain parameters first — Instance ID and Region ID are required. Must ask user if missing.
  2. Standard workflow cannot be skipped — Must execute in order: Maintenance Event Check → OSType Detection → System Log Check
  3. Must check Cloud Assistant status before diagnostics — Before executing Step 3A/3B, must verify Cloud Assistant is running via DescribeCloudAssistantStatus. If not running, provide alternative diagnostic approaches.
  4. All diagnostic conclusions must be based on actual data — No fabrication, speculation, or assumptions
  5. Output format must be strictly followed — After diagnosis, must read the complete template in references/output-format.md, output strictly according to template structure. No free-form output, no omitted sections, no changed hierarchy. Every placeholder {...} in the template must be filled with actual data.

Prerequisites

CLI Tools

  • aliyun-cli 3.3.3+ (required) — For calling Alibaba Cloud API
  • Installation & configuration: see CLI Installation Guide

AI-Mode Configuration (Required)

Before using aliyun CLI commands, must configure AI-Mode:

# Enable AI-Mode
aliyun configure ai-mode enable

# Set user-agent for skill identification
aliyun configure ai-mode set-user-agent --user-agent "AlibabaCloud-Agent-Skills/alibabacloud-ecs-reboot-or-crash-diagnosis"

# Update plugins
aliyun plugin update

After diagnosis complete, disable AI-Mode:

aliyun configure ai-mode disable

Alibaba Cloud Credentials

Credentials must be pre-configured outside of agent session. Agent only verifies:

aliyun configure list

Instance Requirements

  • Cloud Assistant client must be installed and running on the instance

- Alibaba Cloud Linux: Pre-installed by default - Ubuntu/CentOS/Other: May require manual installation, check with DescribeCloudAssistantStatus API - Installation guide: https://help.aliyun.com/document_detail/64930.html

  • Instance status must be Running
  • Note: If Cloud Assistant is not running, diagnostic commands cannot be executed remotely. Must provide manual diagnostic steps to user.

Required RAM Permissions

See RAM Policies for the complete permission list and custom policy example.


Step 1: Confirm Instance Information (Cannot Skip)

Verify instance exists and get basic information:

aliyun ecs describe-instances \
  --biz-region-id <REGION_ID> \
  --region <REGION_ID> \
  --instance-ids '["<INSTANCE_ID>"]'

Confirm from returned JSON:

  • RegionId — Region ID (matches user provided)
  • Status — Instance status (Running/Stopped)
  • InstanceName — Instance name
  • OSType — Operating system type (windows / linux)

Record OSType for Step 3 branch selection.


Step 2: Check ECS Maintenance Events

Query instance historical system events to determine if platform maintenance caused reboot:

aliyun ecs describe-instance-history-events \
  --biz-region-id <REGION_ID> \
  --region <REGION_ID> \
  --instance-id <INSTANCE_ID> \
  --event-cycle-status Executed

Event Analysis:

Event TypeMeaningDeterminationNext Step
SystemMaintenance.RebootReboot caused by system maintenancePlatform-initiated maintenanceInform user, no further investigation needed
SystemFailure.RebootReboot caused by underlying hardware/system failurePlatform infrastructure failureSuggest instance migration or contact support
InstanceFailure.RebootReboot caused by instance-level failureInstance internal issue detected by platformMust continue to Step 3 for system log check
InstanceExpiration.StopInstance stopped due to expirationBilling issueNeed renewal, no further investigation
No relevant eventsNo platform maintenance events foundNot platform-initiatedContinue to Step 3

Important Notes for InstanceFailure.Reboot:

  • This event indicates the platform detected an instance-level anomaly and triggered automatic recovery
  • Common causes: kernel panic, OOM, system hang, critical process failure
  • Must execute Step 3 to check system logs for root cause
  • Even if no obvious errors in logs, the instance may have been unresponsive at kernel level

If maintenance event found:

  • Clearly inform user of reboot cause (event type, time, reason)
  • Provide handling suggestions
  • End diagnosis flow

If no maintenance event found:

  • Continue to Step 3, check internal system logs based on OSType

Step 3A: Linux System Diagnosis (Execute when OSType is linux)

Step 3A.1: Check Cloud Assistant Status (Mandatory)

Before executing diagnostic commands, verify Cloud Assistant is running:

aliyun ecs describe-cloud-assistant-status \
  --biz-region-id <REGION_ID> \
  --region <REGION_ID> \
  --instance-id <INSTANCE_ID>

Check the response:

{
  "InstanceCloudAssistantStatusSet": {
    "InstanceCloudAssistantStatus": [
      {
        "InstanceId": "i-xxx",
        "RegionId": "cn-xxx",
        "CloudAssistantStatus": "true",
        "LastHeartbeatTime": "2026-04-09T07:26:58Z"
      }
    ]
  }
}

Important Notes:

  • CloudAssistantStatus is a string ("true"/"false"), not boolean
  • Check LastHeartbeatTime to ensure it's recent (within last few minutes)
  • Even if status is "true", RunCommand may still fail if service is unstable
  • Always check RunCommand execution result and handle failures gracefully
  • Ubuntu vs RHEL differences:

- RHEL/CentOS/Alibaba Cloud Linux: Service name is kdump, crash files named vmcore-* - Ubuntu/Debian: Service name is kdump-tools, crash files named dump.* and dmesg.* - Diagnostic script now checks both service names and all crash file types

If CloudAssistantStatus is false or command fails:

  • Cloud Assistant is not installed or not running on the instance
  • Cannot proceed with remote diagnostic commands
  • Alternative approaches:

1. Guide user to SSH into the instance and check logs manually 2. Provide manual diagnostic commands for user to execute 3. Suggest installing Cloud Assistant: Installation Guide 4. Check instance monitoring data via CloudMonitor API

If CloudAssistantStatus is true:

  • Proceed to Step 3A.2

Step 3A.2: Execute Linux Diagnostic Script

Execute Linux diagnostic script via Cloud Assistant to check:

  • System reboot records (last reboot, /var/log/messages or /var/log/syslog)
  • Kernel Panic records (dmesg)
  • OOM records and vm.panic_on_oom configuration
  • Kdump configuration and crash dump file status
  • Crash dump files: vmcore (RHEL/CentOS) or dump.*/dmesg.* (Ubuntu/Debian)

Complete diagnostic commands: see diagnostic-commands.md

Linux Result Analysis:

FindingPossible CauseSuggestion
Kernel Panic + crash dump (vmcore/dump.*)Kernel crash, dump file generatedRead dmesg.* file for panic reason, contact Alibaba Cloud technical support for deep analysis
Kernel Panic + no crash dumpKernel crash, but kdump not configured or not workingProceed to Step 5: Recommend Kdump configuration for future crash capture
OOM + panic_on_oom=1OOM triggered kernel panicDisable panic_on_oom or increase memory
OOM KillerMemory insufficient causing process killedOptimize memory usage or upgrade instance type
SysRq triggered crashManual crash trigger via /proc/sysrq-triggerCheck if intentional test, review bash history and audit logs
Normal reboot recordsUser or program triggered rebootCheck cron jobs or ops scripts
No abnormal recordsNo system-level issues foundMay be external factors, suggest monitoring

Step 3B: Windows System Diagnosis (Execute when OSType is windows)

Step 3B.1: Check Cloud Assistant Status (Mandatory)

Before executing diagnostic commands, verify Cloud Assistant is running:

aliyun ecs describe-cloud-assistant-status \
  --biz-region-id <REGION_ID> \
  --region <REGION_ID> \
  --instance-id <INSTANCE_ID>

Check the response:

  • CloudAssistantStatus: true — Cloud Assistant is running, proceed to Step 3B.2
  • CloudAssistantStatus: false — Cloud Assistant is not running

- Cannot proceed with remote diagnostic commands - Guide user to SSH/RDP into instance and run diagnostics manually - Suggest reinstalling Cloud Assistant: Windows Installation Guide

Step 3B.2: Execute Windows Diagnostic Script

Execute Windows diagnostic script via Cloud Assistant to check:

  • System uptime and unexpected shutdown events (Event ID 41, 1074, 6008, 6006)
  • Memory dump configuration and pagefile settings
  • MEMORY.DMP and minidump files existence
  • BSOD events and application crashes

Complete diagnostic commands: see diagnostic-commands.md

Windows Result Analysis:

FindingPossible CauseSuggestion
Event 41 (Kernel-Power)Unexpected shutdown/crashCheck for BSOD, dump files
Dump configured + dump file existsSystem crashed and captured dumpContact Alibaba Cloud technical support for dump file analysis
Dump configured + no dump fileCrash occurred but no dump capturedCheck pagefile and disk space
Dump not configuredCrash dumps disabledEnable memory dump for diagnosis
BSOD events foundBlue screen crash occurredCheck bug check code in dump
No abnormal eventsNo system-level crash recordsMay be power issue or external factor

Step 3.5: Get Cloud Assistant Command Output (Required after Step 3)

After executing diagnostic script via RunCommand, query the execution result:

aliyun ecs describe-invocations \
  --biz-region-id <REGION_ID> \
  --region <REGION_ID> \
  --instance-id <INSTANCE_ID> \
  --invoke-id <INVOKE_ID>

Important Notes:

  • Use --instance-id (not --instance-id.1) for describe-invocations API
  • The InvokeId is returned by the RunCommand API call
  • Decode the Output field from Base64 to get diagnostic results
  • Check InvokeStatus to ensure command execution completed successfully

Step 4: Analyze Crash Dump Files

If Step 3 found crash dump files (vmcore on Linux, MEMORY.DMP/minidump on Windows), perform preliminary analysis.

Complete analysis commands: see diagnostic-commands.md

Important: If Linux vmcore files need deep analysis or Windows dump files (MEMORY.DMP/minidump) are found, recommend the user contact Alibaba Cloud technical support team for professional crash dump analysis assistance.

Step 5: Recommend Kdump Configuration (If Not Configured)

If Step 3A found Kernel Panic records but no vmcore files, must advise user to configure Kdump.

When to Recommend Kdump Configuration

  • Kernel panic records found in dmesg or system logs, but /var/crash has no vmcore files
  • Kdump service status shows inactive or failed
  • /proc/cmdline does not contain crashkernel= parameter

Key Points to Communicate

  1. Why Kdump is needed: Without Kdump, kernel crashes will not generate vmcore files, making root cause analysis impossible.
  1. Configuration requirements:

- Reserve memory for crash kernel via crashkernel= kernel parameter - Enable and start the kdump (RHEL/CentOS) or kdump-tools (Ubuntu/Debian) service - Ensure sufficient disk space in /var/crash (or configured path)

  1. Configuration reference: Provide guidance from diagnostic-commands.md

Kdump Configuration Steps Summary

RHEL/CentOS/Alibaba Cloud Linux:

  1. Install: yum install -y kexec-tools
  2. Add crashkernel=auto to kernel parameters in /etc/default/grub
  3. Run grub2-mkconfig -o /boot/grub2/grub.cfg
  4. Reboot the instance
  5. Enable: systemctl enable --now kdump

Ubuntu/Debian:

  1. Install: apt-get install -y kdump-tools
  2. Set USE_KDUMP=1 in /etc/default/kdump-tools
  3. Run update-grub (crashkernel parameter usually auto-added)
  4. Reboot the instance
  5. Verify: systemctl status kdump-tools

Windows Memory Dump Configuration

If Step 3B found BSOD events but no dump files:

  1. Verify pagefile is configured and has sufficient size
  2. Enable memory dump: System Properties → Advanced → Startup and Recovery → Settings
  3. Select "Automatic memory dump" or "Kernel memory dump"
  4. Ensure CrashDumpEnabled registry value is not 0

Final Output (Must execute after diagnosis complete)

After all diagnostic steps complete, must do both of the following:

  1. Read references/output-format.md — Get complete output format template
  2. Output strictly according to template structure — Choose corresponding template based on actual result

References

平台分布

OpenClaw

74.12%
按下载量换算339

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills