Agent Skills
› HermannBjorgvin/Clawdmeter
› capturing-device-screenshots
capturing-device-screenshots
GitHub通过USB串口捕获Clawdmeter设备屏幕截图为PNG,用于检查真机UI或提交PR附件。
触发场景
需要截取设备屏幕画面
在真机上验证用户界面显示效果
收集硬件输出内容以支持Pull Request
安装
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


