/wokwi:verify-esp-idf-buildfrom wokwi
Run and verify ESP-IDF firmware on the Wokwi simulator from idf.py (`idf.py wokwi`, the idf-wokwi extension), no board attached. Use to smoke-test an ESP-IDF 6.x build, check that it prints a serial message, or run it without a devkit, including right after an agent built it.
Ships in wokwi. 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.
None: SKILL.md is the whole skill.
idf-wokwi adds a wokwi action to idf.py: it reads the build directory (target chip,
flasher_args.json, ELF), generates a diagram with the matching devkit, uploads the firmware
and streams the serial console back. Needs ESP-IDF 6.0 or newer (idf.py extensions
arrived in 6.0; check idf.py --version) and idf-wokwi 1.2 or newer; on older ESP-IDF trees
use wokwi-cli instead.
Install into the ESP-IDF Python environment, not the system one.
. $IDF_PATH/export.sh
python -m pip install idf-wokwi
idf.py wokwi --help # the action must show up here
If idf.py does not know wokwi, the package went into another interpreter.
Token. export WOKWI_CLI_TOKEN=wok_... from https://wokwi.com/dashboard/ci. Without
it the command stops (exit 1) and prints that URL.
Build and run.
idf.py set-target esp32s3
idf.py wokwi # builds first; no expect/fail/timeout flag = interactive, Ctrl+C ends
Run it as a test. Use this form in scripts and agent loops: it returns.
idf.py wokwi --timeout 20000 --expect-text 'app: ready' --fail-text 'Guru Meditation Error'
Exit 0 when the text appears, 1 on the fail text, 42 on timeout:
I (229) app: ready
Expected text found: app: ready # exit 0
Fail text detected: app: ready # exit 1 (same line given as --fail-text)
Timeout after 3000 ms # exit 42
--expect-regex and --fail-regex match whole serial lines. Keep --expect-text on the
last line of a successful run, so a pass means the whole program ran, not just the banner.
Peripherals and Wi-Fi. The generated diagram is the bare devkit wired to the serial
monitor; a diagram.json in the project root (or --diagram-file) takes precedence.
Wi-Fi works out of the box: the open access point Wokwi-GUEST has internet access, and
a wokwi-wifi-ap part in diagram.json adds a network with your own SSID and password.
Buttons and sensors are driven by wokwi-cli automation scenarios, not by idf.py wokwi.
diagram.json must wire the console pins to $serialMonitor (TX0/RX0
on the S31 coreboard), or the firmware boots, nothing is read, and the run only times out.--timeout is wall-clock milliseconds on your machine (idf-wokwi 1.1.0 uses a
monotonic clock), unlike wokwi-cli, where the same flag is simulated time. A slow link
or busy server eats into it: give boot plus Wi-Fi plus NTP 20 to 60 s. 0 = no timeout.WOKWI_CLI_SERVER=ws://host:port; the same flags apply.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub wokwi/skills --plugin wokwi4 skills in this plugin
/debug-esp32-firmwareDebug ESP32 firmware on the Wokwi simulator, no board or JTAG needed. Decode a panic backtrace, reproduce the bug with scripted inputs, capture I2C/SPI/UART traffic to a VCD file, attach GDB from the CLI or VS Code. Use for crashes, panics, watchdog resets, hangs, intermittent faults and wrong bus traffic./find-memory-leaksFind memory leaks in ESP-IDF firmware in CI. The Wokwi simulator watches the free heap while a scenario compresses hours of use into seconds and fails the run when the heap drops below a limit; no logging code in the firmware. Use for suspected leaks, soak, stress or endurance tests, or a device that runs out of memory after hours or days./test-lvgl-uiTest an LVGL (or any other) embedded GUI in CI on the Wokwi simulator. Scripted taps and button presses drive the screen; the simulated display is compared pixel by pixel against reference PNGs, without a board. Use to test or regression-check a display UI, screen, menu or widget on ESP32 or other MCUs, or when someone mentions LVGL, TFT_eSPI, ILI9341, ST7789, GC9A01, SSD1306, a custom chip display, a touchscreen, `take-screenshot` or `compare-with`.