Agent Skills › HermannBjorgvin/Clawdmeter › capturing-device-screenshots

capturing-device-screenshots

GitHub

通过USB串口捕获Clawdmeter设备屏幕截图为PNG,用于检查真机UI或提交PR附件。

.claude/skills/capturing-device-screenshots/SKILL.md HermannBjorgvin/Clawdmeter

触发场景

需要截取设备屏幕画面 在真机上验证用户界面显示效果 收集硬件输出内容以支持Pull Request

安装

npx skills add HermannBjorgvin/Clawdmeter --skill capturing-device-screenshots -g -y
更多选项

非标准路径

npx skills add https://github.com/HermannBjorgvin/Clawdmeter/tree/main/.claude/skills/capturing-device-screenshots -g -y

不安装直接使用

npx skills use HermannBjorgvin/Clawdmeter@capturing-device-screenshots

指定 Agent (Claude Code)

npx skills add HermannBjorgvin/Clawdmeter --skill capturing-device-screenshots -a claude-code -g -y

安装 repo 全部 skill

npx skills add HermannBjorgvin/Clawdmeter --all -g -y

预览 repo 内 skill

npx skills add HermannBjorgvin/Clawdmeter --list

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 --port when there are several. Close any pio device monitor first, 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-ui skill).
  • A specific state: force it over serial first (clawd show, clawd attention, … via the flashing-and-probing-boards skill), 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

同 Skill 集合

.claude/skills/capturing-desktop-screenshots/SKILL.md
.claude/skills/cutting-a-release/SKILL.md
.claude/skills/flashing-and-probing-boards/SKILL.md
.claude/skills/hunting-clawd-animations/SKILL.md
.claude/skills/porting-a-board/SKILL.md
.claude/skills/regenerating-firmware-assets/SKILL.md
.claude/skills/verifying-firmware-ui/SKILL.md

元信息

文件数
0
版本
4e5c079
Hash
cff11546
收录时间
2026-10-19 03:10

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-24 15:09
浙ICP备14020137号-1