# 安装 github

- 类型: Skill 技能
- 说明: 通过 GitHub CLI 管理议题、PR、日志、发布与仓库查询等开发协作任务
- 仓库: https://github.com/openclaw/openclaw
- ⚠ 安全: 该技能材料本身属于提示/文档型，用于指导调用 GitHub CLI，未见内置恶意代码、隐藏外传端点或超范围权限申请。主要注意点在于实际使用 gh 时通常会涉及 GitHub 认证及向 GitHub 官方服务发送仓库/评论等内容，但基于现有材料更适合评为低风险到需留意，而非高风险。

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

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

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

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

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

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

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

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