# alibabacloud-ecs-reboot-or-crash-diagnosis

alibabacloud-ecs-reboot-or-crash-diagnosis is a Claude Code skill that diagnoses unexpected reboots, system panics, and crash events across Alibaba Cloud ECS instances.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 214 installs · ★ 300 repo stars
- Author: aliyun
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/aliyun/alibabacloud-aiops-skills/tree/HEAD/skills/others/devopsimpl/alibabacloud-ecs-reboot-or-crash-diagnosis/SKILL.md
- Updated: 2026-10-23
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/alibabacloud-ecs-reboot-or-crash-diagnosis

## What it does

This diagnostic workflow applies a mandatory five-stage investigation pattern to server crashes. It begins by validating required user inputs (`INSTANCE_ID` and `REGION_ID`) and inspecting instance attributes. It checks historical maintenance event records via Alibaba Cloud API calls to verify whether hardware migrations or planned host updates triggered the reboot.

When instance-level failures like kernel panics or out-of-memory terminations occur, the agent moves deeper into operating system logs. It verifies whether Cloud Assistant is active, then executes target routines to examine Linux `kdump` configurations, `vmcore` files, and Windows crash dump records.

Diagnosis fails immediately if `aliyun-cli 3.3.3+` is absent or if credentials remain unconfigured outside the agent session.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-ecs-reboot-or-crash-diagnosis -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/alibabacloud-ecs-reboot-or-crash-diagnosis/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/alibabacloud-ecs-reboot-or-crash-diagnosis/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-ecs-reboot-or-crash-diagnosis -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/alibabacloud-ecs-reboot-or-crash-diagnosis/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-ecs-reboot-or-crash-diagnosis -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/alibabacloud-ecs-reboot-or-crash-diagnosis/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install aliyun/alibabacloud-aiops-skills skills/others/devopsimpl/alibabacloud-ecs-reboot-or-crash-diagnosis
```

2. **Manually: put the files in place**
- File: `.github/skills/alibabacloud-ecs-reboot-or-crash-diagnosis/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-ecs-reboot-or-crash-diagnosis -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/aliyun/alibabacloud-aiops-skills --path skills/others/devopsimpl/alibabacloud-ecs-reboot-or-crash-diagnosis
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/alibabacloud-ecs-reboot-or-crash-diagnosis/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-ecs-reboot-or-crash-diagnosis -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/aliyun/alibabacloud-aiops-skills/tree/HEAD/skills/others/devopsimpl/alibabacloud-ecs-reboot-or-crash-diagnosis/SKILL.md

## When to use it
- Pinpoint why an ECS instance experienced an abnormal reboot or crash
- Inspect Alibaba Cloud maintenance histories for underlying infrastructure events
- Review kernel panics and OOM errors from system crash dumps
- Verify Cloud Assistant reachability before attempting remote commands

## Example prompts
- Diagnose why instance i-bp1a2b3c4d5e6f7g8h9j in region cn-hangzhou rebooted
- Analyze the unexpected shutdown on ECS instance i-bp1234567890abcdef in cn-beijing
- Check crash dumps and maintenance records for i-bp1a2b3c4d5e6f7g8h9j in cn-shanghai

## Similar
- [aws-ecs-fargate](https://affpapa.org/en/nevibecode/skills/aws-ecs-fargate.md) — skill · 385 installs
- [huawei-cloud-ces-ecs-monitoring](https://affpapa.org/en/nevibecode/skills/huawei-cloud-ces-ecs-monitoring.md) — skill · 239 installs
- [huawei-cloud-ecs-alert](https://affpapa.org/en/nevibecode/skills/huawei-cloud-ecs-alert.md) — skill · 236 installs
- [aws-cloudformation-task-ecs-deploy-gh](https://affpapa.org/en/nevibecode/skills/aws-cloudformation-task-ecs-deploy-gh.md) — skill · ★ 372 repo stars
- [aws-cloudformation-ecs](https://affpapa.org/en/nevibecode/skills/aws-cloudformation-ecs.md) — skill · ★ 372 repo stars
- [aws-ecs](https://affpapa.org/en/nevibecode/rules/aws-ecs.md) — rule · ★ 3589 repo stars

From the same set: [aliyun/alibabacloud-aiops-skills](https://affpapa.org/en/nevibecode/by/aliyun/alibabacloud-aiops-skills.md) — 66 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
