About use-screenshot
A skill for checking a recent screenshot, clipboard image, or downloaded image. It runs a script that identifies the source and copies or moves the image to a temporary file for an agent to inspect.
Key features
- 01Finds recent clipboard images
- 02Checks downloaded images
- 03Copies desktop images to a temporary file
- 04Prints source and temporary path
Use cases
- 01Inspecting the latest screenshot
- 02Checking an image copied to the clipboard
- 03Reviewing a recent download
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ gjkeller/ use-screenshot --skill use-screenshotAfter installing, type/use-screenshotin Claude Code to confirm it loaded.
Bundled filesscripts/screenshot-agent.js
Details
From the project READMEUse 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:
- source (
clipboardor original file path) - temp file path (PNG/JPG/JPEG)
- source (
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.
Comments
Markdown supported