Agent Skillsdzhng/skills › preview-shots

preview-shots

GitHub

在macOS上将精选图片截图批量打开至单一Preview窗口,便于用户快速对比审查。自动管理窗口状态,避免杂乱,支持非阻塞流程的自动关闭。

skills/visual/preview-shots/SKILL.md dzhng/skills

Trigger Scenarios

用户要求查看或审查截图、基准图或渲染结果 生成视觉产物后需用户确认

Install

npx skills add dzhng/skills --skill preview-shots -g -y
More Options

Non-standard path

npx skills add https://github.com/dzhng/skills/tree/main/skills/visual/preview-shots -g -y

Use without installing

npx skills use dzhng/skills@preview-shots

指定 Agent (Claude Code)

npx skills add dzhng/skills --skill preview-shots -a claude-code -g -y

安装 repo 全部 skill

npx skills add dzhng/skills --all -g -y

预览 repo 内 skill

npx skills add dzhng/skills --list

SKILL.md

Frontmatter
{
    "name": "preview-shots",
    "description": "Open image shots (screenshots, snapshot baselines, montages, renders) in ONE macOS Preview window so the user can eyeball them. Use when the user asks to open \/ show \/ pull up \/ review shots in Preview or Finder, or right after producing visual artifacts the user should look at before signing off."
}

Preview Shots

Put the review-worthy images in front of the user in a single Preview window they can flip through.

Workflow

  1. Curate the set — the images that answer "is this right?": the just-changed or just-blessed baselines, the integrated result, and the reference image when there's something to compare against. Don't dump every PNG in the folder; pick the smallest set that lets the user judge the change. If the user named specific shots, open exactly those.
  2. One window — open them with a single open -a Preview <path> <path> ... call. One open invocation lands all the files in one window with a thumbnail sidebar; separate calls spawn separate windows.
  3. Caption them — list one line per shot (what it is) so the user knows what they're flipping through.

Rules

  • macOS only (open); pass absolute or repo-root-relative paths.
  • Order the files most-important-first; the first one is what Preview shows on open.
  • Review saved PNG/GIF artifacts, not live Chrome. Exact regression capture should run headless by default; only open Chrome when the user explicitly asks for a live browser or when reproducing a headful-only bug.
  • One set at a time — never pile up windows. Before opening a new set, close any open ones: osascript -e 'tell application "Preview" to close every window'.
  • Close on unattended proceed. When you opened shots for a non-blocking review and then move on without the user's response, close Preview afterward: osascript -e 'quit app "Preview"'. An overnight autonomous run must never wake the user to a wall of Preview windows — at most one set open, and none once you've proceeded past the checkpoint.

Version History

  • c795702 Current 2026-09-08 17:35

Same Skill Collection

skills/authoring/eval-skills/SKILL.md
skills/authoring/write-skills/SKILL.md
skills/engineering/audit-performance/SKILL.md
skills/engineering/claude/SKILL.md
skills/engineering/code-review/SKILL.md
skills/engineering/codex/SKILL.md
skills/engineering/eli5/SKILL.md
skills/engineering/implement-spec-with-codex/SKILL.md
skills/engineering/implement-spec/SKILL.md
skills/engineering/marketing-pages/SKILL.md
skills/engineering/refactor-clean/SKILL.md
skills/engineering/review/SKILL.md
skills/engineering/write-docs/SKILL.md
skills/engineering/write-tests/SKILL.md
skills/graphics/renderer/SKILL.md
skills/visual/compare-screenshots/SKILL.md
skills/visual/screenshot-critique/SKILL.md
skills/engineering/audit-choices/SKILL.md
skills/engineering/close-spec/SKILL.md
skills/engineering/explore-unknowns/SKILL.md
skills/engineering/write-spec/SKILL.md

Metadata

Files
0
Version
c795702
Hash
0f678cd1
Indexed
2026-09-08 17:35

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-09 01:30
浙ICP备14020137号-1 $mapa de visitantes$