/shiny:shiny-accessorysetupfrom shiny
Generate code using Shiny.BluetoothLE.AccessorySetup - the system accessory pairing sheet for BLE devices (AccessorySetupKit on iOS 18+, CompanionDeviceManager on Android) with no MFi, no location prompt and no general Bluetooth prompt on iOS; picked accessories open as Shiny.BluetoothLE peripherals, and Android adds background presence (device appeared / disappeared) events
Ships in shiny. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Shiny.BluetoothLE.AccessorySetup)The OS's own "set up your accessory" UI for a BLE device, behind one API:
| iOS 18+ | Android 8+ | |
|---|---|---|
| Framework | AccessorySetupKit | CompanionDeviceManager |
| UI | Half-sheet with product image | System dialog (no image) |
Proximity (AccessoryRange.Immediate) | Yes | Ignored |
| Replaces | Bluetooth permission prompt (if the app never scans) | Location permission for scanning - not BLUETOOTH_CONNECT |
| Presence wake-ups | No | Android 12+ (StartObservingPresence) |
| MFi / registration | None | None |
Not AirPods' automatic popup (that is Apple-only proximity pairing; Android's equivalent is Google Fast Pair, which
needs firmware support and Google registration). The app must be in the foreground and call ShowPicker.
Elsewhere (net10.0, Windows, macOS, Mac Catalyst, Linux) nothing is registered - resolve
IAccessorySetupManager? and fall back to a normal IBleManager.Scan.
Namespaces: using Shiny.BluetoothLE.AccessorySetup; and using Shiny.BluetoothLE; (for GetPeripheral).
services.AddAccessorySetup(); // or AddAccessorySetup<MyAccessoryDelegate>()
AddAccessorySetup() also calls AddBluetoothLE(), so IBleManager is there to talk to picked accessories. Only
call AddBluetoothLE<TDelegate>() / AddBluetoothLE(appleConfig) yourself when you need a BLE delegate or Apple
configuration - before or after AddAccessorySetup(), both are kept.
public class PairingViewModel(IAccessorySetupManager setup, IBleManager ble)
{
public async Task Pair()
{
if (!setup.IsSupported)
return; // iOS < 18 or device without companion_device_setup: fall back to ble.Scan(...)
var accessory = await setup.ShowPicker(new AccessoryPickerItem(
"Shiny Sensor",
new AccessoryDiscoveryFilter
{
ServiceUuid = "6E400001-B5A3-F393-E0A9-E50E24DCCA9E",
Range = AccessoryRange.Immediate // iOS: only when held next to the phone
})
{
ProductImage = "sensor.png", // iOS: bundle image name or file path; transparent PNG
AllowRename = true // iOS
});
if (accessory == null)
return; // dismissed or nothing found - not an error
var peripheral = ble.GetPeripheral(accessory); // no scan needed
await peripheral!.ConnectAsync();
}
}
ShowPicker returns null when the user dismisses the sheet or nothing is found. It throws
AccessorySetupException for a real failure: PickerAlreadyActive, Restricted, InvalidRequest (bad filter, or a
filter missing from Info.plist), NotSupported, Failed.ServiceUuid / CompanyIdentifier is required; ServiceData needs
ServiceUuid; ManufacturerData needs CompanyIdentifier (bytes after the 2 company-id bytes); masks match their
data's length. NameSubstring narrows further. RequiresPairing = true makes the iOS sheet run LE bonding.new AccessoryPickerOptions { AndroidSingleDevice = true } asks "pair with this device?" for the first match only.
DiscoveryTimeout is iOS 26+.GetAccessories() lists current grants; Remove(accessory) revokes one.SetupAccessory.Identifier = iOS Bluetooth identifier / Android association id (MAC address before Android 13).
PeripheralUuid is the Shiny peripheral id; MacAddress is Android only.public class MyAccessoryDelegate : IAccessorySetupDelegate
{
// every method has a no-op default - override what you need
public Task OnAccessoryRemoved(SetupAccessory accessory) => ...; // incl. user removing it in Settings (iOS)
public Task OnAccessoryChanged(SetupAccessory accessory) => ...; // iOS rename / state change
public Task OnPresenceChanged(SetupAccessory accessory, bool isNearby) => ...; // Android 12+, app woken if needed
}
Android presence:
if (setup.IsPresenceSupported)
await setup.StartObservingPresence(accessory); // StopObservingPresence to undo
<key>NSAccessorySetupSupports</key>
<array><string>Bluetooth</string></array>
<key>NSAccessorySetupBluetoothServices</key>
<array><string>6E400001-B5A3-F393-E0A9-E50E24DCCA9E</string></array>
<!-- when the filters use them: NSAccessorySetupBluetoothCompanyIdentifiers (each CompanyIdentifier) -->
<key>NSAccessorySetupBluetoothNames</key>
<array><string>Shiny</string></array>
Leave NSBluetoothAlwaysUsageDescription out (and never call Scan) to avoid the Bluetooth prompt entirely -
CoreBluetooth then only sees picked accessories. Add it back if the app must also scan for other devices.
<uses-feature android:name="android.software.companion_device_setup" android:required="false" />
<!-- GATT on Android 12+ still needs this runtime permission -->
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
<!-- only for StartObservingPresence -->
<uses-permission android:name="android.permission.REQUEST_OBSERVE_COMPANION_DEVICE_PRESENCE" />
ShinyCompanionDeviceService is declared by the package (merged into the manifest). The picker's result comes back
through the activity result, so the host must forward OnActivityResult (MAUI does; native hosts derive from
ShinyAndroidActivity).
ASAccessorySession or call CompanionDeviceManager.Associate alongside this package.ShowPicker result as an error.IsPresenceSupported is false there.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub shinyorg/skills --plugin shiny57 skills in this plugin
/localizegenGenerate strongly-typed localization classes from .resx resource files using Shiny.Extensions.Localization.Generator for .NET applications/shiny-actorsGenerate code using Shiny.Actors — Orleans-style virtual actors without the ceremony, AOT/trim-clean, running anywhere .NET runs including .NET MAUI and Blazor WebAssembly. Covers actor interfaces and source-generated proxies, the ShinyActorBuilder (AddShinyActors), persistent state with ETags, named states and auto-save, event-sourced JournaledActor with snapshots, state and event migrations, typed streams (durable, implicit consumers), timers and persistent reminders (background jobs via Shiny.Jobs, on-time OS notifications via Shiny.Notifications), concurrency control ([Reentrant], [AlwaysInterleave], [ReadOnly], [StatelessWorker]), call filters and request context, OpenTelemetry traces and metrics, remoting over HTTP (Shiny.Net.HttpServer server, RemoteActorSystem client), mDNS discovery of actor servers, Shiny.DocumentDb storage (SQLite, PostgreSQL, IndexedDB...), and the ActorTestHost testing kit./shiny-agesignalsGenerate code using Shiny.AgeSignals to read the user's age range as the app store shares it - Apple Declared Age Range (iOS / macOS 26+) and Google Play Age Signals (Android) - for app store accountability laws (Texas SB 2420, Utah, Louisiana, California AB 1043) and age-gated features/shiny-aiconversationGenerate code for Shiny.AiConversation v3 - session-based AI conversations for .NET over Microsoft.Extensions.AI with persisted, resumable sessions (IAiSessionManager / IAiSession / IAiTurn), streaming replies, the built-in ask_user tool for typed questions and multiple-choice answers, interruption and supersession, usage and context-window pressure tracking, rolling context compaction, silent assistant memory, conversation search, session titles and long-term memory, session interceptors for tools and prompts, pluggable session/memory stores (in-memory or SQLite via Shiny.AiConversation.Stores.SqliteDocDb), and voice conversations via Shiny.AiConversation.Voice (wake word, push-to-talk, follow-up, quiet-word/barge-in interruption, sentence-streamed text-to-speech over Shiny.Speech, acknowledgement modes, sounds, voice selection tools), the MAUI chat UI via Shiny.AiConversation.Maui (AiChatView bound to a session with streaming bubbles, choice chips, push-to-talk and an AiMemoryView), image attachments with retention, and the use_camera tool via Shiny.AiConversation.Maui.Camera, and AG-UI via Shiny.AiConversation.AgUi (a session as an AG-UI event stream for the Shiny AgentView with ask_user questions as interrupts, the render_ui tool for A2UI surfaces, and a remote AG-UI agent as the chat client)/shiny-appdevicebridgeGenerate code using Shiny.AppDeviceBridge, device bridges on your app's own Shiny.Net.HttpServer that also host a web app (Blazor WebAssembly, React, Vue, any static build) inside a .NET MAUI app on Android, iOS, Mac Catalyst, Windows and the maui-labs macOS and Linux heads — served from a loopback HTTP server, updated over the air from a signed release server, GitHub releases or a provider of your own, and given device access through bridges with typed C# and TypeScript clients/shiny-appfunctionsGuide for exposing a .NET MAUI / .NET app's functions to Siri, Spotlight, Shortcuts and Apple Intelligence (App Intents) and to Gemini and other agents (Android AppFunctions) from one C# declaration using Shiny.AppFunctions - [AppFunction] records, typed handlers, [AppEntity] entities with queries, [AppShortcut] Siri phrases and delegatesOther plugins' skills for the same job