android-gatt-server

Implement Android GATT server callbacks and service hierarchies for BLE peripherals.

Updated Jul 20, 2026
One-click install
npx skills add https://github.com/trancee/MeshLink-template --skill android-gatt-server
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: android-gatt-server
Source: https://github.com/trancee/MeshLink-template/tree/main/.agents/skills/android-gatt-server
Command: npx skills add https://github.com/trancee/MeshLink-template --skill android-gatt-server

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies the complex, state-sensitive implementation of Android GATT servers, ensuring developers correctly handle connection callbacks, service hierarchies, and notification flow control without common pitfalls.

Core Features & Use Cases

  • Service Hierarchy Management: Provides a structured approach to defining primary services, characteristics, and descriptors including CCCD setup.
  • Callback Orchestration: Offers a reliable template for handling the 12 critical BluetoothGattServerCallback events, including mandatory response management.
  • Use Case: When building a custom BLE peripheral on Android, use this Skill to correctly implement read/write requests, manage MTU negotiation, and ensure notification delivery via proper onNotificationSent sequencing.

Quick Start

Use the android-gatt-server skill to generate a boilerplate implementation for a custom BLE service that supports read, write, and notification properties.

Frequently Asked Questions about android-gatt-server

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement an Android GATT server to host BLE peripheral services?

It orchestrates the 12 critical BluetoothGattServerCallback events, including mandatory response management for read/write requests and MTU negotiation, preventing common state-sensitive implementation pitfalls.

What is the best way to ensure reliable BLE notification delivery on Android?

It provides a reliable template for handling the 12 critical BluetoothGattServerCallback events, including mandatory response management for read/write requests and MTU negotiation, preventing common state-sensitive implementation pitfalls.

How do I define a BLE primary service hierarchy with characteristics and descriptors on Android?

It provides a structured approach to defining primary services, characteristics, and descriptors including CCCD setup, ensuring compliance with the Bluetooth Core Specification for attribute handling.

Why does my Android BLE peripheral drop connections or fail to handle attribute requests correctly?

It provides a structured approach to defining primary services, characteristics, and descriptors including CCCD setup, ensuring compliance with the Bluetooth Core Specification for attribute handling.

Can I build a custom Android BLE peripheral that supports read, write, and notification properties?

It provides a structured approach to defining primary services, characteristics, and descriptors including CCCD setup, ensuring compliance with the Bluetooth Core Specification for attribute handling.