name: esp32-flash-monitor
description: Run the common ESP32 workflow in PlatformIO: build, flash, monitor, diagnose, patch, and retry. Use for ESP32/ESP8266/ESP32-S3/ESP32-C3 projects using Arduino or ESP-IDF.
ESP32 Flash and Monitor
Purpose
Use this skill for the common ESP32 workflow: build, flash, monitor, diagnose, patch, and retry.
Safety Rules
- Ask before flashing.
- Do not erase flash unless explicitly requested.
- Stop active serial monitors before upload if the port is busy.
- Save build and serial logs.
Workflow
- List connected devices.
- Identify likely ESP32 serial port.
- Confirm or infer PlatformIO board ID.
- Build the project.
- Summarize build result, including RAM and flash usage if available.
- Ask user approval before flashing.
- Upload firmware.
- Start serial monitor.
- Watch for boot success or crash output.
- Diagnose and suggest next change.
Common Board IDs
esp32dev
esp32-s3-devkitc-1
esp32-c3-devkitm-1
nodemcu-32s
lolin_s2_mini