0xGondarxyz/claude-code-mods/tree/main/snap
snap
A Claude Code mod. Type `/snap`, drag a box on the screen, and the screenshot goes into your next message.
About this mod
snap
A Claude Code mod. Type /snap, drag a box on the screen, and the screenshot goes into your next message.
How it works
/snapruns Spectacle in region mode:spectacle --region --background --nonotify --output <file>.- The file lands in
~/.cache/claude-snaps/snap-<YYYYMMDD-HHMMSS>.png. - The mod inserts
@<path>at the cursor in your prompt box. Claude Code reads an @-mentioned image file. - Escape, no file, or a non-zero exit shows the toast
Snap cancelledand changes nothing. A missing Spectacle showsSnap needs Spectacle (KDE).
A plugin cannot attach an image to the draft itself (the types only describe attachments of a prompt already sent), so the mod uses the @path text.
You have 2 minutes to drag the box.
Requirements
KDE with Spectacle (/usr/bin/spectacle).
Develop
claude plugin validate .
tsc -p .
claude plugin test .
Installation
Check the author's README for the marketplace and plugin name first. Commands may change as the repository evolves.
claude plugin marketplace add 0xGondarxyz/claude-code-mods claude plugin install snap
Original text / README
snap
A Claude Code mod. Type /snap, drag a box on the screen, and the screenshot goes into your next message.
How it works
/snapruns Spectacle in region mode:spectacle --region --background --nonotify --output <file>.- The file lands in
~/.cache/claude-snaps/snap-<YYYYMMDD-HHMMSS>.png. - The mod inserts
@<path>at the cursor in your prompt box. Claude Code reads an @-mentioned image file. - Escape, no file, or a non-zero exit shows the toast
Snap cancelledand changes nothing. A missing Spectacle showsSnap needs Spectacle (KDE).
A plugin cannot attach an image to the draft itself (the types only describe attachments of a prompt already sent), so the mod uses the @path text.
You have 2 minutes to drag the box.
Requirements
KDE with Spectacle (/usr/bin/spectacle).
Develop
claude plugin validate .
tsc -p .
claude plugin test .
