Esp32 Log Triage logo

Esp32 Log Triage

Community
agodianel
esp32-log-triage

Parses and classifies ESP32 serial monitor output — reset reasons, boot loops, panics, watchdog messages, brownouts, heap failures, Wi-Fi/BLE/MQTT errors and peripheral timeouts — and produces a triage report with a root-cause hypothesis and next steps. Use when the user pastes "idf.py monitor" output or a serial log, or says "boot loop", "keeps rebooting", "rst:0x", "Brownout detector was triggered", "Task watchdog got triggered", "Wi-Fi keeps disconnecting", "WIFI_EVENT_STA_DISCONNECTED", "BLE won't connect", "MQTT disconnects", "/triage-log", or "what does this log mean" for any ESP32-family chip.

Overview

Publisheragodianel
Repositoryesp32-claude-workbench
Skill nameesp32-log-triage
Stars
81
Forks
7
Bundled files
3
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by agodianel on GitHub. Read the source before you install it.

Installation

Install the Esp32 Log Triage AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/agodianel/esp32-claude-workbench/tree/main/skills/esp32-log-triage
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/agodianel/esp32-claude-workbench.git /tmp/esp32-claude-workbench
mkdir -p .claude/skills
cp -r /tmp/esp32-claude-workbench/skills/esp32-log-triage .claude/skills/esp32-log-triage
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Esp32 Log Triage in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Esp32 Log Triage on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Esp32 Log Triage is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

ESP32 Log Triage

Turn a raw serial log into a classified, evidence-backed diagnosis.

Tools

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.

NeedMCP toolCLI
Summarise a log (resets, errors, tags, patterns)log_summaryesp32wb logs monitor.log or ... | esp32wb logs -
Decode a panic found in the logcrash_decodeesp32wb crash panic.txt --elf build/<app>.elf [--target T]
Chip facts (arch, toolchain, pins)chip_infoesp32wb chip <target>
Driver / error-code meaningsearch_esp_docsesp32wb docs search "<message>" --target T

Run esp32wb logs first and build on its output rather than re-reading the log by eye.

Steps

1. Establish context

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.

2. Read the log format correctly

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.

3. Reset reason

  • The ROM prints 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.
  • The portable source is the app: log 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.
  • After a panic the ROM usually reports a software CPU reset, not a watchdog code — look for the Guru Meditation text above it.

4. Extract critical events

PatternMeaning
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 taskStack overflow
Task watchdog got triggeredTWDT: a task starved IDLE. By default this only prints (resets only with CONFIG_ESP_TASK_WDT_PANIC)
Interrupt wdt timeout on CPU0/1IWDT panic: ISR too long or interrupts disabled too long
Brownout detector was triggeredSupply dip (USB cable/port, regulator, Wi-Fi TX peaks)
CORRUPT HEAP / heap_caps_alloc ... failed / ESP_ERR_NO_MEMHeap corruption or exhaustion
invalid header: 0x... repeatingBad flash content/offset or wrong flash mode — see build/flash troubleshooting
wifi: state lines, WIFI_EVENT_STA_DISCONNECTED + reasonSee Wi-Fi playbook
NimBLE / BT_* errorsSee BLE playbook
i2c, spi_master, uart errors / ESP_ERR_TIMEOUTPeripheral bus problem (wiring, pull-ups, pins, mode)

5. Classify

CategoryIndicators
Boot loopRepeating ROM banner; never reaches app_main / main task logs
CrashGuru Meditation, abort, backtrace or stack dump
WatchdogTWDT/IWDT messages or ESP_RST_*WDT
MemoryAllocation failures, falling free heap, heap corruption
PowerBrownout, resets correlated with radio TX or motor/LED load
NetworkDisconnect reasons, DHCP/DNS/TLS failures, MQTT reconnect storms
PeripheralBus timeouts/NACKs, wrong data

6. Backtraces

  • Xtensa chips (ESP32, S2, S3) print Backtrace: 0xPC:0xSP ....
  • RISC-V chips (C2, C3, C5, C6, H2, P4) usually print a register dump with MEPC/MCAUSE/MTVAL and a stack dump; idf.py monitor decodes it.
  • Decode with 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.

Report

markdown
# 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)

Tips

  • Brownouts are usually power, not code: test with a better cable/supply before debugging firmware.
  • A TWDT message without a reset is still a bug — the system was starved.
  • A fault address of 0x00000000 or a small offset is almost always a NULL (struct) pointer.
  • Repeated MQTT disconnects: compare keepalive with network latency and check TLS heap.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Esp32 Log Triage AI skill do?

Parses and classifies ESP32 serial monitor output — reset reasons, boot loops, panics, watchdog messages, brownouts, heap failures, Wi-Fi/BLE/MQTT errors and peripheral timeouts — and produces a triage report with a root-cause hypothesis and next steps. Use when the user pastes "idf.py monitor" output or a serial log, or says "boot loop", "keeps rebooting", "rst:0x", "Brownout detector was triggered", "Task watchdog got triggered", "Wi-Fi keeps disconnecting", "WIFI_EVENT_STA_DISCONNECTED", "BLE won't connect", "MQTT disconnects", "/triage-log", or "what does this log mean" for any ESP32-fa...

Why use Esp32 Log Triage on TypingMind?

Because you install it once and use it with any model. Esp32 Log Triage is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Esp32 Log Triage in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/agodianel/esp32-claude-workbench/tree/main/skills/esp32-log-triage. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Esp32 Log Triage?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Esp32 Log Triage?

As many as you like. As long as a model supports skills, you can use Esp32 Log Triage with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Esp32 Log Triage AI skill free?

Yes. It is published on GitHub by agodianel under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇