Mqtt patterns

From rnavarych/alpha-engineer · View interactive version

Mqtt patterns is an AI agent skill from the GitHub repository rnavarych/alpha-engineer. MQTT messaging patterns for IoT systems including topic hierarchy design, QoS level selection, retained messages, last will and testament, broker deployment, and MQTT 5.0 feature adoption.

How to use this skill

Skill file

MQTT Patterns for IoT

When to use

Core principles

  1. Topic hierarchy is your ACL and filter contract — put the device ID early; flat topics destroy per-device access control and wildcard efficiency
  2. QoS 1 is the sane default — deduplicate on the backend; QoS 2's four-way handshake costs more than it saves in most telemetry scenarios
  3. LWT plus retained messages equals a free presence system — no polling, no heartbeat endpoint, broker handles it
  4. MQTT 5.0 shared subscriptions replace every hand-rolled consumer group — load-balance backend processors without custom coordination
  5. Never subscribe to # in production — you will receive everything on the broker; your consumer will not survive it

Reference Files

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.