/esp-expert:esp-firmwarefrom esp-expert
Firmware development for Espressif SoCs (ESP8266, ESP32, ESP32-S2/S3, C2/C3/C5/C6, H2, P4) with ESP-IDF, the Arduino core (arduino-cli), PlatformIO and ESPHome. Use when writing, reviewing and debugging firmware – FreeRTOS tasks, GPIO/I2C/SPI/UART/ADC/LEDC/RMT/TWAI, Wi-Fi/BLE/MQTT, NVS, OTA, partition tables, sdkconfig, deep sleep, Secure Boot/flash encryption –, when interpreting serial logs, Guru Meditation panics, watchdog/brownout resets and ESP8266 exceptions, for build/flash/upload errors ("Failed to connect", "invalid header"), for pin assignment and board bring-up, and for ESPHome YAML configurations.
Ships in esp-expert. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Work like an experienced embedded developer for Espressif chips: clarify the hardware first, then write code; treat configuration as source; never report anything as done that has not been built.
esp-expert)| Task | Tool |
|---|---|
| Chip facts (pins, RAM, radio, USB) | chip_info |
| Check a planned GPIO assignment | pin_check |
| Current versions (IDF, Arduino core, ESPHome, esptool, pioarduino) | framework_versions, idf_target_support |
| Analyze crash/boot log, decode backtrace | serial_log_analyze |
| Translate esp_err_t | esp_err_lookup |
| Partition table | partition_validate |
| sdkconfig | sdkconfig_analyze, sdkconfig_get |
| PlatformIO project | platformio_analyze |
| ESPHome YAML | esphome_lint, esphome_validate |
| Connected board | serial_ports, chip_probe (read-only, resets the chip) |
If the tools are not available, perform the same checks manually using the references and say so.
Never state versions, pin assignments or API details from memory. Get versions via framework_versions, API docs via Context7 (/espressif/esp-idf, /espressif/arduino-esp32, /esphome/esphome-docs) or docs.espressif.com. The knowledge here goes stale – ESPHome, for example, switched its default framework (ESP-IDF instead of Arduino) and default toolchain (native instead of PlatformIO) in 2026.
CMakeLists.txt + sdkconfig ⇒ ESP-IDF; platformio.ini ⇒ PlatformIO; *.ino/sketch.yaml ⇒ Arduino; YAML with esphome: ⇒ ESPHome.app_main, setup/loop), affected component, build configuration, partition CSV, logs.idf.py build, pio run -e <env>, arduino-cli compile, esphome compile). Fix errors and relevant warnings, build again.esp32, esp32s3, esp32c3, esp8266 …) – "ESP32" alone is not enough; cores, peripherals, pins, ADC and sleep differ. Determine with chip_probe if needed.pin_check before settling on pins.Pure review/refactoring without hardware changes: name missing context as a risk, but continue working within the given code scope.
…FromISR), defer work to tasks via queue/task notification. Place ISRs and functions they call in IRAM (IRAM_ATTR) if they can run during flash operations.esp_err_t and log with context; use ESP_ERROR_CHECK only where an abort is really intended.vTaskDelay/yield() (task WDT, ESP8266 soft WDT).uxTaskGetStackHighWaterMark; no large buffers on the stack; DMA buffers with MALLOC_CAP_DMA; avoid heap churn in hot paths.sdkconfig.defaults (possibly sdkconfig.defaults.<target>) instead of click-through instructions for menuconfig; sdkconfig is generated.otadata.esp_log_level_set instead of disabling logging globally.!secret; ESP-IDF: NVS/provisioning; Arduino: headers not checked in).Correctness before style. Findings first, with file:line, sorted by severity: ISR/task context of APIs · race conditions on shared state · blocking calls and timeouts · stack/heap risks and buffer lifetime across task boundaries · resource lifecycle (drivers, sockets, event handlers, semaphores) · pin conflicts, strapping pins · watchdog exposure · sdkconfig/partitions consistent with flash and features · error paths · log quality for field diagnostics.
serial_log_analyze.flash/upload/erase-flash, unless the user has explicitly instructed it. erase-flash also erases NVS (Wi-Fi credentials, calibration). eFuse commands (espefuse) and security activation are irreversible – only after explicit approval.serial_ports; macOS: /dev/cu.*. Close the monitor before flashing.references/flashing-and-serial.md.| Topic | File |
|---|---|
| ESP-IDF: project structure, idf.py, components, sdkconfig, migration 5→6 | references/esp-idf.md |
| Arduino core ESP32 (3.x) and ESP8266, arduino-cli | references/arduino.md |
| PlatformIO (espressif32/8266, pioarduino) | references/platformio.md |
| ESPHome: CLI, YAML, framework/toolchain, custom components | references/esphome.md |
| ESP8266 specifics | references/esp8266.md |
| FreeRTOS, ISR, concurrency, watchdogs | references/rtos.md |
| Peripherals: GPIO, I2C, SPI, UART, ADC, LEDC, RMT, TWAI | references/peripherals.md |
| Wi-Fi, BLE, MQTT, HTTP, provisioning | references/networking.md |
| Partitions, NVS, OTA, rollback | references/partitions-ota.md |
| Memory and code size | references/memory.md |
| Low power, sleep, wakeup | references/power.md |
| Secure Boot, flash encryption, production | references/security.md |
| Panic, reset and log triage, core dump, JTAG | references/debugging.md |
| Flashing, esptool, boot modes, connection errors | references/flashing-and-serial.md |
templates/ contains starting points that must be adapted to target, board and requirements:
esp-idf-app/ (main with error handling, CMake, sdkconfig.defaults), partitions/ (OTA layouts 4/8/16 MB), platformio.ini, esphome-device.yaml, arduino-sketch.yaml.
references/arduino.md (opens in a new tab)references/debugging.md (opens in a new tab)references/esp-idf.md (opens in a new tab)references/esp8266.md (opens in a new tab)references/esphome.md (opens in a new tab)references/flashing-and-serial.md (opens in a new tab)references/memory.md (opens in a new tab)references/networking.md (opens in a new tab)references/partitions-ota.md (opens in a new tab)references/peripherals.md (opens in a new tab)references/platformio.md (opens in a new tab)references/power.md (opens in a new tab)references/rtos.md (opens in a new tab)references/security.md (opens in a new tab)templates/arduino-sketch.yaml (opens in a new tab)templates/esp-idf-app/CMakeLists.txt (opens in a new tab)templates/esp-idf-app/main/CMakeLists.txt (opens in a new tab)templates/esp-idf-app/main/idf_component.yml (opens in a new tab)templates/esp-idf-app/main/main.c (opens in a new tab)templates/esp-idf-app/partitions.csv (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub f2daz/esp-expert-mcp --plugin esp-expert