/wokwi:test-lvgl-uifrom wokwi
Test 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`.
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.
The simulator draws the display from the firmware's own pixel writes; the same build and
scenario give the same PNG, byte for byte. Needs wokwi-cli 0.29 or newer, the display part
in diagram.json with a stable id (lcd1; a built-in panel uses the board id) and
wokwi.toml pointing at the firmware and ELF. A custom chip with a display in its chip
JSON is a display part too, so this also covers community display chips (ST7789, GC9A01,
SH1107, e-paper), standalone or inside a board.
Make the firmware narrate screen changes: one line when a screen is ready, one per
state change (Tick: 1, stroke at 60,100). A silent UI needs guessed delays.
Capture the references once with save-to, look at the PNGs, commit them:
name: hello-s31 boot + counter
version: 1
steps:
- wait-serial: "Tick: 1" # label reads "Tick: 0" and has been on screen ~1 s
- take-screenshot: { part-id: lcd1, save-to: screenshots/boot.png }
- wait-serial: "Tick: 6"
- take-screenshot: { part-id: lcd1, save-to: screenshots/tick-5.png }
wokwi-cli . --scenario test.yaml --timeout 20000
# [hello-s31 boot + counter] Scenario completed successfully (exit 0)
Add compare-with: screenshots/boot.png next to each save-to, and point save-to
at out/boot.png so a red run keeps the actual image. A mismatch stops the run at the
first differing pixel (here the boot frame was checked against the tick-5 reference):
Error: [2287494385ns] Screenshot mismatch for screenshots/tick-5.png at x,y=(88,206)
Exit 1 on mismatch, missing reference or wrong size (has a different size (120x160) than the part's screen (240x320)); exit 42 when --timeout (simulated ms) runs out first.
Drive the UI. touch taps (released after 50 ms), touch-press / touch-move /
touch-release drag, set-control presses buttons. Wait for the firmware's line, then
screenshot as in step 3:
- touch-press: { part-id: esp, x: 100, y: 150 }
- wait-serial: 'stroke at 100,150'
- touch-move: { part-id: esp, x: 240, y: 270 }
- delay: 50ms
- touch-release: { part-id: esp }
In CI run wokwi/wokwi-ci-action@v1 with scenario: test.yaml and timeout: 20000
(default 10 s), then upload out/ with if: always().
Tick: 0, wait
for Tick: 1 (a full period has passed, as in step 2).wait-serial sees only output after it starts. Put it right after the action
that triggers the line; a delay in between can swallow it.Docs: https://docs.wokwi.com/wokwi-ci/automation-scenarios. Demo: https://github.com/wokwi/esp32-s31-hello-wokwi-idf.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
4 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./verify-esp-idf-buildRun 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.npx claudepluginhub wokwi/skills --plugin wokwi