Skip to content

Commit 46197cd

Browse files
njb90claude
andcommitted
docs: use detectEditor() to pre-select IDE target in skills picker
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent c120446 commit 46197cd

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

docs/superpowers/specs/2026-03-31-configure-ai-tools-design.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,15 @@ Show a `canPickMany: true` QuickPick. Each item:
4848

4949
### IDE target selection
5050

51-
After skill selection, ask which AI tool to install for (single-select QuickPick):
51+
After skill selection, ask which AI tool to install for (single-select QuickPick). Use `detectEditor()` to pre-select the matching option as the active item — the user can change it but doesn't have to:
5252

53-
| Option | Install location |
54-
|--------|-----------------|
55-
| Claude Code | `.claude/skills/<name>/SKILL.md` + `.claude/skills/<name>/references/<file>` |
56-
| Cursor | `.cursor/rules/<name>.mdc` |
57-
| VS Code (Copilot) | `.github/copilot-instructions.md` |
53+
| Option | Pre-selected when | Install location |
54+
|--------|------------------|-----------------|
55+
| Claude Code | `unknown` or VS Code without Copilot signal | `.claude/skills/<name>/SKILL.md` + `.claude/skills/<name>/references/<file>` |
56+
| Cursor | `cursor` | `.cursor/rules/<name>.mdc` |
57+
| VS Code (Copilot) | `vscode` | `.github/copilot-instructions.md` |
58+
59+
`detectEditor()` returning `windsurf` or `antigravity` falls back to pre-selecting Claude Code (closest equivalent).
5860

5961
### Downloading and writing files
6062

0 commit comments

Comments
 (0)