← Back to list

accessory-setup-kit
by nonameplum
Documentation formatted as skills for AI coding assistants. Includes a DocC converter for creating new skills.
⭐ 9🍴 1📅 Jan 18, 2026
SKILL.md
name: accessory-setup-kit description: AccessorySetupKit for privacy-preserving discovery and setup of Bluetooth, Wi-Fi, or Wi-Fi Aware accessories. Use for discovery sessions, picker-based authorization, migration, accessory renaming or removal, custom filtering, and required Info.plist declarations.
AccessorySetupKit
What to open
- Use
accessory-setup-kit/accessorysetupkit.mdfor all API details and key names. - Search within it for: "Discovering and configuring accessories",
ASAccessorySession,ASDiscoveryDescriptor,ASPickerDisplayItem,ASMigrationDisplayItem,ASPickerDisplaySettings, andASAccessoryEventType.
Workflow
- Identify whether the accessory uses Bluetooth, Wi-Fi, or Wi-Fi Aware and set up matching discovery properties.
- Declare required Info.plist keys for AccessorySetupKit and any Bluetooth identifiers.
- Create and activate
ASAccessorySession, then handle events on the provided queue. - Present a picker with
ASPickerDisplayItemitems that match the accessories you support. - Handle
.accessoryAddedto connect to the selected device; handle.accessoryRemovedand.accessoryChangedas needed.
Picker guidance
- A display item must include a descriptor with a Bluetooth identifier or Wi-Fi SSID/SSID prefix.
- For Bluetooth filters, provide at least a service UUID or company identifier, and optionally a name substring or manufacturer/service data mask pair.
- To do custom filtering, enable
filterDiscoveryResultsand handle.accessoryDiscoveredby creatingASDiscoveredDisplayItementries, then callupdatePicker(showing:completionHandler:). - If custom filtering needs unlimited time, set
discoveryTimeout = .unboundedand finish discovery withfinishPickerDiscovery(completionHandler:).
Migration and post-setup
- Use
ASMigrationDisplayItemto migrate previously-configured accessories into AccessorySetupKit. - Use setup and rename options on picker items when the user should rename or finish setup in-app.
Reminders
- Keep discovery descriptors specific to avoid broad Bluetooth access.
- For Wi-Fi Aware, set Wi-Fi Aware properties on
ASDiscoveryDescriptorbefore discovery. - Use the session event stream to keep app state in sync with user actions.
Score
Total Score
60/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
✓説明文
100文字以上の説明がある
+10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon