AGENT SKILL

screenshot

Invoke when the user refers to something on their screen — "look at the screenshot", "see the screenshot I just took", "what does this dialog say", "look at my screen" — whether or not they attached an image.

License 许可
MIT
最近更新
2026-11-12
Stars
★ 0
Forks
0

01 前言 Front Matter

name
screenshot
description
Invoke when the user refers to something on their screen — "look at the screenshot", "see the screenshot I just took", "what does this dialog say", "look at my screen" — whether or not they attached an image.
user-invocable
true
disable-model-invocation
true

02 资源文件 7

03 SKILL.md 正文

Screenshot

Get an image of what the user is talking about and Read it.

Which command

  • They already took one → screenshot latest, then Read the printed path.
  • They didn't ("look at my screen", no image arrived) → screenshot take, then Read.
  • Ambiguous → prefer take — finding an unrelated old shot is worse than a fresh capture.
"${SKILL_TREE_DIR:-$HOME/projects/skill-tree}/skills/screenshot/scripts/screenshot" latest
"${SKILL_TREE_DIR:-$HOME/projects/skill-tree}/skills/screenshot/scripts/screenshot" take

take is WSL-only (needs powershell.exe) and prompts for permission deliberately. If the user needs to bring a window to the front first, say so before capturing.

If latest is clearly wrong, screenshot list 10 shows the ten most recent — pick or ask.

Hooks

A PreToolUse hook pre-approves latest/list/dir/help and Read of images inside the screenshots directory. Everything else (take, set, chained commands, non-images, paths outside the directory) prompts normally. If read-only commands prompt unexpectedly, the hook isn't loaded — say so rather than working around it.

When it can't find anything

  • no screenshots in <dir> — directory exists but is empty. On Windows, Snipping Tool only saves when "Automatically save screenshots" is on; offer take instead.
  • no screenshots directory found — ask the user to run screenshot set <path>.

CLI

Also reachable as skill-tree screenshot <command>:

Command What it does
take Capture desktop, print path (WSL only)
latest Newest screenshot's path (exit 1 if empty)
list [N] N newest, newest first (default 10)
dir Resolved screenshots directory
set <path> Override auto-detection with a fixed directory
--version Plugin version (no config needed)

Paths often contain spaces — quote them when passing to another command.

04 同仓库更多 Skills

dannybrown37
dannybrown37/skill-tree

wait-what

Stop. Your plan/idea did not land. Re-pitch it.

★ 0
dannybrown37
dannybrown37/skill-tree

verify

Verify before answering whether something works, still passes, is gone, is used, or is correct — and whenever the user says "can you confirm", "are you sure", "did that actually work", or reports something is "still" broken. Produces the answer plus the evidence that would have falsified it. A failed GitHub Actions run is skill-tree:debug-ci instead.

★ 0
dannybrown37
dannybrown37/skill-tree

ui-designer

Design or restyle a web UI — landing pages, dashboards, docs sites, app chrome — or when the user asks why a site "looks generic", "looks like a template", or wants it to feel intentional. A running list of design lessons learned, applied as rules rather than suggestions.

★ 0
dannybrown37
dannybrown37/skill-tree

two-axis-review

Two-axis review of changes since a fixed point (commit, tag, HEAD~N, or default HEAD~1): Standards (does the code follow this repo's conventions?) and Spec (does the code do what it should?). Axes run as parallel sub-agents so neither masks the other. Use when the user says "review against the spec", "does this follow our conventions", "standards and spec review", or "two-axis review". Not a correctness bug hunt — that's the built-in `/code-review`.

★ 0
dannybrown37
dannybrown37/skill-tree

tui-screenshots

Use for generating or refreshing TUI screenshots for docs — "regenerate the screenshots", "the README screenshots are stale". Drives a Textual/TUI app headlessly and exports SVG. Not for reading a user's screenshot — that is `screenshot`.

★ 0
dannybrown37
dannybrown37/skill-tree

to-tickets

Break a spec, plan, or conversation into tracer-bullet vertical-slice tickets with blocking edges — "turn this into tickets", "break this down", "what's the work?". Pairs with skill-tree:to-spec upstream and skill-tree:handoff downstream.

★ 0