# 安装 batch-bug-shepherd

- 类型: Skill 技能
- 说明: Use this skill to drive a batch of suspected bugs in microsoft/apm from raw issue list to mergeable PR queue. Fan out one triage subagent per issue (LEGIT / UNCLEAR / FIXED-AT-HEAD), gate every legit bug against PRINCIPLES.md via an apm-ceo strategic-alignment pass, cross-reference legit issues against open PRs, then open a fix PR (TDD + mutation-break gate) for greenfield bugs. Drive every PR -- community in-flight and own fix alike -- to mergeable by composing the shepherd-driver skill: one driver per PR runs the review panel, folds non-blocking recommendations, pushes (preserving author), and watches CI to green. Re-probe mergeability and resolve conflicts via shepherd-driver. Maintain a plan.md ground-truth table as canonical state. Activate when the maintainer asks to triage issues, sweep the bug queue, shepherd bug-flagged issues, run a weekly community sweep, or drive in-flight community PRs to merge -- even if "shepherd" or "batch" is not named.
- 仓库: https://github.com/microsoft/apm

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

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

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

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

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

### Claude Code
```bash
mkdir -p ~/.claude/skills/batch-bug-shepherd && curl -fsSL https://raw.githubusercontent.com/microsoft/apm/main/.agents/skills/batch-bug-shepherd/SKILL.md -o ~/.claude/skills/batch-bug-shepherd/SKILL.md
```

### Codex
```bash
mkdir -p ~/.codex/skills/batch-bug-shepherd && curl -fsSL https://raw.githubusercontent.com/microsoft/apm/main/.agents/skills/batch-bug-shepherd/SKILL.md -o ~/.codex/skills/batch-bug-shepherd/SKILL.md
```

### Cursor
```bash
mkdir -p ~/.cursor/skills/batch-bug-shepherd && curl -fsSL https://raw.githubusercontent.com/microsoft/apm/main/.agents/skills/batch-bug-shepherd/SKILL.md -o ~/.cursor/skills/batch-bug-shepherd/SKILL.md
```
