iot-protocols

iot-protocols is a skill for Claude Code from HermeticOrmus/LibreEmbed-Claude-Code. It costs 84 tokens per session (4,558 once invoked), scanned A, original, MIT.

A reference library for IoT communication protocols, with selection guidance, message flows, device models, and example client code. It covers MQTT, CoAP, LwM2M, BLE GATT, LoRaWAN, Thread, and Zigbee.

In plain words
What is it for?
Use it to choose a protocol, design MQTT topics and delivery flows, model CoAP or LwM2M interactions, tune BLE connections, or build clients with Paho, Zephyr, or ESP-IDF.
Why use it?
It gives concrete patterns for comparing protocols and designing their message and connection behavior.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the iot-protocols plugin — 1 skill, 1 command, 1 agent shipped together

Good fit Use it to choose a protocol, design MQTT topics and delivery flows, model CoAP or LwM2M interactions, tune BLE connections, or build clients with Paho, Zephyr, or ESP-IDF.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hermeticormus/libreembed-claude-code/iot-protocols
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add HermeticOrmus/LibreEmbed-Claude-Code --skill iot-protocols
Clone the repo
git clone --depth 1 https://github.com/HermeticOrmus/LibreEmbed-Claude-Code

Made for: Claude Code.

Or install iot-protocols, the plugin that ships this one along with the rest of its 1 skill, 1 command, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for iot-protocols

README.md
[![agentmods](https://agentmods.dev/badge/skills/hermeticormus/libreembed-claude-code/iot-protocols/github.svg)](https://agentmods.dev/skills/hermeticormus/libreembed-claude-code/iot-protocols)
Your own site
<a href="https://agentmods.dev/skills/hermeticormus/libreembed-claude-code/iot-protocols"><img src="https://agentmods.dev/badge/skills/hermeticormus/libreembed-claude-code/iot-protocols/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for iot-protocols

Your own site · 80×15
<a href="https://agentmods.dev/skills/hermeticormus/libreembed-claude-code/iot-protocols"><img src="https://agentmods.dev/badge/skills/hermeticormus/libreembed-claude-code/iot-protocols.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,558 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00084 $0.04558
Opus 5.5 $0.00034 $0.01823
Sonnet 5.5 $0.00017 $0.00912
Haiku 4.5 $0.00008 $0.00456

Measured 2mo ago against content hash 3a4b9dd9ce9c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

iot-protocols scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/iot-protocols/skills/iot-protocols/SKILL.md · 464 lines

How it starts

The opening of the file, as written. The whole thing — 464 lines — stays where its author put it; the contents beside it link to each section on GitHub.

IoT protocols pattern library

Reference patterns for MQTT, CoAP, LwM2M, BLE GATT, LoRaWAN, Thread, and Zigbee.

Protocol selection matrix

Constraint MQTT (TCP) CoAP (UDP) LoRaWAN BLE GATT NB-IoT / LTE-M Thread
10-year battery target No Maybe Yes Yes (peripheral) Maybe Maybe
Internet reach Yes Yes Yes (via gateway) No Yes Maybe (via border router)
> 100 m range Yes (via WiFi) Yes (via WiFi) Yes (up to 10 km) No Yes Yes (mesh)
> 1 kbps throughput Yes Yes No Yes Yes Yes
At-least-once delivery Yes (QoS ≥ 1) Yes (CON) Yes (confirmed) Yes (indications) Yes Yes
Standard cloud ecosystem Yes Yes (less mature) Yes (TTN, etc.) No Yes Maybe

MQTT state machines

QoS 1 publish flow

PUBLISHER                   BROKER                    SUBSCRIBER
    |                          |                          |
    |─ PUBLISH (msg_id=N) ────→|                          |
    |                          |─ PUBLISH (msg_id=M) ───→|
    |                          |←── PUBACK (M) ──────────|
    |←─ PUBACK (N) ────────────|                          |

Retransmit logic:

  • If PUBACK not received within timeout (default 5-30s), publisher retransmits with DUP=1.
  • Subscriber may receive duplicate; deduplicate on app-side via msg_id.

QoS 2 publish flow

PUBLISHER                   BROKER
    |                          |
    |─ PUBLISH (id=N) ────────→|
    |←─ PUBREC (N) ────────────|
    |─ PUBREL (N) ────────────→|
    |←─ PUBCOMP (N) ───────────|

State persisted at publisher between PUBLISH and PUBCOMP. Retransmit PUBLISH if PUBREC times out; retransmit PUBREL if PUBCOMP times out.

LWT setup

In the CONNECT packet:

will_topic: /devices/${id}/status
will_payload: {"online": false}
will_qos: 1
will_retain: true

When broker detects ungraceful disconnect (TCP RST, keep-alive timeout), it publishes the will message. Subscribers see "device offline" without explicit signaling.

Read the full file on GitHub · 464 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 464 lines · 84 tokens per session scan A 3a4b9dd9ce9c

Subscribe to this mod's changes

iot-protocols is a skill published in the GitHub repository HermeticOrmus/LibreEmbed-Claude-Code (50 stars, last pushed 1mo ago), licensed MIT. It adds 84 tokens to every session and 4,558 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-01.

Related

iot-protocols compared with skills from other repositories

iot-protocols next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
iot-protocolsHermeticOrmus/LibreEmbed-Claude-CodeSkill501mo agoMITA84Claude Code
volt-otatonone-ai/tononeSkill842d agoMITA70Claude Code
volt-firmwaretonone-ai/tononeSkill842d agoMITA76Claude Code
volt-powertonone-ai/tononeSkill842d agoMITA65Claude Code
volt-drivertonone-ai/tononeSkill842d agoMITA63Claude Code
volt-recontonone-ai/tononeSkill842d agoMITA52Claude Code
iot-expertpersonamanagmentlayer/pclSkill461mo agoApache-2.0A59Claude Code