什么是 update-screenshots?
从最新的 CI 运行中下载屏幕截图基线并提交它们。当被要求更新、接受或刷新来自 CI 的组件屏幕截图基线时,或者在屏幕截图测试 GitHub Action 报告差异之后使用。该技能应作为子代理运行。 来源:microsoft/vscode。
从最新的 CI 运行中下载屏幕截图基线并提交它们。当被要求更新、接受或刷新来自 CI 的组件屏幕截图基线时,或者在屏幕截图测试 GitHub Action 报告差异之后使用。该技能应作为子代理运行。
通过命令行快速安装 update-screenshots AI 技能到你的开发环境
来源:microsoft/vscode。
When asked to update, accept, or refresh screenshot baselines from CI — or when the Screenshot Tests GitHub Action has failed with screenshot differences — follow this procedure to download the CI-generated screenshots and commit them as the new baselines.
Screenshots captured locally may differ from CI due to platform differences (fonts, rendering, DPI). The CI (Linux, ubuntu-latest) is the source of truth. This skill downloads the CI-produced screenshots and commits them as baselines.
If the user provides a specific run ID or PR number, use that. Otherwise, find the latest run:
从最新的 CI 运行中下载屏幕截图基线并提交它们。当被要求更新、接受或刷新来自 CI 的组件屏幕截图基线时,或者在屏幕截图测试 GitHub Action 报告差异之后使用。该技能应作为子代理运行。 来源:microsoft/vscode。
为搜索与 AI 引用准备的稳定字段与命令。
npx skills add https://github.com/microsoft/vscode --skill update-screenshots从最新的 CI 运行中下载屏幕截图基线并提交它们。当被要求更新、接受或刷新来自 CI 的组件屏幕截图基线时,或者在屏幕截图测试 GitHub Action 报告差异之后使用。该技能应作为子代理运行。 来源:microsoft/vscode。
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/microsoft/vscode --skill update-screenshots 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/microsoft/vscode