What problem does it solve? Writing correct ESP-MQTT client code for ESP32 firmware requires knowing exact API signatures, initialization order, Kconfig options, and TLS certificate handling, and mistakes cause deadlocks, memory leaks, or failed handshakes. This Skill grounds all generated code in the real esp-mqtt repository source and documentation. ## Core Features & Use Cases - Scenario Recipes: 12 step-by-step recipes covering TCP connect, event handling, publish/subscribe with QoS, mutual TLS, server CA validation, PSK, digital signature peripheral, WebSocket/WSS, MQTT 5.0, last will, outbox management, and custom outbox. - API and Config Reference: Complete esp_mqtt_client_* and esp_mqtt5_* signatures, the full esp_mqtt_client_config_t field table, and all Kconfig options with defaults. - Pitfall Prevention: 30 documented traps with wrong/correct code pairs, such as calling stop inside event callbacks or printing non-null-terminated topics with %s. - Use Case: Ask for an mqtts:// client with mutual TLS on ESP32-S3 and receive compilable code with embedded certificates, correct init sequence, and build commands. ## Quick Start Ask the agent to create an ESP-IDF MQTT client that connects to your broker over TLS and subscribes to a topic, and it will produce the full app_main.c with build steps.