---
name: wsl-screenshot
description: "Automatically read the latest screenshot from the Windows host. Use this proactively whenever the user mentions keywords like: screenshot, capture, screen capture, キャプチャ, スクショ, スクリーンショット, 画面, 撮った, 今の画面. Do NOT wait for the user to ask explicitly - if any of these keywords appear in the conversation, invoke this skill immediately."
allowed-tools: Bash(*), Read(*)
---

# Windows Host Screenshot Reader (WSL2)

When the user mentions a screenshot or screen capture (in any language), follow these steps:

## Step 1: Resolve the Windows user profile path

Run the following to get the Windows user profile path dynamically:

```bash
WIN_PROFILE=$(/mnt/c/Windows/System32/cmd.exe /c "echo %USERPROFILE%" 2>/dev/null | tr -d '\r\n') && SCREENSHOTS_DIR=$(echo "$WIN_PROFILE" | sed 's|\\|/|g; s|C:|/mnt/c|')/Pictures/Screenshots && echo "$SCREENSHOTS_DIR"
```

Do NOT use `%USERNAME%` or `wslvar` — they return the WSL username, not the Windows one.

## Step 2: Find the latest screenshot

```bash
ls -t "$SCREENSHOTS_DIR" | head -1
```

## Step 3: Read the screenshot

Use the Read tool to read the image file at the full path:

```
<SCREENSHOTS_DIR>/<LATEST_FILE>
```

## Notes

- The Windows screenshot shortcut (Shift+Win+S) saves to `C:\Users\<USERNAME>\Pictures\Screenshots\`
- This path is accessible from WSL2 via `/mnt/c/`
- The Read tool supports image files (PNG, JPG, etc.) natively
- If the user says "the screenshot I just took" or similar, always get the single most recent file
- If the user mentions multiple screenshots or a specific time range, list recent files and let them choose
