# 安装 write-spec

- 类型: Skill 技能
- 说明: Write a feature spec or PRD from a problem statement or feature idea. Use when turning a vague idea or user request into a structured document, scoping a feature with goals and non-goals, defining success metrics and acceptance criteria, or breaking a big ask into a phased spec.
- 仓库: https://github.com/anthropics/knowledge-work-plugins

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

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

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

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

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

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

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

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