seed-forge/harness-ai-kit/diag-container-oom
Claude Code and agent skill by seed-forge/harness-ai-kit
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
容器 OOM 全链排查。从 dmesg OOM killer → cgroup memory limits → Docker/Compose memory 配置 → swap → 应用内存分析,定位根因并输出修复建议。
Install
npx vskill@latest install seed-forge/harness-ai-kit/diag-container-oomSKILL.md
The same SKILL.md was published earlier as seed-forge/harness-ai-kit/diag-container-oom.
Container OOM Full-Chain Diagnostics
用途
当容器被 OOM killed、docker inspect 显示 OOMKilled: true、或系统日志出现 OOM killer 记录时触发。
输入
- 目标主机 + 容器名称/ID
- 可选:Compose 文件路径
输出
- OOM 根因分析报告 + 修复建议
诊断步骤
Step 1: 确认 OOM 事件
Step 2: Cgroup 内存限制
Step 3: Compose / 运行时配置
Step 4: 系统内存状态
Step 5: 应用内存分析
输出模板
模式分类
| 症状 | 根因 | 修复 | |
|---|---|---|---|
| OOMKilled=true, exit 137 | 容器内存超限 | 增大 mem_limit 或修复内存泄漏 | |
| dmesg OOM, 容器未受限 | 系统内存耗尽 | 增大系统内存 / 限制其他进程 | |
| 无 OOM 但高 MemPerc | 接近限制但未触发 | 预防性增大 / 排查缓慢泄漏 | |
| Swap 全满 | 系统 swap 被撑满 | 限制容器 swap / 增大物理内存 |
告警阈值
| 指标 | Warning | Critical | |
|---|---|---|---|
| Container MemPerc | > 80% | > 95% | |
| System MemAvailable | < 20% | < 5% | |
| OOM kills/hour | > 1 | > 5 | |
| Swap usage | > 50% | > 80% |
推荐输出格式
执行完毕后,按以下格式输出结果:
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/diag-container-oom/SKILL.md
Popularity
- Repository stars
- 25
- Repository forks
- 2
- 7-day trend score
- 16
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/seed-forge/harness-ai-kit/diag-container-oom)