/wsl-clipboard-fix:wsl-clipboard-setupfrom wsl-clipboard-fix
Installs wl-clipboard and imagemagick, verifies WSLg/Wayland, and configures Alt+V keybinding for pasting images in WSL2 Claude Code.
Ships in wsl-clipboard-fix. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this skill when the user asks to set up, configure, or troubleshoot WSL2 image pasting in Claude Code.
Check that the user is running WSL2:
# Should show Microsoft in version string
grep -qi microsoft /proc/version && echo "WSL detected" || echo "Not WSL"
# Should show WSLInterop
ls /proc/sys/fs/binfmt_misc/WSLInterop* 2>/dev/null && echo "WSL2 confirmed" || echo "WSL1 or not WSL"
Two packages are required:
sudo apt update && sudo apt install -y wl-clipboard imagemagick
Verify:
wl-paste --version
convert --version | head -1
If wl-paste cannot connect to Wayland, ensure WSLg is working:
echo $WAYLAND_DISPLAY # Should show "wayland-0" or similar
ls /mnt/wslg/runtime-dir/wayland-0 2>/dev/null && echo "WSLg OK" || echo "WSLg not available"
The plugin automatically starts the clip2png watcher on session start. Verify it works:
# Test manual conversion
"${CLAUDE_PLUGIN_ROOT}/scripts/clip2png" --once
# Check daemon status
"${CLAUDE_PLUGIN_ROOT}/scripts/clip2png" --status
Windows Terminal intercepts Ctrl+V for text paste. To paste images in Claude Code, bind Alt+V:
Create or edit ~/.claude/keybindings.json:
{
"bindings": [
{
"context": "Chat",
"bindings": {
"alt+v": "chat:imagePaste"
}
}
]
}
Important: The file must have an object with a bindings array at the top level, NOT a bare array.
| Issue | Solution |
|---|---|
wl-paste not found | sudo apt install wl-clipboard |
convert not found | sudo apt install imagemagick |
| Wayland not available | Update to Windows 11 with WSLg support, or run wsl --update |
| Daemon not starting | Check cat /tmp/clip2png.log for errors |
| Image still not pasting | Run wl-paste -l to check clipboard formats; run clip2png --once manually |
| Alt+V not working | Check ~/.claude/keybindings.json format (must be object with bindings array) |
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub zate/cc-plugins --plugin wsl-clipboard-fixOther plugins' skills for the same job