<< All versions
Skill v1.0.1
currentAutomated scanjl-codes/platformio-mcp/esp32-flash-monitor
chore: update Vitest past security advisory (#24)
──Details
PublishedSeptember 12, 2026 at 05:10 PM
Content Hashsha256:7928b931443d6fcd...
Git SHA40e12ccb8e85
──Files
Files (1 file, 2.1 KB)
SKILL.md2.1 KBactive
SKILL.md · 48 lines · 2.1 KB
version: "1.0.1" 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
Reading results: a non-zero exit means look at BOTH streams. An operationthat ran but failed (a build with errors) putssuccess: falseon stdout;one that could not run (bad arguments, policy, a busy port) putserrorTypeonstderr with stdout empty. Capture both (--json 2>&1). See thepio-managerskill for the full contract.
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
- Inspect
platformio.ini, runpio-agent devices, and callpio-agent target-resolvefor one explicit ESP32 environment. - Confirm the resolved board, stable device fingerprint, and short-lived binding; stop on ambiguity.
- Run
pio-agent agent-safe-pin-audit --project-dir <dir> --board <id>for ESP32 strapping, input-only, and flash/SPI pin risks. - Build with
pio-agent agent-build-diagnose --project-dir <dir> --environment <env>and preserve its task/log references. - Summarize build result, including RAM and flash usage if available.
- Ask user approval before flashing.
- Call
pio-agent agent-flash-monitor-verify --project-dir <dir> --environment <env> --port <p>with the approved target binding and bounded--expect-all/--reject-patternsmarkers. - Allow
--start-monitoron the flash to reattach the monitor after USB re-enumeration only when the device fingerprint still matches. - Use
pio-agent logs captureorpio-agent monitor-healthfor additional bounded evidence. - Diagnose boot loops, watchdogs, brownouts, panic output, or missing markers and suggest the smallest next change.
Common Board IDs
text
esp32devesp32-s3-devkitc-1esp32-c3-devkitm-1nodemcu-32slolin_s2_mini