Skip to content
Development
Command

/screenshot

Capture screenshots on macOS and analyze the images.

From plugin
claude-code-cookbook
1.1k39 skills9 agents39 commands8 MCP
Install
> /plugin marketplace add wasabeef/claude-code-cookbook

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/screenshot

Context preview

What this command does when you run it.

Capture screenshots on macOS and analyze the images.

Command definition

screenshot.md

Capture and analyze macOS screenshots

Capture screenshots on macOS and analyze the images.

Usage

/screenshot [options]

Options

  • None: Select window (Claude will confirm options)
  • `--window`: Capture a specific window
  • `--full`: Capture the entire screen
  • `--crop`: Select a region to capture

Basic Examples

# Capture and analyze a window
/screenshot --window
"Analyze the captured screen"

# Select a region and analyze
/screenshot --crop
"Explain the content of the selected region"

# Capture full screen and analyze
/screenshot --full
"Analyze the overall screen composition"

Collaboration with Claude

# No specific problem - situation analysis
/screenshot --crop
(Claude will automatically analyze screen content, explaining elements and composition)

# UI/UX problem analysis
/screenshot --window
"Propose problems and improvements for this UI"

# Error analysis
/screenshot --window
"Tell me the cause and solution for this error message"

# Design review
/screenshot --full
"Evaluate this design from a UX perspective"

# Code analysis
/screenshot --crop
"Point out problems in this code"

# Data visualization analysis
/screenshot --crop
"Analyze trends visible in this graph"

Detailed Examples

# Analysis from multiple perspectives
/screenshot --window
"Analyze this screen regarding:
1. UI consistency
2. Accessibility issues
3. Improvement proposals"

# Multiple captures for comparative analysis
/screenshot --window
# (Save before image)
# Make changes
/screenshot --window
# (Save after image)
"Compare before and after images, analyzing changes and improvement effects"

# Focus on specific elements
/screenshot --crop
"Evaluate whether the selected button design harmonizes with other elements"

Prohibited Items

  • **Prohibited to say "captured" when no screenshot was taken**
  • **Prohibited to attempt analysis of non-existent image files**
  • **The `/screenshot` command does not actually capture screenshots**

Notes

  • If no option is specified, please present the following choices:
  "How would you like to capture the screenshot?
  1. Select window (--window) → screencapture -W
  2. Full screen (--full) → screencapture -x
  3. Select region (--crop) → screencapture -i"
  • Start image analysis after the user has executed the screencapture command
  • Specifying specific problems or perspectives enables more focused analysis
Read more
Ships withclaude-code-cookbook

A collection of commands, roles, and automation scripts for Claude Code. Automate your workflow without unnecessary confirmations, allowing you to focus on what matters.

Get the whole plugin