/esp32-workbench:esp32-log-triagefrom ESP32 Workbench
Parses ESP32 serial monitor output to classify reset reasons, boot loops, panics, watchdog messages, brownouts, heap failures, and Wi-Fi/BLE/MQTT errors, producing a triage report with root-cause hypothesis and next steps.
Ships in ESP32 Workbench. 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.
Turn a raw serial log into a classified, evidence-backed diagnosis.
If the esp32-workbench MCP server is connected, call its tools; otherwise run the
CLI. If esp32wb is not on PATH, use
uvx --from git+https://github.com/agodianel/esp32-claude-workbench esp32wb <args>.
Add --json for machine-readable output.
| Need | MCP tool | CLI |
|---|---|---|
| Summarise a log (resets, errors, tags, patterns) | log_summary | esp32wb logs monitor.log or ... | esp32wb logs - |
| Decode a panic found in the log | crash_decode | esp32wb crash panic.txt --elf build/<app>.elf [--target T] |
| Chip facts (arch, toolchain, pins) | chip_info | esp32wb chip <target> |
| Driver / error-code meaning | search_esp_docs | esp32wb docs search "<message>" --target T |
Run esp32wb logs first and build on its output rather than re-reading the log by eye.
Target chip (CONFIG_IDF_TARGET), board, ESP-IDF version, what the device was doing,
and whether the log starts at power-on. Ask for the full log from reset if it is
truncated — the ROM boot lines carry the reset reason.
ESP-IDF log lines look like:
E (12345) wifi_mgr: connect failed: ESP_ERR_TIMEOUT
^ ^ ^ ^
| | tag message
| ms since boot (or wall time if CONFIG_LOG_TIMESTAMP_SOURCE_SYSTEM)
level: E error, W warning, I info, D debug, V verbose
Lines without this prefix come from the ROM bootloader, printf, or the panic handler.
rst:0x.. (NAME) on every boot. Names and codes differ per
chip (classic ESP32 uses names like POWERON_RESET, SW_CPU_RESET,
TG0WDT_SYS_RESET, RTCWDT_BROWN_OUT_RESET; newer chips use different names).
Do not map codes from memory; use esp32wb logs or the target's TRM.esp_reset_reason() at boot. Values:
ESP_RST_POWERON, ESP_RST_SW, ESP_RST_PANIC, ESP_RST_INT_WDT,
ESP_RST_TASK_WDT, ESP_RST_WDT, ESP_RST_BROWNOUT, ESP_RST_DEEPSLEEP, etc.Guru Meditation text above it.| Pattern | Meaning |
|---|---|
Guru Meditation Error: Core N panic'ed (...) | CPU exception / panic → hand to esp32-crash-review |
abort() was called at PC ... | Assert / ESP_ERROR_CHECK failure — read the line above it |
ESP_ERROR_CHECK failed: esp_err_t 0x... (ESP_ERR_...) | Fatal init error; file/line printed |
Stack canary watchpoint triggered (task) / Stack protection fault / ***ERROR*** A stack overflow in task | Stack overflow |
Task watchdog got triggered | TWDT: a task starved IDLE. By default this only prints (resets only with CONFIG_ESP_TASK_WDT_PANIC) |
Interrupt wdt timeout on CPU0/1 | IWDT panic: ISR too long or interrupts disabled too long |
Brownout detector was triggered | Supply dip (USB cable/port, regulator, Wi-Fi TX peaks) |
CORRUPT HEAP / heap_caps_alloc ... failed / ESP_ERR_NO_MEM | Heap corruption or exhaustion |
invalid header: 0x... repeating | Bad flash content/offset or wrong flash mode — see build/flash troubleshooting |
wifi: state lines, WIFI_EVENT_STA_DISCONNECTED + reason | See Wi-Fi playbook |
NimBLE / BT_* errors | See BLE playbook |
i2c, spi_master, uart errors / ESP_ERR_TIMEOUT | Peripheral bus problem (wiring, pull-ups, pins, mode) |
| Category | Indicators |
|---|---|
| Boot loop | Repeating ROM banner; never reaches app_main / main task logs |
| Crash | Guru Meditation, abort, backtrace or stack dump |
| Watchdog | TWDT/IWDT messages or ESP_RST_*WDT |
| Memory | Allocation failures, falling free heap, heap corruption |
| Power | Brownout, resets correlated with radio TX or motor/LED load |
| Network | Disconnect reasons, DHCP/DNS/TLS failures, MQTT reconnect storms |
| Peripheral | Bus timeouts/NACKs, wrong data |
Backtrace: 0xPC:0xSP ....MEPC/MCAUSE/MTVAL and a stack dump; idf.py monitor decodes it.esp32wb crash + the matching ELF, or idf.py monitor. If you use
addr2line directly, get the toolchain prefix from esp32wb chip <target>
(e.g. xtensa-esp32s3-elf-addr2line, riscv32-esp-elf-addr2line); never assume
xtensa-esp32-elf.# Log Triage — <device> (target: <chip>, IDF <ver>)
- **Issue type**: Boot loop | Crash | Watchdog | Memory | Power | Network | Peripheral
- **Severity**: CRITICAL | HIGH | MEDIUM | LOW
- **Reset reason**: <ROM line> / <esp_reset_reason if logged>
## Key events (chronological, with timestamps)
## Error patterns (pattern — count — interpretation)
## Root-cause hypothesis (and confidence)
## Next steps (diagnostic config, instrumentation, fix candidates)
## Raw evidence (minimal excerpts)
0x00000000 or a small offset is almost always a NULL (struct) pointer.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
11 skills in this plugin
/esp32-arch-reviewReviews ESP32 firmware architecture for FreeRTOS safety, memory and stack sizing, ISR rules, error handling, peripheral and pin safety, networking, storage, logging and build configuration, and returns a PASS / PASS WITH NOTES / FAIL report. Use when the user asks to "review the architecture", "code review this firmware", "is this RTOS-safe", "check for race conditions", "audit task stacks", "memory leak", "heap fragmentation", "stack overflow risk", "/arch-review", or before merging a significant ESP-IDF change or inheriting an existing ESP32 project./esp32-build-fixDiagnoses and fixes ESP-IDF build, link, CMake/Kconfig, component-manager and flashing failures, using the build log to classify the error before changing anything. Use when "idf.py build fails", "undefined reference to", "No such file or directory" for a header, "Failed to resolve component", "CMake Error", "multiple definition of", "region `iram0_0_seg' overflowed", "app partition is too small", "implicit declaration of function", "esptool Failed to connect", "Wrong boot mode detected", "No serial data received", "Permission denied /dev/ttyUSB0", "A fatal error occurred", "set-target", or after an ESP-IDF version upgrade (v4 → v5) breaks the build./esp32-crash-reviewDecodes and analyses ESP32-family panics — Guru Meditation errors, register dumps, backtraces, aborts, stack overflows and watchdog timeouts on both Xtensa (ESP32, S2, S3) and RISC-V (C2, C3, C5, C6, H2, P4) chips — to find the root cause and recommend a fix plus diagnostic config. Use when the user pastes a crash or says "Guru Meditation", "LoadProhibited", "StoreProhibited", "InstrFetchProhibited", "IllegalInstruction", "Load access fault", "Store access fault", "MEPC", "MTVAL", "EXCVADDR", "Backtrace:", "abort() was called", "Stack canary watchpoint triggered", "Interrupt wdt timeout", "Task watchdog got triggered", "crash loop", "/review-crash", or "decode this backtrace"./esp32-feature-contractCreates a mission file and an implementation contract (scope, affected files, risks, tests, rollback) that must be accepted before any ESP32 firmware code is changed. Use when the user asks to "add a feature", "implement", "fix a bug", "refactor", "write a contract", "start a mission", "plan this change", "/contract", or "resume the mission" in an ESP-IDF, ESP32, ESP32-S3, ESP32-C3 or ESP32-C6 project, and before editing any firmware source./esp32-peripheral-bringupGuides bring-up and debugging of ESP32 peripherals — I2C, SPI, UART, ADC and LEDC/PWM — using the ESP-IDF v5 driver APIs, chip-correct pin choices, and a step-by-step wiring → config → probe → speed-up procedure. Use when the user says "I2C sensor not responding", "i2c ESP_ERR_TIMEOUT", "no ACK", "I2C scan finds nothing", "SPI returns 0xFF", "SPI display blank", "UART garbage characters", "uart_read_bytes returns nothing", "ADC reads wrong value", "adc_oneshot", "analogRead with Wi-Fi", "PWM / LEDC not working", "set duty", "bring up a new sensor", or "connect a peripheral" on ESP32, ESP32-S3, ESP32-C3, ESP32-C6 or other Espressif chips./esp32-pin-auditAudits GPIO assignments in ESP32-family firmware against the verified pin facts of the actual target chip and board, flagging flash/PSRAM pins, strapping pins, input-only pins, USB-Serial-JTAG and UART0 console pins, JTAG pins, ADC2/Wi-Fi conflicts, double assignments and pin-map drift. Use when the user asks "which pins can I use", "is GPIO 12 safe", "check my pinout", "pin conflict", "strapping pin", "board won't boot after wiring", "can't flash after connecting a sensor", "ADC2 with Wi-Fi", "input-only pin", "/pin-audit", or before adding any GPIO, I2C, SPI, UART, ADC or LEDC code on ESP32, ESP32-S2, ESP32-S3, ESP32-C2, ESP32-C3, ESP32-C5, ESP32-C6, ESP32-H2 or ESP32-P4.npx claudepluginhub agodianel/esp32-claude-workbench --plugin esp32-workbenchOther plugins' skills for the same job