openai/skills

screenshot

按目标窗口和区域捕获实际屏幕

  • SKILL.md 已保存
  • 中文用法已整理
  • 安装与运行未实测
先判断是否解决你的问题

screenshot 是什么?

按操作系统截取桌面、窗口或指定像素区域,并将图片保存到用户路径、系统默认位置或用于检查的临时目录。浏览器和Figma等有专用截图工具时优先使用专用能力。

中文说明由本站依据来源整理;英文原文保留在页面下方。

适合用在

  • 用户明确要求系统、桌面或指定窗口截图,或当前工具没有应用专用截图能力,需要按操作系统调用捕获方式。

这些情况不适合

  • 网页或 Figma 已有专用截图能力且足以满足需求;来源要求优先使用这些专用工具。
按客户端选择安装入口

怎么接入你的 Agent?

  1. 定位完整 Skill 目录

    打开本项目来源,核对 SKILL.md 及其引用的脚本和资料。

  2. 交给你正在用的 Agent

    在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。

  3. 确认识别,再做具体任务

    让 Agent 回报安装目录和识别到的名称 screenshot,然后按本页使用示例提供材料。

展开并复制给 Codex 的安装指令
发送给 Codex

安装并检查 screenshot

请在 Codex 的当前工作环境中安装并检查 screenshot 这个 Skill。

项目身份:openai/skills / screenshot
来源:https://github.com/openai/skills/blob/49f948faa9258a0c61caceaf225e179651397431/skills/.curated/screenshot/SKILL.md
已定位的源文件:skills/.curated/screenshot/SKILL.md

1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。
准备输入,再按步骤执行

装好以后,具体怎么用?

准备哪些材料

  • 明确要截全屏、应用窗口还是像素区域;目标应在可捕获桌面上,macOS可能需要屏幕录制权限。

会得到什么

  • 实际截图文件与保存路径,必要时有多个显示器或窗口文件。

实际使用顺序

  1. 选择工具:网页优先浏览器截图,整个系统或无专用工具的桌面应用使用本Skill。
  2. 按OS使用附带Python或PowerShell脚本,明确保存位置;多窗口或多显示器时查看全部返回路径,不能只检查第一张。
  3. 打开实际截图核对窗口、区域和最新状态,再返回文件路径;窗口未匹配或缺捕获工具时报告实际问题。
使用示例

从一个具体任务开始

本站根据源文件编写的使用示例,未在本站实际运行。示例中的文件由你提供。

安装并识别 Skill 后发送

复制一个具体任务

教学示例:用screenshot将当前Windows桌面截图保存到我指定的output/screen-review.png,用于查看本地应用布局。先确认目标路径和截图范围,用附带PowerShell脚本捕获,随后打开图片核对;不点击应用、不修改系统设置。
预期结果

预期得到实际桌面图片及路径;本站未执行该截图示例。

使用前先看这些限制

使用条件与边界

  • 各平台参数不同,来源中的--app、--window-name和--list-windows限macOS,不能直接当Windows参数使用。
针对这个 Skill 的疑问

常见问题

能直接截浏览器整页吗?

桌面截图捕获屏幕可见区域。网页整页优先使用浏览器自身截图能力,避免把显示器截图误当完整网页。

为什么会输出多张图?

macOS多显示器或匹配多个应用窗口时可能分别保存;应依脚本返回路径逐张查看。

需要核对时再展开原文

来源原文与资料状态

源文件
已保存 SKILL.md,抓取于 2026-11-16T12:36:35.145Z
中文使用说明
已针对下方源文件版本整理用途、用法和常见问题
安装与任务测试
本站未执行安装或任务测试
来源复核
本页中文用法已对照保存版本的完整 SKILL.md 阅读整理
展开 SKILL.md 原文、章节与历史收录资料

skills/.curated/screenshot/SKILL.md · 抓取时间 2026-11-16T12:36:35.145Z

以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。

抓取成功不代表已完成安装或任务测试。

来源 description(原文)

Use when the user explicitly asks for a desktop or system screenshot (full screen, specific app or window, or a pixel region), or when tool-specific capture capabilities are unavailable and an OS-level capture is needed.

查看源文件章节 / Source sections
  • 原文:Screenshot Capture
  • 原文:Tool priority
  • 原文:macOS permission preflight (reduce repeated prompts)
  • 原文:macOS and Linux (Python helper)
  • 原文:Workflow examples
  • 原文:Multi-display behavior
  • 原文:Linux prerequisites and selection logic
  • 原文:Windows (PowerShell helper)
  • 原文:Direct OS commands (fallbacks)
  • 原文:macOS
  • 原文:Linux
  • 原文:Error handling
原文:Screenshot Capture

Follow these save-location rules every time: 1) If the user specifies a path, save there. 2) If the user asks for a screenshot without a path, save to the OS default screenshot location. 3) If Codex needs a screenshot for its own inspection, save to the temp directory.

原文:Tool priority

- Prefer tool-specific screenshot capabilities when available (for example: a Figma MCP/skill for Figma files, or Playwright/agent-browser tools for browsers and Electron apps). - Use this skill when explicitly asked, for whole-system desktop captures, or when a tool-specific capture cannot get what you need. - Otherwise, treat this skill as the default for desktop apps without a better-integrated capture tool.

原文:macOS permission preflight (reduce repeated prompts)

On macOS, run the preflight helper once before window/app capture. It checks Screen Recording permission, explains why it is needed, and requests it in one place. The helpers route Swift's module cache to `$TMPDIR/codex-swift-module-cache` to avoid extra sandbox module-cache prompts. ```bash bash <path-to-skill>/scripts/ensure_macos_permissions.sh ``` To avoid multiple sandbox approval prompts, combine preflight + capture in one command when possible: ```bash bash <path-to-skill>/scripts/ensure_macos_permissions.sh && \ python3 <path-to-skill>/scripts/take_screenshot.py --app "Codex" ``` For Codex inspection runs, keep the output in temp: ```bash bash <path-to-skill>/scripts/ensure_macos_permissions.sh && \ python3 <path-to-skill>/scripts/take_screenshot.py --app "<App>" --mode temp ``` Use the bundled scripts to avoid re-deriving OS-specific commands.

原文:macOS and Linux (Python helper)

Run the helper from the repo root: ```bash python3 <path-to-skill>/scripts/take_screenshot.py ``` Common patterns: - Default location (user asked for "a screenshot"): ```bash python3 <path-to-skill>/scripts/take_screenshot.py ``` - Temp location (Codex visual check): ```bash python3 <path-to-skill>/scripts/take_screenshot.py --mode temp ``` - Explicit location (user provided a path or filename): ```bash python3 <path-to-skill>/scripts/take_screenshot.py --path output/screen.png ``` - App/window capture by app name (macOS only; substring match is OK; captures all matching windows): ```bash python3 <path-to-skill>/scripts/take_screenshot.py --app "Codex" ``` - Specific window title within an app (macOS only): ```bash python3 <path-to-skill>/scripts/take_screenshot.py --app "Codex" --window-name "Settings" ``` - List matching window ids before capturing (macOS only): ```bash python3 <path-to-skill>/scripts/take_screenshot.py --list-windows --app "Codex" ``` - Pixel region (x,y,w,h): ```bash python3 <path-to-skill>/scripts/take_screenshot.py --mode temp --region 100,200,800,600 ``` - Focused/active window (captures only the frontmost window; use `--app` to capture all windows): ```bash python3 <path-to-skill>/scripts/take_screenshot.py --mode temp --active-window ``` - Specific window id (use --list-windows on macOS to discover ids): ```bash python3 <path-to-skill>/scripts/take_screenshot.py --window-id 12345 ``` The script prints one path per capture. When multiple windows or displays match, it prints multiple paths (one per line) and adds suffixes like `-w<windowId>` or `-d<display>`. View each path sequentially with the image viewer tool, and only manipulate images if needed or requested.

原文:Workflow examples

- "Take a look at <App> and tell me what you see": capture to temp, then view each printed path in order. ```bash bash <path-to-skill>/scripts/ensure_macos_permissions.sh && \ python3 <path-to-skill>/scripts/take_screenshot.py --app "<App>" --mode temp ``` - "The design from Figma is not matching what is implemented": use a Figma MCP/skill to capture the design first, then capture the running app with this skill (typically to temp) and compare the raw screenshots before any manipulation.

原文:Multi-display behavior

- On macOS, full-screen captures save one file per display when multiple monitors are connected. - On Linux and Windows, full-screen captures use the virtual desktop (all monitors in one image); use `--region` to isolate a single display when needed.

文件 SHA256:081935a6a163277537d46365f49d6b4a3cb40b4748347e7e88759c5927fa8cf5

仓库许可证记录:未提供;not-established,查看来源。

SKILL.md原文description · 2026-11-16T12:36:35.145Z

Use when the user explicitly asks for a desktop or system screenshot (full screen, specific app or window, or a pixel region), or when tool-specific capture capabilities are unavailable and an OS-level capture is needed.

查看历史简介来源

历史收录数据

来源仓库openai/skills
Skill源路径skills/.curated/screenshot/SKILL.md

安装前请让使用的Agent先读取这个SKILL.md及其所在目录,确认依赖和所需权限。此页不生成未经来源验证的安装命令。

返回 Skills 目录,按任务继续筛选 · MCP与Skills教程与资源