# 安装 data-context-extractor

- 类型: Skill 技能
- 说明: Generate or improve a company-specific data analysis skill by extracting tribal knowledge from analysts.
BOOTSTRAP MODE - Triggers: "Create a data context skill", "Set up data analysis for our warehouse", "Help me create a skill for our database", "Generate a data skill for [company]" → Discovers schemas, asks key questions, generates initial skill with reference files
ITERATION MODE - Triggers: "Add context about [domain]", "The skill needs more info about [topic]", "Update the data skill with [metrics/tables/terminology]", "Improve the [domain] reference" → Loads existing skill, asks targeted questions, appends/updates reference files
Use when data analysts want Claude to understand their company's specific data warehouse, terminology, metrics definitions, and common query patterns.

- 仓库: https://github.com/anthropics/knowledge-work-plugins

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

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

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

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

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

### Claude Code
```bash
mkdir -p '~/.claude/skills/data-context-extractor' && curl -fsSL 'https://raw.githubusercontent.com/anthropics/knowledge-work-plugins/main/data/skills/data-context-extractor/SKILL.md' -o '~/.claude/skills/data-context-extractor/SKILL.md'
```

### Codex
```bash
mkdir -p '~/.codex/skills/data-context-extractor' && curl -fsSL 'https://raw.githubusercontent.com/anthropics/knowledge-work-plugins/main/data/skills/data-context-extractor/SKILL.md' -o '~/.codex/skills/data-context-extractor/SKILL.md'
```

### Cursor
```bash
mkdir -p '~/.cursor/skills/data-context-extractor' && curl -fsSL 'https://raw.githubusercontent.com/anthropics/knowledge-work-plugins/main/data/skills/data-context-extractor/SKILL.md' -o '~/.cursor/skills/data-context-extractor/SKILL.md'
```
