# 安装 openclaw-test-heap-leaks

- 类型: Skill 技能
- 说明: 帮助定位 OpenClaw 测试中的内存增长、堆泄漏与 OOM 根因
- 仓库: https://github.com/openclaw/openclaw
- ⚠ 安全: 该技能材料显示其为用于测试内存排查的提示/文档型技能，无需密钥、未声明远程端点，且来源为高星开源 GitHub 仓库，整体风险较低。README 中出现本地命令与脚本路径，但在当前材料下更像操作指引而非内置执行能力，主要需留意其可能引导用户接触本地测试数据与脚本。

## 方式一 · 一键代装（复制提示词让 AI 代劳）

### Claude Code
```
请帮我安装 askskill 上的 "openclaw-test-heap-leaks" 技能：
1. 下载 https://raw.githubusercontent.com/openclaw/openclaw/main/.agents/skills/openclaw-test-heap-leaks/SKILL.md
2. 保存为 ~/.claude/skills/openclaw-test-heap-leaks/SKILL.md
3. 装好后重载技能，告诉我可以用了
```

### Codex
```
请帮我安装 askskill 上的 "openclaw-test-heap-leaks" 技能：
1. 下载 https://raw.githubusercontent.com/openclaw/openclaw/main/.agents/skills/openclaw-test-heap-leaks/SKILL.md
2. 保存为 ~/.codex/skills/openclaw-test-heap-leaks/SKILL.md
3. 装好后重载技能，告诉我可以用了
```

### Cursor
```
请帮我安装 askskill 上的 "openclaw-test-heap-leaks" 技能：
1. 下载 https://raw.githubusercontent.com/openclaw/openclaw/main/.agents/skills/openclaw-test-heap-leaks/SKILL.md
2. 保存为 ~/.cursor/skills/openclaw-test-heap-leaks/SKILL.md
3. 装好后重载技能，告诉我可以用了
```

## 方式二 · 命令行安装（原生命令与配置）

### Claude Code
```bash
mkdir -p '~/.claude/skills/openclaw-test-heap-leaks' && curl -fsSL 'https://raw.githubusercontent.com/openclaw/openclaw/main/.agents/skills/openclaw-test-heap-leaks/SKILL.md' -o '~/.claude/skills/openclaw-test-heap-leaks/SKILL.md'
```

### Codex
```bash
mkdir -p '~/.codex/skills/openclaw-test-heap-leaks' && curl -fsSL 'https://raw.githubusercontent.com/openclaw/openclaw/main/.agents/skills/openclaw-test-heap-leaks/SKILL.md' -o '~/.codex/skills/openclaw-test-heap-leaks/SKILL.md'
```

### Cursor
```bash
mkdir -p '~/.cursor/skills/openclaw-test-heap-leaks' && curl -fsSL 'https://raw.githubusercontent.com/openclaw/openclaw/main/.agents/skills/openclaw-test-heap-leaks/SKILL.md' -o '~/.cursor/skills/openclaw-test-heap-leaks/SKILL.md'
```
