/esp32-workbench:esp32-pin-auditfrom ESP32 Workbench
Audits GPIO assignments in ESP32-family firmware against chip-specific pin constraints, flagging conflicts with flash, strapping, JTAG, ADC2/Wi-Fi, and input-only pins.
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.
Pin rules are chip-specific. GPIO 6–11 are flash pins on classic ESP32 but ordinary GPIOs on ESP32-S3; GPIO 34–39 are input-only on classic ESP32 but bidirectional on ESP32-S3. Never apply one chip's table to another.
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 |
|---|---|---|
Audit all GPIO usage (target auto-detected from CONFIG_IDF_TARGET) | pin_audit | esp32wb pins <path> [--target T] |
| Verified pin facts + Espressif source links | chip_info | esp32wb chip <target> (no arg lists targets) |
| Anything the chip table does not cover | search_esp_docs | esp32wb docs search "<query>" --target T |
Targets: esp32 esp32s2 esp32s3 esp32c2 esp32c3 esp32c5 esp32c6 esp32h2 esp32p4.
CONFIG_IDF_TARGET in sdkconfig / sdkconfig.defaults. If none is
set, ESP-IDF defaults to esp32; state that assumption in the report.CONFIG_SPIRAM* and
CONFIG_ESPTOOLPY_OCT_FLASH / octal PSRAM settings.esp32wb pins . — it collects GPIO_NUM_*, #define *_PIN/_GPIO, Kconfig GPIO
options and driver config structs, then checks them against the chip table.
Include its findings verbatim; add your own analysis on top.
If the tool is unavailable, collect manually:
grep -rnE "GPIO_NUM_[0-9]+|#define\s+\w*(GPIO|PIN|SDA|SCL|MOSI|MISO|SCLK|CLK|CS|TX|RX)\w*\s+[0-9]+" \
--include=*.c --include=*.h --include=*.cpp .
grep -rn "CONFIG_.*\(GPIO\|PIN\)" sdkconfig sdkconfig.defaults* 2>/dev/null
and get the chip facts from esp32wb chip <target> or the Espressif datasheet.
For each GPIO in use, look up the target's facts and classify:
| Category | Severity | What to check |
|---|---|---|
| Not a GPIO on this chip | ERROR | Number missing from the chip's GPIO list (e.g. S3 has no GPIO22–25) |
| Flash SPI pins | ERROR | Never use. Set differs per chip |
| PSRAM pins | ERROR if PSRAM enabled | Includes octal-mode extras on S3 |
| Input-only | ERROR if used as output or with internal pulls | Classic ESP32: 34–39 (no internal pulls). S2: GPIO46. S3/C-series: none |
| Strapping | WARN | External circuits must not force the wrong level at reset; note the boot function |
| USB D-/D+ (USB-Serial-JTAG / OTG) | WARN | Reusing them disables USB console/JTAG/flashing over USB. Present on S2/S3/C3/C5/C6/H2/P4 |
| UART0 console TX/RX | WARN | Breaks logs/flashing over UART unless the console is moved |
| JTAG pins | WARN if hardware debugging is used | |
| ADC2 + Wi-Fi | see below |
adc_oneshot_read() can fail (returns an error) while Wi-Fi holds ADC2 — WARN,
require retry/error handling or move to ADC1.esp32wb chip <target> (field "ADC2 + Wi-Fi" and notes) —
several have no ADC2 at all.*_pullup_en.esp32wb chip.Compare code against pin_map.h, README pin tables, board profile and schematic.
Every assignment must appear in one documented pin map (project rule).
# Pin Audit — <project> (target: <chip>, board: <board>, module: <module>)
Evidence: `esp32wb pins` output + `esp32wb chip <target>` sources.
## Pin Allocation
| GPIO | Function | Defined in | Direction | Pull | Chip category |
## Errors (must fix)
## Warnings (strapping / USB / console / JTAG / ADC2)
## Conflicts
## Documentation drift
## Unknowns (facts not confirmed for this chip/board)
Use plain words (ERROR, WARN, OK) rather than emoji so the report renders in
every agent and terminal.
esp32wb chip output
or a cited Espressif document, report it as unknown.agents/openai.yaml (opens in a new tab)references/boards/README.md (opens in a new tab)references/boards/esp32_devkit_v1.md (opens in a new tab)references/boards/m5stack_stickc_plus2.md (opens in a new tab)references/boards/m5stack_sticks3.md (opens in a new tab)references/hardware_limitations.md (opens in a new tab)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.npx claudepluginhub agodianel/esp32-claude-workbench --plugin esp32-workbenchOther plugins' skills for the same job