Skip to content

chopinfeng/awesome-hardware-skills / template

esp32-ble-gatt

Verified

Build ESP-IDF 5.x firmware for ESP32-C3/S3 that exposes BLE GATT services with NimBLE — advertising, characteristic read/write/notify, MTU and connection parameter tuning. Use when the user asks for a BLE peripheral, GATT server, or "make the ESP32 show up in nRF Connect", including sensor-over-BLE and phone-app pairing flows.

evals/tasks/02-gatt-notify.yaml

View on GitHub
id: 02-gatt-notify
level: medium
timeout_s: 900

prompt: |
  Add a BLE GATT server to the project. Advertise as "hwskill-demo", expose one service
  (UUID 0x181A, Environmental Sensing) with a single notify characteristic (UUID 0x2A6E,
  Temperature) that sends an int16 in units of 0.01 °C every second. Use a fake reading
  that ramps from 2000 to 2500 and wraps. Print "advertising started" over UART0 at 115200 baud when
  advertising begins.

build:
  cmd: idf.py build

flash:
  cmd: idf.py -p {port} flash

# bus_capture needs a central to connect so the sniffer can follow the connection and see notifications.
human_action: connect to "hwskill-demo" from nRF Connect on a phone, 3 s after time zero

assertions:
  - type: compile_only
  - type: serial_match
    baud: 115200
    pattern: 'advertising started'
    min_matches: 1
    within_s: 5
  # bus_capture is only available on simulators that expose a BLE sniffer (Renode with nRF)
  # or at L2 with a real dongle. Keep it here so L2 attesters know what to check.
  - type: bus_capture
    bus: ble
    expect:
      adv_name: hwskill-demo
      service_uuid: "181A"
      char_uuid: "2A6E"
      notify_count_min: 3
      within_s: 10               # connection starts at 3 s; ~7 notifications at 1 Hz by 10 s
    l1_skippable: true
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall