Mobile BLE
БесплатноБез исполняемых скриптовНе проверенDesigns, implements and reviews Bluetooth Low Energy code in Android, iOS and Flutter apps: Android 12+ permissions, filtered scans, GATT operation queues…
от ahmadhussain0335278 установок в других каталогахОб этом скилле
Mobile BLE
Build and review the app side of a Bluetooth Low Energy link the way a senior connected-device engineer would: correct permissions per OS version, one GATT operation at a time, no assumptions about threads, explicit connection states, framed and checked messages, firmware updates that cannot brick the device, and logs that leak nothing. A good result works on real phones, recovers from drops, and survives hostile or corrupt input.
When to use
- Writing or changing scan, connect, discover, read, write, notify or disconnect code.
- Android BLE permissions, foreground services or background work for a connected device.
- CoreBluetooth central code, background mode, state restoration or reconnect logic.
- flutter_blue_plus code, or a Flutter plugin that talks to a peripheral.
- Designing or reviewing a packet protocol on top of GATT: framing, chunking, sequence numbers, CRC.
- Firmware update (DFU) flows driven by the app.
- "Status 133", "GATT error", "writes get lost", "notifications stop", "works on Pixel but not on X".
Not for: a full MASVS audit (use mobile-security), CRA or EN 18031 mapping (use mobile-eu-compliance),
general Kotlin or Swift style (use mobile-kotlin, mobile-swift).
Workflow
- Read the device contract first. Find the firmware protocol document: services, characteristics, opcodes, packet layout, CRC variant, timing, DFU procedure. The firmware document is authoritative. If a packet format, opcode or timing is not written down, ask; never guess it.
- Read the project setup.
- Android:
minSdk,targetSdk, manifest permissions, foreground service declarations. - iOS: deployment target,
Info.plistusage strings,UIBackgroundModes, restoration identifier. - Flutter:
pubspec.yamlBLE and permission plugins and their versions.
- Android:
- Load the platform reference for the code being touched: Android, iOS, Flutter.
- Model the link as a sealed connection state machine before writing callbacks (rule 9).
- Put every GATT operation behind one queue with a timeout per operation (rule 3).
- Design or check the wire protocol: framing above MTU, sequence numbers, CRC, bounds checks. Use Protocol and DFU.
- Plan background behaviour per platform: foreground service or Companion Device Manager on
Android,
bluetooth-centraland state restoration on iOS. - Test with fakes behind an interface, then on real hardware. See Testing.
- Report permissions,
Info.plistkeys, entitlements, foreground service types and background modes the change adds. These affect store review and signing and must be called out explicitly.
Platform facts (verified)
| Area | Fact |
|---|---|
| Android 12+ (API 31) | BLUETOOTH_SCAN, BLUETOOTH_CONNECT, BLUETOOTH_ADVERTISE are runtime permissions; legacy BLUETOOTH and BLUETOOTH_ADMIN get maxSdkVersion="30" |
neverForLocation |
Lets API 31+ scan without location; some beacons are filtered from results |
| Android 11 and lower | Scanning needs ACCESS_FINE_LOCATION |
| Android 13 (API 33) | writeCharacteristic(c, value, writeType) returns an Int status; byte-array callbacks; old forms deprecated |
| Android 14 (API 34) | Stack requests ATT MTU 517 on the first requestMtu and ignores later requests |
| Android 14 (API 34) | Every foreground service declares a type; connectedDevice needs FOREGROUND_SERVICE_CONNECTED_DEVICE |
| Android 16 (API 36) | Bond loss: system keeps the bond and shows a dialog; ACTION_KEY_MISSING and ACTION_ENCRYPTION_CHANGE intents (OEM behaviour varies) |
| Android 17 (API 37) | connectGatt(BluetoothGattConnectionSettings, Executor, BluetoothGattCallback) added; the Context overloads are deprecated; autonomous re-pairing after bond loss |
| iOS 13+ | NSBluetoothAlwaysUsageDescription is required to use Bluetooth |
| iOS | connect(_:options:) never times out; queue: nil delivers delegate calls on the main queue |
| iOS | Background scanning needs bluetooth-central and explicit service UUIDs |
| iOS 26 | Per TN3115, some relaunch cases are limited to apps that set up accessories with AccessorySetupKit |
| flutter_blue_plus 2.x | connect takes a required license: argument; commercial use needs a paid license |
Re-check these against the official pages before quoting them in a design document. Versions move.
Rules
1. Declare permissions per API level and check them before every call
<!-- BAD: location requested on Android 12+ for no reason, no legacy caps -->
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<!-- GOOD: app never derives location from scans -->
<uses-permission android:name="android.permission.BLUETOOTH" android:maxSdkVersion="30" />
<uses-permission android:name="
Установить Mobile BLE в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Mobile BLE?
Designs, implements and reviews Bluetooth Low Energy code in Android, iOS and Flutter apps: Android 12+ permissions, filtered scans, GATT operation queues, MTU, bonding, status 133, CoreBluetooth threading and state restoration, flutter_blue_plus, framing, CRC, safe firmware updates (DFU) and connection state machines. Use when writing or reviewing BLE scan, connect, read, write or notify code, reconnect logic or device protocols.
Как установить скилл Mobile BLE?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Mobile BLE запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic