微算力 · API 导航与自营网关
API 接入 EN
未登录登录
✨

专业截图最佳实践指南

Screenshot · v1.0.1
这个包缺安装入口,装上也不会生效 缺 SKILL.md 或 frontmatter 不完整(BAD_NAME)。我们仍保留下载,方便你自行查看内容。
专业技能 安全 S 级 作者 ivangdavila 公开目录收录
13.5k 下载 31 安装 44.8k 收藏 101 浏览

简介

纯文档型截图最佳实践指南,涵盖桌面、浏览器、模拟器等多场景捕获策略,零代码执行、零依赖,安全可信。

原始描述

Capture, inspect, and compare screenshots of screens, windows, regions, web pages, simulators, and CI runs with the right tool, wait strategy, viewport, and...

通过你的 Agent 添加

安装目录:screenshot/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/screenshot/
Codex CLI~/.codex/skills/screenshot/
DeepSeek Harness~/.agents/skills/screenshot/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

中文使用说明 来自收录源

核心用法

Screenshot 是一款纯文档型技能,专注于系统化解决"如何正确截图"的问题。它并非截图工具本身,而是提供跨平台、跨场景的截图策略指南,帮助开发者和测试人员在正确的时间使用正确的工具。

工具选择矩阵:

  • macOS:原生 screencapture 工具,支持静默/交互/区域/窗口多种模式
  • iOS Simulator:xcrun simctl io booted screenshot 专用命令
  • Linux Wayland:grim + slurp 组合(替代失效的 X11 工具)
  • Linux X11/CI:scrot 或浏览器原生捕获
  • Windows:nircmd 或 Pillow ImageGrab
  • Web 页面:Playwright(支持元素捕获、遮罩、动画冻结、视觉回归)

八大核心规则:

  1. 按工件选择捕获路径——桌面用 OS 工具,网页用浏览器工具,模拟器用专用命令
  2. 捕获前稳定目标——等待网络空闲或特定元素就绪,避免盲目 sleep
  3. 冻结视口与环境——固定 viewport、缩放、主题,确保可复现性
  4. 最小有用范围——优先元素/区域截图,全屏仅必要时使用
  5. 降噪处理——隐藏光标、时间戳、通知等不稳定 UI,遮蔽敏感信息
  6. 正确输出格式——PNG 为默认,JPEG 仅用于照片,避免重复压缩
  7. 自动化可调试——失败时立即截图,使用稳定文件名,CI 中保持确定性
  8. 验证实用性——确保关键细节可见、无裁剪、无敏感信息泄露

显著优点

  • 场景全覆盖:从 macOS 桌面到 iOS 模拟器,从 Linux Wayland 到 CI 无头环境,提供针对性方案
  • 工程化思维:不仅教"怎么截",更强调"为什么这样截"——稳定性、可复现性、可比较性
  • Playwright 深度集成:针对现代 Web 开发,详细说明 viewport 固定、动画禁用、caret 隐藏、区域遮罩等高级特性
  • 避坑指南丰富:总结 8 类常见陷阱,如"截浏览器窗口而非页面元素""不同 viewport 对比""JPEG 压缩模糊文字"等
  • 零依赖零风险:纯 Markdown 文档,无代码执行,无隐私收集

潜在局限

  • 非工具本身:仅提供指导,实际截图需配合其他工具或用户手动执行
  • T3 来源等级:社区项目,作者信息透明度有限,虽经安全扫描但仍建议结合人工审查
  • 无开源许可:当前未指定许可证,商用场景需注意合规性
  • 动态内容覆盖有限:对于极度动态(实时视频、WebGL 复杂渲染)的截图策略建议较泛

适合人群

  • QA 与测试工程师:构建视觉回归测试、CI 截图流水线
  • 前端开发者:调试响应式布局、生成文档截图、修复浏览器兼容性
  • 技术写作者:制作教程、发布说明、bug 报告中的示意图
  • DevOps 工程师:配置自动化截图、失败现场留存、监控告警配图
  • 移动开发者:iOS/Android 模拟器截图标准化

常规风险

  • 信息泄露风险:用户若未遵循"遮蔽敏感信息"建议,可能在截图中泄露 token、个人数据、内部 URL
  • 环境差异:不同 OS/显示器(Retina vs 标准)产生的截图分辨率差异可能导致对比困难
  • 过度依赖工具:未理解原理时直接套用命令,可能在 Wayland/X11 等环境边界出错
  • 维护状态:作为社区项目,长期更新频率不确定

技能正文


name: screenshot description: Take a screenshot of the plugin UI using the standalone app CLI for debugging and documentation

Screenshot Plugin UI

Use this skill to capture screenshots of the plugin UI. This is useful for:

  • Debugging UI design - Quickly verify control layouts, colors, and positioning without launching a DAW
  • Documentation - Generate consistent screenshots for README files and wikis
  • CI/CD pipelines - Automated visual regression testing or asset generation

Prerequisites

Build the standalone app (APP target) first:

cd [ProjectFolder]
xcodebuild -project "./projects/[ProjectName]-macOS.xcodeproj" -target APP -configuration Debug

The app will be built to ~/Applications/[PluginName].app

Take Screenshot

macOS

~/Applications/[PluginName].app/Contents/MacOS/[PluginName] --screenshot /path/to/output.png

Example

# Take screenshot of IPlugEffect
~/Applications/IPlugEffect.app/Contents/MacOS/IPlugEffect --screenshot ./screenshot.png

The app will:

  1. Launch and display the UI (audio/MIDI I/O is automatically disabled)
  2. Wait ~500ms for the UI to fully render
  3. Capture the window to a PNG file
  4. Exit automatically

Options

  • --screenshot <path> - Path to save the PNG screenshot (required)
  • --no-io - Explicitly disable audio/MIDI (implicit when using --screenshot)

Tips

  • Screenshots are high-DPI (Retina) resolution on supported displays
  • The screenshot captures the plugin content area
  • For iterative UI debugging, rebuild the APP target and re-run the screenshot command
  • Combine with the build skill: build first, then screenshot

正文来自原始仓库, 版权归作者所有,许可:Apache-2.0。 权利人认为有不妥,可申请下架。

原始仓库

作者的项目地址:https://github.com/openinterpreter/interpreter-workstation

标签

screenshotqadebuggingdocumentationvisual-regressionci-cdplaywrightmacoslinuxwindowsios-simulator

同类 Skill