# accessorysetupkit

Guides AccessorySetupKit setup for Bluetooth and Wi-Fi accessory discovery in iOS 18+. Use it when moving away from permission-based CoreBluetooth scanning.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 3100 installs · ★ 1237
- Author: dpearson2699
- License: LicenseRef-Unknown · policy=link-only · description only; the file stays with the author
- Source: https://github.com/dpearson2699/swift-ios-skills/tree/HEAD/skills/accessorysetupkit/SKILL.md
- Updated: 2026-07-31
- HTML: https://affpapa.org/en/nevibecode/skills/accessorysetupkit

## What it does

This skill guides implementation of the AccessorySetupKit system picker for Bluetooth and Wi-Fi accessory discovery and authorization, with communication handed over to CoreBluetooth or NetworkExtension. It covers `ASDiscoveryDescriptor`, proximity rules, and accessory capability options.

It explains how to create `ASAccessorySession`, wait for `.activated`, display `ASPickerDisplayItem`, and react to added, changed, or removed accessories. A Wi-Fi descriptor uses either `ssid` or `ssidPrefix`; setting both causes an app crash.

Configure `Info.plist`, including `NSAccessorySetupSupports`, before using the picker. Bluetooth values in those keys must match the descriptor, or discovery crashes the app. That is a reason to check UUIDs, names, and identifiers before testing.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add dpearson2699/swift-ios-skills --skill accessorysetupkit -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/accessorysetupkit/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/accessorysetupkit/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add dpearson2699/swift-ios-skills --skill accessorysetupkit -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/accessorysetupkit/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add dpearson2699/swift-ios-skills --skill accessorysetupkit -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/accessorysetupkit/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install dpearson2699/swift-ios-skills accessorysetupkit
```

2. **Manually: put the files in place**
- File: `.github/skills/accessorysetupkit/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add dpearson2699/swift-ios-skills --skill accessorysetupkit -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/dpearson2699/swift-ios-skills --path skills/accessorysetupkit
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/accessorysetupkit/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add dpearson2699/swift-ios-skills --skill accessorysetupkit -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/dpearson2699/swift-ios-skills/tree/HEAD/skills/accessorysetupkit/SKILL.md

## When to use it
- configure the system accessory picker
- define BLE discovery matching rules
- set up a Wi-Fi accessory by SSID
- handle `ASAccessorySession` events
- move from CoreBluetooth permission scanning

## Example prompts
- “Set up AccessorySetupKit discovery for a BLE accessory using its service UUID.”
- “Show how to create `ASAccessorySession` and wait for `.activated`.”
- “Check the `Info.plist` rules for a Wi-Fi accessory using `ssidPrefix`.”

## Similar
- [xcode-project-setup](https://affpapa.org/en/nevibecode/skills/xcode-project-setup.md) — skill · 130700 installs
- [expo-migrate-module](https://affpapa.org/en/nevibecode/skills/expo-migrate-module.md) — skill · 19400 installs
- [clerk-swift](https://affpapa.org/en/nevibecode/skills/clerk-swift.md) — skill · 14500 installs
- [swiftdata-pro](https://affpapa.org/en/nevibecode/skills/swiftdata-pro.md) — skill · 9300 installs
- [cmux-architecture](https://affpapa.org/en/nevibecode/skills/cmux-architecture.md) — skill · 4900 installs
- [mobile-apps-create](https://affpapa.org/en/nevibecode/skills/mobile-apps-create.md) — skill · 4800 installs

From the same set: [dpearson2699/swift-ios-skills](https://affpapa.org/en/nevibecode/by/dpearson2699/swift-ios-skills.md) — 86 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
