home / skills / aidotnet / moyucode / screenshot-capture

screenshot-capture skill

/skills/tools/screenshot-capture

This skill captures screenshots of the full screen, windows, or regions with optional annotations to enhance clarity.

npx playbooks add skill aidotnet/moyucode --skill screenshot-capture

Review the files below or copy the command above to add this skill to your agents.

Files (2)
SKILL.md
876 B
---
name: screenshot-capture
description: 捕获屏幕、窗口或区域的截图,支持标注。
metadata:
  short-description: 捕获截图
source:
  repository: https://github.com/python-pillow/Pillow
  license: HPND
---

# Screenshot Capture Tool

## Description
Capture screenshots of the entire screen, specific windows, or custom regions with annotation support.

## Trigger
- `/screenshot` command
- User needs to capture screen
- User wants to take screenshots

## Usage

```bash
# Capture full screen
python scripts/screenshot_capture.py --output screen.png

# Capture region
python scripts/screenshot_capture.py --region 0,0,800,600 --output region.png

# Capture with delay
python scripts/screenshot_capture.py --delay 3 --output delayed.png
```

## Tags
`screenshot`, `capture`, `screen`, `image`, `automation`

## Compatibility
- Codex: ✅
- Claude Code: ✅

Overview

This skill captures screenshots of the entire display, individual windows, or a custom rectangular region and includes basic annotation tools. It supports timed captures and can export images in common formats. The tool is designed for quick manual captures or integration into automation flows. It prioritizes simple commands and predictable output files.

How this skill works

The skill listens for a capture command and then grabs pixel data from the chosen target: full screen, a focused window, or a user-specified region. It can wait for a specified delay to allow UI changes before capturing. After capture, optional annotation tools let you add highlights, arrows, or text and then save the result to an output file.

When to use it

  • Document UI bugs or visual regressions
  • Create annotated screenshots for tutorials or design reviews
  • Capture a specific app window for reporting
  • Record a timed shot after triggering an action
  • Automate periodic visual checks in scripts

Best practices

  • Specify an explicit output filename to avoid overwriting files
  • Use a small delay when capturing transient UI states or menus
  • Define a precise region when you only need part of the screen to reduce post-processing
  • Annotate immediately after capture to preserve context
  • Check image format and resolution requirements before saving

Example use cases

  • Capture full desktop to document a bug and attach the image to an issue report
  • Take a region screenshot of a chart for inclusion in a presentation slide
  • Set a 3-second delay to open a dropdown menu and capture it with annotations
  • Automate nightly captures of a dashboard area for visual monitoring
  • Grab a specific application window to produce a step-by-step tutorial image

FAQ

Can I capture a specific window instead of the whole screen?

Yes. You can target a single window so only that window's pixels are captured, avoiding extra cropping steps.

Is there a delay option to prepare the screen before capture?

Yes. A configurable delay lets you open menus or set up transient UI states before the screenshot is taken.

Can I add annotations after capture?

Yes. Built-in annotation tools let you add arrows, highlights, and text before exporting the final image.