pravnyadv

Cpssh — Development skill for Claude Code

Development community

Copy screenshots on your Mac.

How to install Cpssh

This entry records only its repository, not the path inside it, so there is no exact command to give. Open pravnyadv/cpssh and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Cpssh does

Copy screenshots on your Mac. Paste them in Claude Code over SSH.

Alternatives in Development

  • Claude How To — by luongnv89 — Example-driven guide to mastering Claude Code through progressive tutorials with copy-paste tem 8.5k ★
  • Last30days Skill — Claude Code skill that researches any topic across Reddit + X from the last 30 days, then writes copy-paste-re 4.4k ★
  • Peon Ping — Warcraft III Peon voice notifications (+ StarCraft, Portal, Zelda) for Claude Code and other agents 4k ★

README

cpssh

Copy a screenshot on your Mac. Paste it in Claude Code on your SSH server.


Claude Code running over SSH can't read your local clipboard. `cpssh` bridges the gap: it watches your Mac's clipboard for images, syncs them to your server over SSH, and adds a text reference alongside the image — terminal paste gives the path, image apps still get the original PNG.

[you copy a screenshot]
     ↓
cpssh syncs it → dev@myserver:~/.cpssh/img5.png
     ↓
clipboard now contains: original PNG + [~/.cpssh/img5.png]
     ↓
paste in Claude Code on SSH → terminal gets the path → Claude reads the file
paste in Slack/Preview        → still gets the original image

Requirements

  • macOS as your local machine (where you take screenshots)
  • An SSH server reachable with a key (password auth not supported)
  • Claude Code on the server
  • pngpaste — brew install pngpaste

**Linux local machine:** The daemon runs on Linux but only the text reference is written to the clipboard (the original image is replaced). macOS gets dual-type clipboard via NSPasteboard.

Install

curl -fsSL https://raw.githubusercontent.com/pravnyadv/cpssh/main/install.sh | bash

Then run setup:

cpssh setup

Setup will ask for your SSH server, pick an SSH key from `~/.ssh`, and install a background daemon that starts automatically on login.

**Using an AWS `.pem` key?** When setup shows the key picker, choose `[0] Enter path manually` and type the full path to your `.pem` file. Make sure the file has the right permissions first: `chmod 400 ~/path/to/key.pem`

How to use

  1. Take a screenshot with Cmd+Shift+4 (saves to clipboard on macOS)
  2. Paste in Claude Code on your SSH session — the sync happens in the background and the text reference is ready almost instantly
  3. Claude reads the file and sees the image

You can attach multiple images to one prompt: filenames cycle through `img1.png`–`img10.png`. Copy → paste → copy → paste to