use-screenshot

📁 gjkeller/use-screenshot 📅 10 days ago
1
总安装量
1
周安装量
#41098
全站排名
安装命令
npx skills add https://github.com/gjkeller/use-screenshot --skill use-screenshot

Agent 安装分布

windsurf 1
amp 1
opencode 1
cursor 1
codex 1
claude-code 1

Skill 文档

Use Screenshot

Trigger

When the user asks to check the latest screenshot, clipboard image, or a recent downloaded image.

Usage

  • Repo: node skills/use-screenshot/scripts/screenshot-agent.js
  • Downloads: node skills/use-screenshot/scripts/screenshot-agent.js --downloads
  • Clipboard only: node skills/use-screenshot/scripts/screenshot-agent.js --clipboard-only
  • Output is two lines:
    1. source (clipboard or original file path)
    2. temp file path (PNG/JPG/JPEG)

Agent pattern

out="$(node skills/use-screenshot/scripts/screenshot-agent.js)"
tmp="$(printf "%s\n" "$out" | sed -n '2p')"

If tmp is empty, treat as not found.

Notes

  • Desktop files are copied to temp then trashed.
  • Downloads files are moved to temp (not trashed).
  • Clipboard has no copy timestamp; the tool prefers a file modified within ~30s, otherwise clipboard.
  • Linux: requires wl-clipboard or xclip for clipboard images.