一键导入
ui-screenshots
Capture and refresh Themarr README screenshots using Playwright in an agent-driven workflow where the agent selects representative UI states.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Capture and refresh Themarr README screenshots using Playwright in an agent-driven workflow where the agent selects representative UI states.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | ui-screenshots |
| description | Capture and refresh Themarr README screenshots using Playwright in an agent-driven workflow where the agent selects representative UI states. |
Use this skill when asked to update README screenshots. The agent should decide which UI states best represent current functionality, then capture both dark and light theme variants.
pip install playwright Pillow -q
python3 -m playwright install chromium
N) yourself.N scenes in dark mode and in light mode.## Screenshots section so it matches exactly the files
you produced.Before considering the run complete, verify all of the following:
Preview stream could not be loaded. Check connection and item availability.Could not prepare preview: ...If any check fails, iterate: adjust mocking/capture behavior and recapture.
When running against local Themarr, mock API responses so screenshots are stable and representative:
/api/status/api/libraries/api/items/<provider>/<item_id>/theme/preview/check -> { "available": true }/api/items/<provider>/<item_id>/theme/preview -> playable audio streamThis prevents sidebar states like "No libraries found" for one provider when capturing product screenshots.
For poster-heavy views, prioritize real poster art whenever feasible:
/api/poster/* and YouTube thumbnail URLs to fetched/cached assets.For modal-focused scenes, capture the full application view with the modal overlaid (not the modal box alone):
#preview-audio-error remains hidden/empty.error text exists inside the modalUse:
screenshots/{index}_{slug}_dark.pngscreenshots/{index}_{slug}_light.pngWhere:
index is zero-padded (01, 02, ...)slug is short, stable, and feature-oriented (for example: library_grid,
youtube_modal, copy_theme_modal)(index, slug) must have both _dark and _light filesThe agent should prioritize screenshots that show:
If the UI changes, the agent can choose equivalent updated screens as long as the same feature categories are represented in both dark and light themes.
After capturing screenshots, the agent should rewrite the entire
README.md screenshot section: