microsoft/vscode/validate-ui-scenario
Claude Code and agent skill by microsoft/vscode
- vendor
Checking that the SKILL.md file is still in the repository.
Use when reproducing a UI bug or verifying a fix by driving a real VS Code window end to end and capturing evidence. Writes a scenario file, runs it against a dev build or installed Insiders, and produces a captioned video, per-step screenshots, a Playwright trace, and an HTML report to attach to an issue or pull request.
Install
npx vskill@latest install microsoft/vscode/validate-ui-scenarioSKILL.md
Validate UI Scenario
Drives a real VS Code instance through a scenario and records reproducible evidence.
Use this to reproduce a reported bug, to show that a fix works, or to attach a recording to a test-plan item. For deterministic regression coverage that runs on every build, write a smoke test instead (see the smoke-tests skill) — this skill is for one-off, issue-derived validation.
A scenario is a small JavaScript file run by test/scenario/out/runScenario.js. Nothing else has to be configured: the runner launches VS Code, records video and a trace, captures a screenshot at every step boundary, writes the report, and captions the recording with each step and its result.
Prepare
Check `ffmpeg` and `ffprobe` are available before running. The runner looks on PATH and in the usual install locations, so an ffmpeg installed after the editor started is still found. Without them the scenario still runs and keeps the raw recording, but the video is not captioned with step titles. The runner warns at startup; if they are missing, tell the user how to install them rather than silently returning an unannotated video:
| Platform | Install | |
|---|---|---|
| Windows | winget install Gyan.FFmpeg | |
| macOS | brew install ffmpeg | |
| Linux | sudo apt install ffmpeg |
A new terminal may be needed for PATH to pick them up, or set FFMPEG_PATH and FFPROBE_PATH. An existing run can be annotated afterwards with node test/scenario/out/renderEvidenceChapters.js <run-dir>.
| Target | Flags | Also required | Use for | |
|---|---|---|---|---|
| Installed Insiders, else Stable | (none — the default) | nothing | Reproducing a report against shipped behavior | |
| Dev build from this checkout | --dev | Matching Electron runtime, pnpm run build-fast | Verifying an unmerged change | |
| A specific install | --build <app-root> | nothing | Pinning an exact build | |
| Web | --web --headless | pnpm run build-fast --client-only | Browser-only behavior |
Reuse the matching Electron runtime when present; run pnpm run electron only when it is missing or incompatible. Fast builds refresh outputs without type checking; validate types separately when warranted.
With no target flag the runner finds an installed VS Code Insiders (falling back to Stable) and logs which one it chose. --build takes the application root — the install directory on Windows and Linux, or the .app bundle on macOS:
Every target runs with its own profile and extensions directory, so your extensions and settings never leak into the recording, and the window is sized to the recording canvas so the capture has no empty margins. The evidence records the quality of the build that actually ran (Insiders, Stable, Dev), so a report always names the product it validated. An installed build only reproduces shipped behavior — to validate an unmerged change, use --dev in a checkout that contains it.
Write the scenario
Save the file next to the run it produces, for example .build/vscode-playwright-mcp/<issue>.cjs. The `.cjs` extension matters: this package is an ES module package, so a CommonJS scenario named .js fails to load. An ES module scenario with a default export works too.
| Field | Meaning | |
|---|---|---|
id, title | Identify the run; id names the evidence directory | |
source | Issue or test-plan item the scenario came from | |
workspacePath | Disposable folder to open | |
userSettings | Settings seeded into the profile before launch, including the built-in Agents profile when using --agents | |
extraArgs | Extra VS Code command-line arguments | |
extraEnv | Environment overrides for the launched app; undefined unsets a variable. Keep the automation runner's HOME unchanged and isolate application discovery with this field. | |
stepPauseMs | How long to hold each finished step so its caption is readable. Defaults to 1000; set 0 when the scenario is timing-sensitive |
Each step receives a context with app, workbench, code, page, and skip(reason, options). workbench exposes the feature helpers (settingsEditor, quickaccess, editors, terminal, chat, …); page is the Playwright page for anything they do not cover.
Use context.code.driver.resizeWindow({ width, height }) for responsive-layout scenarios. It resizes the current native Electron window (or the browser viewport on web) and returns the previous size for restoration.
- Return a string describing how the step was validated. It appears in the report.
- Throw to fail the step. The message is recorded, and the run stops.
- Call `skip(reason, { needs })` when the step cannot be validated automatically. The run stops and is reported as
aborted, never as passed.
Steps that cannot be automated
Decide this while planning, before writing the scenario, and classify each one — the two kinds have different consequences:
needs | Meaning | What to do | |
|---|---|---|---|
human | A person is required: physical hardware, a subjective judgement, a sign-in that cannot be scripted | Report the step so someone can check it by hand | |
infrastructure | Automatable in principle, but the harness cannot do it yet | Report it as an enhancement to this skill, naming the missing capability |
Blocked steps are recorded in manifest.json, highlighted in a Needs attention section of report.html, marked on the video caption (SKIPPED - NEEDS HUMAN), and printed at the end of the run. Surface them in your summary — never quietly drop a step you could not perform, and never weaken an assertion so that it passes.
Run it
Exit code 0 means every step passed, 1 means the run failed or was aborted, 2 a usage error.
Evidence is written to .build/vscode-playwright-mcp/evidence/<run-id>/:
| File | Contents | |
|---|---|---|
report.html | Step table, outcome, embedded video | |
manifest.json | Step timestamps, statuses, artifact paths, environment | |
videos/annotated.mp4 | Recording with a caption band showing each step and its validation result | |
videos/*.webm | The raw recording | |
*.png | Per-step screenshots | |
logs/ | Playwright trace, window and server logs |
The caption band is added above the recorded frame rather than drawn over it, so no recorded pixel is hidden and the recording keeps its original length. Each caption carries the step number and id, its status, the step title, and the validation detail the step reported. Re-render after editing a manifest with node test/scenario/out/renderEvidenceChapters.js <run-dir>.
What makes evidence trustworthy
- Assert on DOM state, accessibility, focus, or text — screenshots support a claim, they do not establish one.
- Validate through a signal separate from the action. An automation call returning successfully is not a result.
- Beware virtualized lists. The settings tree and long lists render only the rows near the viewport, so scroll the whole list before concluding that something is absent.
- If the bug is a race, make the timing explicit — a forced delay or a repeated loop — so the recording shows the window in which it occurs rather than relying on luck.
- Record the failing behavior before the fix when you can. A passing run alone does not show that the scenario would have caught the bug.
Report back
Summarize the outcome, list failed or skipped steps, link report.html, and state the OS, the VS Code version and quality (both are in manifest.json), and the source issue. Attach the video to the issue or pull request by dragging it into the comment box.
Always call out, separately from the pass/fail result:
- steps that need a person, so someone knows what is still unverified;
- steps blocked on a missing harness capability, named as a concrete enhancement to this skill;
- anything that degraded the evidence, such as a missing ffmpeg leaving the video uncaptioned.
Related
- Interactive exploration. Use the
launchskill to drive a development window with Playwright when you need to inspect the UI before knowing what to assert. - Automated validation on a pull request.
microsoft/vscode-engineeringruns the same harness in CI: labelling a pull request~requires-ui-validationresearches the change, runs a scenario against the exact merge candidate, and posts the per-step result with captioned video. Use this skill when a scenario is not yet covered there, or to iterate locally before proposing one.
<example> User: "/validate-ui-scenario reproduce https://github.com/microsoft/vscode/issues/250159"
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 7 Sep 2026.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.github/skills/validate-ui-scenario/SKILL.md
Popularity
- Repository stars
- 191,449
- Repository forks
- 42,039
- 7-day trend score
- 61
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/microsoft/vscode/validate-ui-scenario)