---
title: "snap"
url: "https://claudemods.dev/en/builds/snap-5ae6cf"
source: "https://github.com/0xGondarxyz/claude-code-mods/tree/main/snap"
source_type: "github"
repo: "https://github.com/0xGondarxyz/claude-code-mods/tree/main/snap"
author: "0xGondarxyz"
author_handle: "0xGondarxyz"
stars: 0
category: "Tools & integrations"
categories: ["tools"]
tags: ["claude-code", "hooks", "kde", "mod", "plugin", "screenshot", "spectacle"]
permission_level: 2
scan_complete: true
install: "claude plugin marketplace add 0xGondarxyz/claude-code-mods\nclaude plugin install snap"
added: "2026-10-05T15:22:05.364Z"
updated: "2026-10-04T03:31:50Z"
locale: "en"
content_locale: "en"
---

# snap

A Claude Code mod. Type `/snap`, drag a box on the screen, and the screenshot goes into your next message.

## Description

# snap

A Claude Code mod. Type `/snap`, drag a box on the screen, and the screenshot goes into your next message.

## How it works

1. `/snap` runs Spectacle in region mode: `spectacle --region --background --nonotify --output <file>`.
2. The file lands in `~/.cache/claude-snaps/snap-<YYYYMMDD-HHMMSS>.png`.
3. The mod inserts `@<path> ` at the cursor in your prompt box. Claude Code reads an @-mentioned image file.
4. Escape, no file, or a non-zero exit shows the toast `Snap cancelled` and changes nothing. A missing Spectacle shows `Snap 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 .

## Install

```
claude plugin marketplace add 0xGondarxyz/claude-code-mods
claude plugin install snap
```

## Original 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

1. `/snap` runs Spectacle in region mode: `spectacle --region --background --nonotify --output <file>`.
2. The file lands in `~/.cache/claude-snaps/snap-<YYYYMMDD-HHMMSS>.png`.
3. The mod inserts `@<path> ` at the cursor in your prompt box. Claude Code reads an @-mentioned image file.
4. Escape, no file, or a non-zero exit shows the toast `Snap cancelled` and changes nothing. A missing Spectacle shows `Snap 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 .
