Agent Skills
› HermannBjorgvin/Clawdmeter
› capturing-device-screenshots
capturing-device-screenshots
GitHub通过USB串口捕获Clawdmeter开发板屏幕截图,用于验证固件UI或提交PR。支持指定端口、处理依赖缺失及特定状态强制截图,适用于真实硬件界面检查。
触发场景
需要截取设备屏幕画面
验证硬件上的UI显示效果
为PR附上设备输出证据
安装
npx skills add HermannBjorgvin/Clawdmeter --skill capturing-device-screenshots -g -y
SKILL.md
Frontmatter
{
"name": "capturing-device-screenshots",
"description": "Captures a connected Clawdmeter board's screen as a PNG over USB serial, with the bundled screenshot.py (the firmware's `screenshot` framebuffer dump, decoded). Use when asked to screenshot a board or the device, to check UI on real hardware, or to attach device output to a PR."
}
Capturing device screenshots
python3 ${CLAUDE_SKILL_DIR}/scripts/screenshot.py /path/out.png
Then Read the PNG. It's sized to the panel (480×480 on the AMOLED-2.16) and takes about 2 s. Write it outside the repo unless it belongs in the PR.
- Port: the only
/dev/ttyACM*or/dev/cu.usbmodem*attached; pass--portwhen there are several. Close anypio device monitorfirst, it holds the port. Opening the port doesn't reset the board. - pyserial missing: run it with
~/.platformio/penv/bin/python. - C6 boards can't be captured: no PSRAM for the snapshot, so the script
stops with a message. Eyeball those on the panel, or check the same UI in
the simulator (
verifying-firmware-uiskill). - A specific state: force it over serial first (
clawd show,clawd attention, … via theflashing-and-probing-boardsskill), then capture.
Device captures show what the firmware drew, not the panel's colours or offsets; a photo is still the proof for those.
版本历史
- 4e5c079 当前 2026-10-19 03:10


