ClaudeMods
☰
KO
● 0 명 접속 중 · 조회 0 회
후원프로젝트 제출
GitHub 저장소 · 작성자 0xGondarxyz

snap

Claude Code mod입니다. `/snap`을 입력하고 화면에서 영역을 드래그하면 스크린샷이 다음 메시지에 들어갑니다.

0xGondarxyz@0xGondarxyz

0xGondarxyz/claude-code-mods/tree/main/snap

번역 완료

이 mod 소개

snap

Claude Code mod입니다. /snap을 입력하고 화면에서 영역을 드래그하면 스크린샷이 다음 메시지에 들어갑니다.

작동 방식

  1. /snap은 Spectacle을 영역 모드로 실행합니다: spectacle --region --background --nonotify --output <file>.
  2. 파일은 ~/.cache/claude-snaps/snap-<YYYYMMDD-HHMMSS>.png에 저장됩니다.
  3. mod는 프롬프트 상자의 커서에 @<path> 를 삽입합니다. Claude Code는 @로 지정된 이미지 파일을 읽습니다.
  4. Escape를 누르거나 파일이 없거나 종료 코드가 0이 아니면 토스트 Snap cancelled를 표시하고 아무것도 변경하지 않습니다. Spectacle이 없으면 Snap needs Spectacle (KDE)를 표시합니다.

플러그인은 초안 자체에 이미지를 첨부할 수 없습니다(타입은 이미 전송된 프롬프트의 첨부만 설명함). 따라서 mod는 @path 텍스트를 사용합니다.

영역을 드래그할 시간은 2분입니다.

요구 사항

Spectacle이 있는 KDE(/usr/bin/spectacle).

개발

claude plugin validate .
tsc -p .
claude plugin test .

설치

먼저 작성자의 README에서 marketplace와 플러그인 이름을 확인하세요. 저장소 구조에 따라 명령어가 달라질 수 있습니다.

claude plugin marketplace add 0xGondarxyz/claude-code-mods
claude plugin install snap
원문 / 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 .

비슷한 프로젝트