Skip to main content
skill

screenshot · davila7 — Claude Code skill: capture the desktop on request

Takes a picture of the whole screen, a single app window or a pixel region when the agent has no built-in capture route for the task.

Install into Claude Code · claude-code-templates All methods and platforms ↓
npx claude-code-templates@latest --skill media/screenshot
Open on GitHub

What screenshot does

The skill kicks in on an explicit request for a desktop screenshot, or when the tool you are working with cannot grab the screen itself. For browsers and Electron apps the author points to Playwright or agent-browser first, and Figma files go through a Figma MCP server. This one covers plain desktop apps that lack a better capture path.

Two helpers do the work: take_screenshot.py on macOS and Linux, take_screenshot.ps1 on Windows. The Python version handles a full-screen grab, a --region x,y,w,h box, the frontmost window, and app name lookup with an optional window title filter — those last two are macOS only. Where the file lands follows three rules: your own path if you gave one, the OS screenshot folder if not, and temp when the agent needs the image for itself.

On macOS, capturing a window or app requires Screen Recording access, so the helper is run through ensure_macos_permissions.sh. The Linux helper picks the first tool it finds among scrot, gnome-screenshot and ImageMagick import. Without one of them the capture fails, so install one before you rely on it.

Raw OS examples with screencapture, scrot and gnome-screenshot are included as fallbacks. Python 3 or PowerShell is needed, depending on the system.

What it helps with

  • take a full-screen shot into a given file
  • grab one app window by its name
  • cut out a rectangular pixel area
  • feed the agent a screenshot for a visual check
  • compare a live UI against a design capture

Example prompts for the agent

  • Take a screenshot of my screen and save it to output/screen.png
  • Capture the Claude app window and tell me what is on it
  • Screenshot region 100,200,800,600 into the temp folder

How to install screenshot

1claude-code-templates

npx claude-code-templates@latest --skill media/screenshot

2Skills CLI (Vercel)

npx skills add davila7/claude-code-templates --skill screenshot -a claude-code

3Manually: put the files in place

~/.claude/skills/screenshot/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/screenshot/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about screenshot

How do I install screenshot in Claude Code?

With the templates CLI: npx claude-code-templates@latest --skill media/screenshot. Or add it from the repo: npx skills add davila7/claude-code-templates --skill screenshot -a claude-code. The skill file ends up at ~/.claude/skills/screenshot/SKILL.md.

What does the screenshot skill do?

It runs a bundled script for your OS that grabs the screen, a window or a pixel region, then prints a path for each file it saved. The agent opens those paths in order to look at the result.

Why can't I capture an app window on Linux?

The --app, --window-name and --list-windows options exist only in the macOS helper. On Linux you get --active-window and --window-id, and pixel regions require scrot or ImageMagick import.

Similar skills

All skills for Agent setup: memory, context, orchestration →

screenshot by other authors comes first.

screenshot nexu-io Captures app windows or pixel regions across operating systems. Useful for bug reports and design reviews. CX Codex +1 2,700installs screenshot bobmatnyc This skill sets up screenshot checks for UI changes across desktop, tablet, and mobile. Use it when a pull request needs visible proof of the result. CX Codex +1 380installs screenshot zernie This skill renders local pages in Chromium and saves full-page desktop and mobile captures. Use it to inspect a landing page, report, or local dev server. CX Codex +1 337installs setup-matt-pocock-skills Matt Pocock This skill configures a repository for Matt Pocock's engineering skills by setting its issue tracker, triage labels, and domain docs layout. Run it before using the other skills. 1,052,851installs ask-matt Matt Pocock Routes you to the right Matt Pocock skill or flow for the task at hand. Use it when you need a starting point for a feature, prototype, incoming issue, or hard bug. 766,587installs to-tickets Matt Pocock Turns a plan, spec, or conversation into small end-to-end tickets with explicit blockers. Use it to agree on the work breakdown before tickets go to a tracker. 711,230installs writing-plans Jesse Vincent This skill turns requirements for a multi-step task into an implementation plan before code changes begin. It helps when another engineer needs exact files, interfaces, and checks. CX Codex 282,859installs caveman-review JuliusBrussee Turns code review comments into one line per finding: location, problem, fix. Useful when a diff or PR needs a fast pass without the filler. CX Codex +1 411,800installs caveman-compress JuliusBrussee Compresses CLAUDE.md, todo lists, and other prose files into a shorter format while retaining a readable backup. CX Codex +1 411,500installs

From the same set495

The whole set →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor