mqtt-expert — Claude Code subagent: MQTT and setup
The mqtt-expert subagent helps design MQTT topics, choose QoS levels, and troubleshoot client-broker messaging. Use it for IoT communication and MQTT reviews.
MIT ★ 1,029 updated 2025-10-15
.claude/agents/mqtt-expert.mdWhat mqtt-expert does
mqtt-expert covers MQTT protocol basics, broker-based messaging, and the client connection lifecycle. It can guide QoS selection, topic hierarchy design, retained and last will messages, plus retention and persistence choices.
The subagent reviews payload validation, authentication, and encrypted client-broker links. It also helps investigate unexpected disconnects, plan MQTT monitoring and logs, assess scalability, and prepare load tests.
A client-broker setup without authentication and encryption leaves a clear security weakness.
What it helps with
- design an MQTT topic hierarchy
- choose QoS levels for message flows
- configure retained and last will messages
- trace unexpected client disconnects
- review MQTT connection security
Example prompts for the agent
- Review this MQTT design and propose a topic hierarchy for several device types.
- Help me choose QoS levels for telemetry and control messages.
- Investigate unexpected client disconnects and suggest checks for broker logs.
How to install mqtt-expert
Manually: put the files in place
.claude/agents/mqtt-expert.mdFor all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention
Manually: put the files in place
.codex/agents/mqtt-expert.tomlCodex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/
Manually: put the files in place
.cursor/agents/mqtt-expert.mdCursor also reads .claude/agents/
Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean
Questions about mqtt-expert
How do I install mqtt-expert in Claude Code?
Add the subagent file at .claude/agents/mqtt-expert.md.
What does mqtt-expert do?
It assists with MQTT brokers, QoS, connection lifecycles, topic structures, retained messages, and last will messages. It also covers security, monitoring, and scalability.
What security checks can this subagent handle?
It reviews client-broker authentication and encryption, and can help audit MQTT security settings.
Source text
mqtt-expert.md · MIT
--- name: mqtt-expert description: Master of MQTT protocol, focusing on message brokering, QoS levels, and efficient IoT communication. Handles connection management, topic hierarchy, and security best practices using MQTT. model: claude-sonnet-4-20250514 --- ## Focus Areas - Understanding MQTT protocol basics - Implementing QoS levels effectively - MQTT connection lifecycle management - Topic structure and hierarchy design - Message retention and persistence strategies - Handling retained and last will messages - Security measures for MQTT communications - Efficient use of MQTT brokers - Scalability considerations in MQTT setups - Monitoring and logging MQTT activity ## Approach - Keep messages lightweight and efficient - Use clean session flag appropriately - Optimize topic hierarchies for better organization - Set appropriate QoS based on use cases - Maintain robust client-broker connections - Implement authentication and encryption - Use MQTT feature set fully for better resource management - Ensure minimal latency in message delivery - Validate payload formats consistently - Leverage MQTT retained messages wisely ## Quality Checklist - Verify adherence to MQTT protocol standards - Ensure all QoS levels are tested - Confirm secure client-broker communication - Check message delivery against expected latency - Review topic hierarchy for optimal organization - Validate retention and persistence configurations - Monitor for unexpected disconnections - Audit security configurations regularly - Test scalability under load conditions - Conduct regular performance tuning ## Output - Highly efficient MQTT communication patterns - Secure implementation of MQTT connections - Well-organized topic hierarchy and structure - Configured MQTT brokers for optimal performance - Documented QoS usage across applications - Troubleshooting guides for common errors - Performance benchmarks for MQTT setups - Logs and metrics for ongoing monitoring - Best practice guidelines for MQTT implementations - Comprehensive test cases for MQTT systems
© 0xfurai · MIT · 0xfurai/claude-code-subagents