# Screenshot Latest Skill

Automatically finds your most recent screenshot so you don't have to type the full path every time.

## What It Does

Instead of typing:
```
"Look at ~/Pictures/Screenshots/Screenshot-2025-11-08-14-06-33.png"
```

Just say:
```
"Look at my last screenshot"
```

The AI will automatically find and analyze the most recent screenshot.

## Installation

### Claude Code
```bash
ln -s $(pwd)/skills/screenshot-latest ~/.claude/skills/screenshot-latest
```

### OpenCode
```bash
ln -s $(pwd)/skills/screenshot-latest ~/.config/opencode/skills/screenshot-latest
```

## Usage

Simply ask the AI to look at your screenshot using natural language:

- "Look at my last screenshot"
- "What's in my latest screenshot?"
- "Analyze my recent screenshot"
- "Show me my screenshot"

## Requirements

- Screenshots stored in `~/Pictures/Screenshots/`
- Supported formats: PNG, JPG, JPEG
- Bash 4.0+

## How It Works

The skill runs a simple bash script that:
1. Checks if the screenshots directory exists
2. Finds all image files (png, jpg, jpeg)
3. Sorts them by modification time (newest first)
4. Returns the path to the most recent file

The AI then uses this path to analyze the image.

## Testing

Try it out:
```bash
./scripts/find-latest.sh
# Should output: /home/you/Pictures/Screenshots/most-recent-file.png
```

## Limitations

- Only works with `~/Pictures/Screenshots/` (no custom directories yet)
- Only finds the absolute latest screenshot (no "second-to-last" or time filters)
- Requires at least one screenshot to exist

These limitations are intentional - keeping the skill simple and focused on the most common use case.

## Future Enhancements

If users request them:
- Support for custom screenshot directories
- Find Nth most recent screenshot
- Time-based filtering ("screenshot from 5 minutes ago")

For now, YAGNI (You Aren't Gonna Need It).
