android-ble-gatt-queue
Installation
SKILL.md
Android BLE GATT Queue
Step 1: Define the serialization contract
- DEFINE overlapping operations | wrong callback | timeout/hang | caller cancellation | disconnect/reconnect | subscription race | queue backpressure | migration.
- IDENTIFY connection owner/epoch, callback executor/thread, supported GATT operations, submission return contract, expected callback type/target/result, per-operation timeout, caller cancellation semantics, queue capacity, reconnect policy, and unsolicited event consumers.
- READ the official
BluetoothGattandBluetoothGattCallbackmethods for every queued operation/API branch. - READ
references/article-audit.mdbefore reusing the supplied article's sample; its loop does not wait for callbacks and several callback/signature/value assumptions are incorrect. - ROUTE connection/status failures to
android-ble-gatt-status, localBluetoothGattServercallbacks toandroid-ble-gatt-server, connection/scan/background/permission ownership toandroid-ble, logical GATT procedure/schema toble-protocol-stack, throughput toble-throughput, and generic structured-concurrency choices tokotlin-coroutines.
Completion: each operation has one submission, one matching completion callback, one timeout/reset policy, and one caller result type.
Step 2: Inspect queue candidates
RUN from the Android project root:
python3 scripts/inspect-project.py --root . --json