一键导入
embedded-gui-feedback
Use for LCD/GUI projects after verification passes - captures display via camera, analyzes layout/font/color, detects display issues
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use for LCD/GUI projects after verification passes - captures display via camera, analyzes layout/font/color, detects display issues
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when developing firmware on ESP32/STM32/RP2040/nRF52, experiencing DMA overflow, SPI timeout, LCD blank display, frame corruption, GPIO conflicts, sensor reading errors, Wi-Fi disconnect, or needing driver configuration, hardware debugging, display/GUI setup, protocol implementation, serial monitoring. Use even if user doesn't mention 'embedded' but asks about hardware, sensors, displays, microcontrollers, IoT, or device programming.
Use before any embedded development - explores hardware requirements, confirms configuration, validates feasibility, saves design spec
Use when hardware configuration confirmed - creates detailed implementation plan with bite-sized tasks, exact file paths, complete code steps
Use when implementation plan is ready - executes plan task-by-task with two-stage review (hardware spec then MISRA C)
Use after implementation complete - runs build-flash-monitor loop, verifies runtime behavior, no completion claims without fresh evidence
Guide for embedded systems development on ESP32, STM32, RP2040, nRF52 chips. Use this skill whenever the user mentions embedded systems, firmware development, MCU programming, hardware drivers, sensors, LCD displays, IMU devices, SPI/I2C/UART interfaces, compilation, debugging, remote monitoring, Wi-Fi/BLE/MQTT protocols, or needs help with driver code generation, GUI layout design, hardware configuration, or device programming. Make sure to use this skill even if the user doesn't explicitly mention 'embedded' but asks about hardware, sensors, displays, device drivers, microcontrollers, or IoT applications.
| name | embedded-gui-feedback |
| description | Use for LCD/GUI projects after verification passes - captures display via camera, analyzes layout/font/color, detects display issues |
Visual verification for LCD/GUI projects. Human eye misses timing, alignment, and color issues. Camera capture + AI analysis catches them.
Core principle: Camera evidence, not human judgment.
Context: Run after embedded-verification passes for display projects.
When NOT to use: Projects without GUI/display components.
# List cameras
python scripts/camera_capture.py --list
# Capture
python scripts/camera_capture.py --resolution 1920x1080 --session
# List cameras
python scripts/camera_capture.py --list
# Capture
python scripts/camera_capture.py --resolution 1920x1080 --session
Run: python scripts/camera_capture.py --list
If no cameras:
- Prompt user to connect camera
- Offer alternative: manual photo upload
Run: python scripts/camera_capture.py --session
Output: screenshots/capture_YYYYMMDD_HHMMSS.png
Session folder: Creates timestamped folder for multiple captures.
Use image_read tool with analysis prompt:
Analyze LCD display for:
- Layout: Correct positioning?
- Font: Readable, correct size?
- Color: Expected colors displayed?
- Alignment: Elements aligned properly?
- Overlap: Any overlapping elements?
- Blank areas: Unexpected empty regions?
Compare to expected: [describe expected output]
| Issue Type | Visual Indicator | Likely Cause |
|---|---|---|
| Blank screen | No pixels | Init sequence wrong |
| Partial display | Top/bottom missing | MADCTL value incorrect |
| Color wrong | Wrong colors | Color format mismatch |
| Offset display | Content shifted | y_gap/x_gap incorrect |
| Mirror/flip | Content reversed | MADCTL rotation bits |
| Flickering | Brightness varies | Refresh timing |
| Lines missing | Horizontal gaps | DMA chunking issue |
If issues found:
1. Analyze cause from table
2. Apply fix
3. idf.py build flash monitor
4. Re-capture display
5. Re-analyze
6. Loop until approved
Write: docs/embedded/screenshots/YYYY-MM-DD-<feature>-analysis.md
Include:
- Before/after captures
- Issue descriptions
- Fixes applied
- Final status
Use prompts/gui-feedback.md or inline:
Context: [Chip] + [Controller] + [Resolution]
Expected Display:
[Describe what should be shown]
Image: [path to capture]
Analyze for issues:
1. Blank screen → check init
2. Partial → check MADCTL
3. Wrong colors → check format
4. Offset → check gaps
5. Mirror → check rotation
6. Flickering → check timing
7. Gaps → check DMA
Provide:
- Issues found: [list]
- Likely cause: [analysis]
- Recommended fix: [action]
For before/after analysis:
# Capture before
python scripts/camera_capture.py --session --count 1
# Apply fix
idf.py build flash monitor
# Capture after
python scripts/camera_capture.py --session --count 1
# Compare
python scripts/image_compare.py --before [before.png] --after [after.png]
| Issue | Fix Location | Parameter |
|---|---|---|
| Blank | Driver init | Reset sequence |
| Partial | MADCTL | 0x00/0xC0/0x80 |
| Offset | Driver config | y_gap, x_gap |
| Mirror | MADCTL | Bit 5, 6, 7 |
| Color | Color format | RGB565/RGB666 |
| DMA overflow | Write function | Chunk size |
ALL mean: STOP. Capture with camera, analyze properly.
## GUI Feedback Report
### Capture
Camera: [status]
File: screenshots/[filename].png
Resolution: 1920x1080
### Analysis
Layout: [PASS/FAIL] - [details]
Font: [PASS/FAIL] - [details]
Color: [PASS/FAIL] - [details]
Alignment: [PASS/FAIL] - [details]
Overlap: [PASS/FAIL] - [details]
### Issues
[list or "None detected"]
### Fixes Applied
[list or "None needed"]
### Final Status
GUI: APPROVED / NEEDS FIX
Evidence: [capture path]
If GUI APPROVED:
GUI verification complete.
Project finished. Update AGENTS.md with findings.
Full workflow complete:
- brainstorming → driver-design → implementation → verification → gui-feedback
If GUI NEEDS FIX:
GUI issues detected. Apply fixes, re-verify, re-capture.
Do NOT claim completion until GUI approved.
| Bad | Good |
|---|---|
| "Display looks correct" | Camera capture + analysis |
| Skip camera | Always capture for GUI projects |
| Single glance | Multiple captures, comparison |
| No before/after | Capture before fix, compare after |
| Human judgment only | AI analysis + visual evidence |