mqtt-and-iot-edge-protocols

mqtt-and-iot-edge-protocols is a skill for Claude Code, Codex from hamzabellouch/agent-skills. It costs 88 tokens per session (2,822 once invoked), scanned A, original, MIT.

A guide to MQTT, MQTT-SN, and CoAP, communication protocols commonly used by small or intermittently connected devices. It covers telemetry, delivery levels, reconnecting, encryption, and compact data formats.

In plain words
What is it for?
Use it when building sensor-to-cloud pipelines, edge devices, MQTT clients, device reconnection logic, or secure telemetry systems.
Why use it?
It helps IoT devices communicate reliably over slow, unreliable, or low-power networks.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when building sensor-to-cloud pipelines, edge devices, MQTT clients, device reconnection logic, or secure telemetry systems.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hamzabellouch/agent-skills/mqtt-and-iot-edge-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 hamzabellouch/agent-skills --skill mqtt-and-iot-edge-protocols
Clone the repo
git clone --depth 1 https://github.com/hamzabellouch/agent-skills

Made for: Claude Code, Codex.

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 mqtt-and-iot-edge-protocols

README.md
[![agentmods](https://agentmods.dev/badge/skills/hamzabellouch/agent-skills/mqtt-and-iot-edge-protocols/github.svg)](https://agentmods.dev/skills/hamzabellouch/agent-skills/mqtt-and-iot-edge-protocols)
Your own site
<a href="https://agentmods.dev/skills/hamzabellouch/agent-skills/mqtt-and-iot-edge-protocols"><img src="https://agentmods.dev/badge/skills/hamzabellouch/agent-skills/mqtt-and-iot-edge-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 mqtt-and-iot-edge-protocols

Your own site · 80×15
<a href="https://agentmods.dev/skills/hamzabellouch/agent-skills/mqtt-and-iot-edge-protocols"><img src="https://agentmods.dev/badge/skills/hamzabellouch/agent-skills/mqtt-and-iot-edge-protocols.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,822 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.00088 $0.02822
Opus 5 $0.00044 $0.01411
Sonnet 5 $0.00018 $0.00564
Haiku 4.5 $0.00009 $0.00282

Measured 9d ago against content hash acda0e7ae29a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

mqtt-and-iot-edge-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 9d 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.

Embedded Systems and IoT/mqtt-and-iot-edge-protocols/SKILL.md · 287 lines

How it starts

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

MQTT & IoT Edge Protocols Production Standards

This skill provides production standards for IoT edge-to-cloud communication using MQTT (v3.1.1 / v5.0), MQTT-SN, and CoAP. It focuses on low-latency messaging, zero-allocation memory buffers, network resilience, payload optimization, and edge security.


1. Protocol Architecture & Decision Matrix

1.1 Protocol Selection Guide

Criterion MQTT v5.0 MQTT v3.1.1 MQTT-SN CoAP
Transport Layer TCP / TLS TCP / TLS UDP / DTLS UDP / DTLS
Header Overhead 2 - 5 bytes 2 bytes 2 - 7 bytes 4 bytes fixed
Connection Type Stateful Connection Stateful Connection Connectionless / Sleep Connectionless (RESTful)
Ideal Network Cellular, Wi-Fi, Ethernet Cellular, Wi-Fi, Ethernet LoRa, NB-IoT, Zigbee LPWAN, 802.15.4, Thread
Advanced Features User properties, Reason codes, Topic aliases Standard pub/sub Pre-defined topics, Sleep mode Resource discovery, Blockwise transfer

1.2 QoS (Quality of Service) Strategy

  • QoS 0 (At most once): High-frequency telemetry (e.g., sensor streaming at 10Hz). Dropped packets are tolerable. Minimum memory and bandwidth.
  • QoS 1 (At least once): State changes, alarms, configuration sync, critical events. Requires acknowledgment (PUBACK) and message retry buffer. Default choice for industrial IoT.
  • QoS 2 (Exactly once): Financial transactions or billing meters. Involves 4-step handshake (PUBLISH -> PUBREC -> PUBREL -> PUBCOMP). Avoid on battery-constrained devices due to high latency and RAM consumption.

2. Real-Time Memory & Buffer Management

2.1 Ring Buffer for Offline Network Resiliency

When an edge gateway loses cellular/Wi-Fi connection:

  • Incoming telemetry must be queued in a bounded circular ring buffer residing in static RAM or non-volatile flash (SPIFFS/LittleFS).
  • If network blackout exceeds buffer capacity, apply explicit drop policies:
    • DROP_OLDEST: Discard oldest telemetry to preserve recent state.
    • COALESCE: Overwrite pending messages matching identical topic paths.

Read the full file on GitHub · 287 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. 9d ago First seen · 287 lines · 88 tokens per session scan A acda0e7ae29a

Subscribe to this mod's changes

mqtt-and-iot-edge-protocols is a skill published in the GitHub repository hamzabellouch/agent-skills (4 stars, last pushed 1mo ago), licensed MIT. It adds 88 tokens to every session and 2,822 once invoked, about $0.0004 per session on Opus 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-09-03.

Related

Other skills, from other repositories

api-and-interface-design

Guides stable API and interface design. Use when designing APIs, module boundaries, or any public interface. Use when creating REST or GraphQL endpoints, defining type contracts between modules, or establishing boundaries between frontend and backend.

addyosmani/agent-skills · 49 tokens

amazon-alexa

Integracao completa com Amazon Alexa para criar skills de voz inteligentes, transformar Alexa em assistente com Claude como cerebro (projeto Auri) e integrar com AWS ecosystem (Lambda, DynamoDB, Polly, Transcribe, Lex, Smart Home).

sickn33/agentic-awesome-skills · 53 tokens

telnyx-iot-curl

Manage IoT SIM cards, eSIMs, data plans, and wireless connectivity. Use when building IoT/M2M solutions. This skill provides REST API (curl) examples.

team-telnyx/ai · 45 tokens

telnyx-networking-curl

Configure private networks, WireGuard VPN gateways, internet gateways, and virtual cross connects. This skill provides REST API (curl) examples.

team-telnyx/ai · 35 tokens

ubiquitous-language

Maintain a project thesaurus (domain glossary) following DDD ubiquitous language principles. Use PROACTIVELY when naming anything: variables, functions, classes, modules, database fields, API endpoints, events, files, or directories. Also use when the user asks to "create thesaurus", "update glossary", "add term"…

CodeAlive-AI/ai-driven-development · 179 tokens

laravel-expert

Laravel & PHP Development Instructions for GitHub Copilot.

GulajavaMinistudio/awesome-copilot-id · 15 tokens