Paste. Analyze. Done.
Automatically save and analyze clipboard images using MiniMax's vision capabilities.
- πΌοΈ Zero-friction image analysis - Just paste, no file saving needed
- π Automatic workflow - Detects clipboard β saves β analyzes β cleans up
- π― Session isolation - Strict mode ensures images only attach when intended (
[Image]marker) - π§Ή Auto cleanup - Temporary files older than 24h are automatically removed
- π Race condition safe - Lock mechanism prevents conflicts
User: [Pastes screenshot]
User: What's in this image?
Claude: πΌοΈ Clipboard image detected. Starting MiniMax analysis...
[MiniMax analyzes the image]
Claude: This screenshot shows a web application dashboard with...
Just run this single command to install the clipboard skill:
bash <(curl -fsSL https://raw.githubusercontent.com/ComBba/minimax-clipboard-skill/master/scripts/install.sh)Note: Requires
pngpasteon macOS. If not installed, runbrew install pngpaste.
-
Copy any image to your clipboard:
- Screenshot (Cmd+Shift+4 on macOS)
- Drag image from browser
- Copy from Preview/Photos
- Right-click β Copy Image
-
Paste in Claude Code (Cmd+V)
- You will see
[Image 1]automatically inserted.
- You will see
-
Ask your question or press Enter
-
Claude automatically analyzes the image using MiniMax.
This skill operates in Strict Mode:
- It ONLY accesses your clipboard when it detects the
[Image]marker that Claude Code inserts when you paste. - It will NOT trigger if you just say "image" or "clipboard" in text.
- This ensures your clipboard privacy and prevents accidental image attachments from other sessions.
- The skill automatically cleans up temporary files and directories that are older than 24 hours.
- You don't need to worry about disk space usage.
[Paste screenshot]
Analyze this UI and suggest improvements
[Paste document scan]
Extract all text from this image and format as markdown
[Paste browser screenshot]
Why is the layout broken on mobile?
- Operating System: macOS (uses
pngpasteandpbcopy) - Python: 3.7+ (uses standard library only)
- Claude Code: Latest version with hook support
- MiniMax MCP: Configured and enabled
The hook uses these defaults (customizable in hook.py):
- Temp directory:
~/.claude/tmp/images/clipboard/ - Cleanup Age: 24 hours
- Retry attempts: 5 (for race condition handling)
Contributions welcome! See CONTRIBUTING.md for guidelines.
MIT License - see LICENSE file for details.
- Built for Oh-My-OpenCode framework
- Uses MiniMax MCP for image understanding