agentleFS
easyzoomeasyzoom/aix-skills/skills/ble-gatt-integration/SKILL.md

ble-gatt-integration

Skill36 starsChanged 5 months agoMITView on GitHub

Use when integrating, designing, or debugging BLE GATT services, characteristics, descriptors, MTU, notifications, indications, pairing, connection parameters, or throughput

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill to debug BLE GATT by separating advertising, connection, discovery, attributes, permissions, MTU, security, and data flow.

    line 10
  2. Distinctive:

    Use this skill when:

    line 16
  3. Distinctive:

    Do not use this skill when the device cannot advertise or connect at all.

    line 25
  4. Distinctive:

    Verify UUIDs, properties, permissions, descriptors, lengths, and endian/unit conventions.

    line 46
  5. Distinctive:

    Test read, write-with-response, write-without-response, notify, and indicate one at a time.

    line 50
  6. Distinctive:

    Before claiming BLE GATT works:

    line 75

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

BLE GATT Integration

Overview

Use this skill to debug BLE GATT by separating advertising, connection, discovery, attributes, permissions, MTU, security, and data flow. GATT failures are often permission or state-machine mismatches, not radio failures.

When To Use

Use this skill when:

  • The user is creating or debugging BLE services, characteristics, descriptors, notifications, indications, reads, writes, or subscriptions.
  • The issue involves missing services, write failures, CCCD problems, MTU, data truncation, pairing, bonding, connection parameters, or low throughput.
  • The stack is Zephyr, ESP-IDF, nRF Connect SDK, NimBLE, BlueZ, Android, iOS, or a vendor BLE SDK.

Do not use this skill when the device cannot advertise or connect at all. Start with platform-specific radio and controller bring-up first.

First Questions

Ask for:

  • BLE stack, device role, central/client app, peripheral firmware, and logs.
  • Advertising data, connection status, service UUIDs, characteristic UUIDs, and properties.
  • Attribute permissions, security level, pairing/bonding state, and CCCD state.
  • MTU, connection interval, PHY, data length extension, and payload size.
  • Sniffer trace or client error if available.

Debug Workflow

  1. Prove discovery. Confirm advertising, connection, primary service discovery, and attribute handles using a known BLE client.
  2. Check attribute contract. Verify UUIDs, properties, permissions, descriptors, lengths, and endian/unit conventions.
  3. Separate reads, writes, and subscriptions. Test read, write-with-response, write-without-response, notify, and indicate one at a time.
  4. Validate security. Match permissions to pairing, bonding, encryption, MITM, and key storage.
  5. Tune transport parameters. For throughput, check MTU, connection interval, PHY, data length, buffering, and application pacing.
  6. Test client diversity. Compare behavior on at least one generic tool and the real Android/iOS/client app.

Common Failures

  • Characteristic lacks the property needed by the client operation.
  • CCCD is not enabled before notifications are sent.
  • Attribute requires encryption but the client is not paired or bonded.
  • Payload exceeds negotiated MTU minus ATT overhead.
  • Indications are sent before the previous confirmation arrives.
  • Android/iOS cached an old GATT table after firmware changed.

Verification

Before claiming BLE GATT works:

  • State stack, role, service/characteristic UUIDs, permissions, and MTU.
  • Confirm discovery and each required operation with logs or a client trace.
  • Confirm security and bonding behavior if protected attributes are used.
  • Confirm throughput parameters if performance is part of the requirement.

Example

User:

BLE notify 开了但手机收不到数据。

Agent:

  1. Checks characteristic properties, CCCD subscription, and connection state.
  2. Verifies MTU and payload length.
  3. Uses a generic BLE client before debugging the mobile app.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.