Skip to content
Back to skills

Windows Screenshot

ASecurity

Capture a full-content PNG of a native Windows app window at the correct display scale. Match by window title and return the saved path. Use for apps such as Flutter, VS Code, PowerShell, or Chrome. Do not use for browser pages.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 5, 2026
ai-agentsshell

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned October 7, 2026

npx -y skills add mgerdov-igt/ai-cookbook --skill windows-screenshot --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Windows Screenshot?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Windows Screenshot
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mgerdov-igt-windows-screenshot/badge)](https://www.skillsdirectory.com/skills/mgerdov-igt-windows-screenshot)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: windows-screenshot
description: Capture a full-content PNG of a native Windows app window at the correct display scale. Match by window title and return the saved path. Use for apps such as Flutter, VS Code, PowerShell, or Chrome. Do not use for browser pages.
---

# windows-screenshot

Capture a visible Windows app window as a PNG and return the saved path.

## When to use

Use this skill when the user asks for a screenshot of a running Windows app.

Typical trigger phrases:
- "screenshot the app"
- "grab a screenshot of the Windows app"
- "capture the Flutter window"
- "show me the VS Code window screenshot"

Do not use this skill for browser pages. Use the browser screenshot tool instead.

## How to invoke

```powershell
powershell -NoProfile -ExecutionPolicy Bypass -File "<skill-folder>\capture.ps1" -Match "<window-title>"
```

Replace `<skill-folder>` with the folder containing this `SKILL.md` file.

Optional flags:
- `-OutDir "C:/some/dir"`
- `-WaitMs 500`

## Output Format

- The last printed line is the full PNG path.
- Other messages print before it.
- Exit codes:
- `0` success
- `2` no match
- `3` `GetWindowRect` failed
- `4` zero-size window
- `5` `PrintWindow` failed

## Safety Rules

- Do not read PNG bytes into chat unless user asks to inspect image.
- If multiple windows match, narrow with a more specific `-Match` value.

## Why this skill saves tokens

- Saves the display-scale and window-capture steps in one place.
- Returns one path line.
- Avoids repeating fixes for common capture problems.

Files in this skill

  • SKILL.md1.6 KB
  • capture.ps15.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.