# 安装 component-fixtures

- 类型: Skill 技能
- 说明: 帮助开发者创建和维护组件截图测试夹具，并优化组件的可测试性。
- 仓库: https://github.com/microsoft/vscode
- ⚠ 安全: 该技能材料显示其为开源仓库中的纯文档/提示型组件夹具说明，不要求密钥、未声明远程端点，也未显示自身具备独立执行或数据外发能力。整体风险较低，主要需留意其描述中提到的外部工具调用仅属工作流提示，实际安全性仍取决于相关工具本身。

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

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

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

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

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

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

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

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