vscode-playwright
Skill1.5k starsChanged 2 months agoMITView on GitHub
VS Code screenshot capture with serve-web for slide decks and documentation, either scripted headless for CI or interactive through Playwright MCP
- Deletes or force-pushes
Trending
Less talk lately.about the whole repository
Who's talking about microsoft/hve-core
- A Hacker News story“Microsoft/Hve-Core”Hacker News · Mar 8, 2026 · 3 points
- @github-trending.bsky.social“📦 microsoft / hve-core ⭐ 169 (+6) 🗒 PowerShell A refined collection of Hypervelocity Engineering …”Bluesky · Mar 5, 2026 · 1 likes
- A Hacker News story“A refined collection of Hypervelocity Engineering components”Hacker News · Feb 20, 2026 · 1 points
- sudosubin/agents.nix“agent-skills.github.microsoft.hve-core: init at 3.3.101”GitHub · Oct 3, 2026
- nayounsang/younsang-codex-plugin“strict-review 보강”GitHub · Sep 26, 2026
The biggest 5 of 21 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 21
Talked about on GitHub, Hacker News and Bluesky (21 times).
On GitHub · 18
- Oct 3, 2026agent-skills.github.microsoft.hve-core: init at 3.3.101 — sudosubin/agents.nix0 reactions
- Sep 26, 2026strict-review 보강 — nayounsang/younsang-codex-plugin0 reactions
- Jul 22, 2026chore: add Copilot cloud-sandbox and dev container with hve-core-all — JoshLuedeman/fabric-worldcup0 reactions
- Jul 22, 2026chore: Copilot cloud-sandbox setup + dev container with hve-core-all — JoshLuedeman/vCamService0 reactions
- Jul 22, 2026chore: add Copilot cloud-sandbox setup + dev container (hve-core-all plugin) — JoshLuedeman/cosmosdb-to-sql-migration-tool0 reactions
13 more on GitHub
- Jul 22, 2026chore: add Copilot cloud-sandbox setup + dev container with hve-core-all plugin — JoshLuedeman/my-scripts0 reactions
- Jul 20, 2026security: hve-core freshness needs attention (6 drifted, 0 check errors) — microsoft/physical-ai-toolchain0 reactions · 10 comments
- May 4, 2026feat(agents): thin GHCP cloud-agent wrapper exposing hve-core RPI — microsoft/physical-ai-toolchain0 reactions
- Apr 14, 2026Spec driven development — devndive/links0 reactions
- Apr 11, 2026Chore releases — googleapis/release-please0 reactions
- Mar 29, 2026Test: performance issues with many custom agents registered — microsoft/vscode0 reactions · 2 comments
- Mar 25, 2026Support git symlinks in plugin install on Windows — github/copilot-cli0 reactions · 3 comments
- Mar 21, 2026chore(submodules): bump external/microsoft-hve-core from `e49a1b5` to `0fbd111` — Anselmoo/copilot-plugin-manager0 reactions · 3 comments
- Mar 9, 2026feat(ai-rules): added Copilot generation, external agent fetch, and AI workflows cookbook — rios0rios0/guide0 reactions
- Feb 28, 2026mar 2026 — kimtth/azure-openai-llm-notes0 reactions
- Feb 12, 2026docs(community): document GitHub Discussions usage and create welcome post — microsoft/edge-ai0 reactions
- Feb 12, 2026fix(docs): replace Azure DevOps references in CONTRIBUTING.md with GitHub equivalents — microsoft/edge-ai0 reactions
- Feb 6, 2026chore: migrate CODEOWNERS to team-based fallback pattern — microsoft/edge-ai0 reactions
On Hacker News · 2
- Mar 8, 2026Microsoft/Hve-Core3 points
- Feb 20, 2026A refined collection of Hypervelocity Engineering components1 point
On Bluesky · 1
- Mar 5, 2026📦 microsoft / hve-core ⭐ 169 (+6) 🗒 PowerShell A refined collection of Hypervelocity Engineering components (instructions, prompts,… — @github-trending.bsky.social1 likes and repost
In this repository81 other files it gives its agents.
- .github/skills/hve-core/vally-tests/references/agents.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- accessibilitySkill
- code-reviewSkill
- hve-artifact-authoringSkill
- python-foundationalSkill
- analysis-authoringSkill
- data-catalogSkill
- dataopsSkill
- data-science-engineering-foundationSkill
- evaluation-designSkill
- feasibilitySkill
- ml-experimentationSkill
- demo-setupSkill
- dt-coaching-foundationSkill
- dt-curriculumSkill
- dt-methodsSkill
- dt-rpi-integrationSkill
- ux-artifactsSkill
- ux-coachingSkill
- engagement-reportingSkill
- cavemanSkill
- copilot-otel-metricsSkill
- customer-card-renderSkill
- demo-videoSkill
- hve-demo-materialSkill
- muralSkill
- powerpointSkill
- tts-voiceoverSkill
- video-to-gifSkill
- architecture-diagramsSkill
- c4-architectureSkill
- documentationSkill
- hve-builderSkill
- prompt-analyzeSkill
- prompt-builderSkill
- prompt-refactorSkill
- pull-requestSkill
- vally-testsSkill
- hve-slidesSkill
- hve-core-installerSkill
- adr-authorSkill
- architecture-reviewSkill
- backlog-executeSkill
- backlog-managementSkill
- backlog-planSkill
- experiment-designSkill
- functional-plannerSkill
- gitlabSkill
- jiraSkill
- outcome-hypothesisSkill
- performance-slo-plannerSkill
- privacy-standardsSkill
- proposal-responseSkill
- rai-plannerSkill
- requirements-authorSkill
- security-planningSkill
- rai-standardsSkill
- rpi-challengerSkill
- rpi-implementSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 2 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 73
Stop the server and clean up.
- Very specific: line 79
Check the VSCODE_QUALITY environment variable first.
- Very specific: line 91
Create a temporary server data directory and launch serve-web.
- Very specific: line 101
Do not try to edit the settings JSON editor by typing into a textarea selector either.
- Very specific: line 105
Verify the server is ready before proceeding: curl -s -o /dev/null -w "%{http_code}" http://localhost:8765/ must return 200.
- Very specific: line 107
If the server log contains Ignoring option 'server-data-dir': Value must not be empty, the variable was empty — the server is using the …
- Very specific: line 112
Wait for VS Code to load: mcp_microsoft_pla_browser_wait_for with time: 5 to allow the editor UI to fully render.
- Distinctive: line 169
Stop the VS Code web server and clean up the ephemeral environment:
- Very specific: line 200
Never use separate mcp_microsoft_pla_browser_press_key -> mcp_microsoft_pla_browser_type -> mcp_microsoft_pla_browser_press_key calls for …
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
VS Code Playwright Screenshot Skill
Captures VS Code editor views, code walkthroughs, and Copilot Chat examples using Playwright MCP tools with serve-web.
Overview
This skill provides a complete workflow for capturing high-quality VS Code screenshots suitable for embedding in slide decks, documentation, and other visual media. It handles server lifecycle management, viewport configuration, UI cleanup, and screenshot validation.
Two paths share the same constraints. Prefer the scripted path for any repeatable or unattended capture, including CI. Use the interactive Playwright MCP path for exploratory or one-off captures.
Scripted Capture
scripts/capture_vscode.py runs a YAML capture plan headless: it starts serve-web, applies capture settings, opens each file in Monaco, measures the rendered font, and writes one screenshot per capture. It drives Playwright directly, so it needs no MCP server and runs on a CI runner.
uv sync
uv run playwright install --with-deps chromium
uv run python scripts/capture_vscode.py --plan capture-plan.yml --workspace /path/to/repoA plan names each capture's id, a workspace-relative file, and an output path relative to the plan directory, or to --output-root when given. An id is one filename-safe token of letters, digits, ., _, or -. An output is a relative .png path with / separators and no .., and the script refuses to write outside the output root or through a symlink:
resolution: 1920x1080
min_font_pt: 18
font_size: 26
theme: Default Dark Modern
captures:
- id: marketplace-catalog
file: .github/plugin/marketplace.json
output: frames/marketplace-catalog.pngThe script exits 0 only when every capture was written and met min_font_pt, and prints one JSON result on its last stdout line with each capture's measured rendered_font_size_pt, zoom, and source_resolution. A failed capture also writes debug-<id>.png. It rejects markdown targets at plan validation and fails when the dark theme does not apply, so a clashing light capture cannot pass. When piping its output in CI, run the step under shell: bash so pipefail preserves the exit code.
Prerequisites
- VS Code or VS Code Insiders CLI (
codeorcode-insiders) - Genuine Playwright MCP browser tools (
mcp_playwright_browser_*) curlfor server readiness checks
Tool names in this skill use an mcp_microsoft_pla_browser_* prefix. The actual prefix is derived from the MCP server's registration name in your host, so it may differ, for example mcp_playwright_browser_*. Match the prefix your host exposes.
Verified Constraints
These three constraints were confirmed against a running serve-web instance. Each one invalidates an approach that looks reasonable but does not work.
- User settings live in the browser's IndexedDB, not on disk. Seeding
--server-data-dir/data/User/settings.jsonhas no effect on VS Code Web. Write them throughPreferences: Open User Settings (JSON)by dispatching a paste event, because paste avoids both EditContext key handling and bracket auto-closing, then save and reload the page. The reload closes the settings editor, which Insiders opens as a modal that holds focus, and applies window-level settings such as workspace trust. A persistent browser context keeps the settings across the reload. - Markdown files open as a cross-origin preview webview rather than a Monaco editor. The webview DOM is unreachable from the page, so rendered text inside it cannot be inspected or measured. Capture a code or configuration file when the screenshot needs measurable editor text.
- Confirm browser tooling by attempting a navigation rather than by matching tool names, because MCP tool prefixes vary by server registration. VS Code's built-in browser tools are a known case that loads the page but delivers neither keyboard nor mouse events to the VS Code Web workbench, so an attempt using them fails at the first command-palette step.
Architecture
The serve-web CLI is a Rust-based proxy ("server of servers") that downloads the VS Code Server release and proxies connections to the inner Node.js server. The outer CLI accepts a limited set of flags; --server-data-dir is the key flag that controls where server-side data such as the downloaded server build, extensions, and machine state is stored. It does not control user settings, which the browser holds in IndexedDB.
Quick Start
- Detect the VS Code CLI variant and start the web server.
- Navigate Playwright to the VS Code web instance.
- Clean up the UI (close panels, tabs, notifications).
- Open files and capture screenshots.
- Stop the server and clean up.
Workflow Steps
Step 1: Detect VS Code CLI Variant
Check the VSCODE_QUALITY environment variable first; if it contains insider, use code-insiders. Otherwise, test availability with command -v code-insiders and fall back to code. Store the result for reuse:
if [[ "${VSCODE_QUALITY:-}" == *insider* ]] || command -v code-insiders &>/dev/null; then
VSCODE_CLI="code-insiders"
else
VSCODE_CLI="code"
fiStep 2: Start the VS Code Web Server
Create a temporary server data directory and launch serve-web. The --server-data-dir flag must receive a literal path, because shell variables from other terminal sessions are not available in background terminals:
VSCODE_SERVE_DIR=$(mktemp -d)
$VSCODE_CLI serve-web --port 8765 --without-connection-token \
--accept-server-license-terms --server-data-dir "$VSCODE_SERVE_DIR"Do not write a data/User/settings.json file under that directory. VS Code Web keeps user settings in the browser's IndexedDB, so a seeded settings file changes nothing. Set the theme, close restored editors, and hide UI through Command Palette commands after the workbench loads (Step 5), and raise rendered text size with document.body.style.zoom.
Do not try to edit the settings JSON editor by typing into a textarea selector either. VS Code Insiders uses the EditContext API instead of a textarea, so that element does not exist.
The serve-web command and mktemp must execute in the same terminal session so the $VSCODE_SERVE_DIR variable resolves. If using a background terminal (isBackground: true), inline the entire block — do not reference variables set in a different terminal.
Verify the server is ready before proceeding: curl -s -o /dev/null -w "%{http_code}" http://localhost:8765/ must return 200.
If the server log contains Ignoring option 'server-data-dir': Value must not be empty, the variable was empty — the server is using the default data directory instead of the ephemeral one. Kill the process and re-launch with the literal path.
Step 3: Navigate and Wait
- Navigate to the workspace:
mcp_microsoft_pla_browser_navigatetohttp://localhost:8765/?folder=/path/to/workspace. - Wait for VS Code to load:
mcp_microsoft_pla_browser_wait_forwithtime: 5to allow the editor UI to fully render.
Step 4: Resize Viewport
Resize the viewport to match the target placement ratio: mcp_microsoft_pla_browser_resize to a resolution whose aspect ratio matches the PPTX placeholder where the screenshot will be inserted.
Calculate dimensions using width_px = 1200 and height_px = int(1200 / (target_width_inches / target_height_inches)). For example, a 5.5" x 4.2" placeholder produces a 1200 x 916 viewport.
When the screenshot fills a full 16:9 slide, size the viewport to 1920x1080 instead of deriving it from the 1200 px width rule. Use the width rule for every other placement, and do not use 1920x1080 there. Resize before cleanup so UI elements render at the target resolution.
Step 5: Clean Up the UI
Prepare the editor for clean screenshots using mcp_microsoft_pla_browser_run_code with the Command Palette pattern:
- Dismiss workspace trust dialog if present: take a
mcp_microsoft_pla_browser_snapshot, look for a trust dialog, and click "Yes, I trust the authors" viamcp_microsoft_pla_browser_clickif visible. - Close all editors and tabs: Command Palette ->
View: Close All Editors. - Clear notifications: Command Palette ->
Notifications: Clear All Notifications. - Enable Do Not Disturb: Command Palette ->
Notifications: Toggle Do Not Disturb Mode. - Close Primary Side Bar: Command Palette ->
View: Close Primary Side Bar. - Close bottom panel: Take a
mcp_microsoft_pla_browser_snapshotfirst. If the panel (Terminal, Problems, Output) is visible, run Command Palette ->View: Close Panel. Do not run this command blindly — it toggles visibility and opens a hidden panel. - Close Secondary Side Bar: Take a
mcp_microsoft_pla_browser_snapshotfirst. If the secondary side bar (Chat) is visible, run Command Palette ->View: Close Secondary Side Bar. - Zoom in for readability: use
mcp_microsoft_pla_browser_run_codewithawait page.evaluate(() => { document.body.style.zoom = '1.75'; })for full-UI zoom. Treat no single factor as sufficient: raise the zoom and re-measure the rendered text size until it clears the caller's readability floor. At a 14 px base editor font, 18 pt is 24 CSS pixels, so roughly 1.75x is a starting point rather than a guarantee, because the base font size varies. Default font sizes become illegible (~7pt) when screenshots are shrunk to fit slide placeholders.
Step 6: Open Files and Capture
Open files via mcp_microsoft_pla_browser_run_code using the Command Palette pattern: Go to File command opens Quick Open, then type the filename and press Enter:
async (page) => {
await page.keyboard.press('F1');
await page.waitForTimeout(400);
await page.keyboard.type('Go to File');
await page.waitForTimeout(300);
await page.keyboard.press('Enter');
await page.waitForTimeout(500);
await page.keyboard.type('doc-ops-update.prompt.md');
await page.waitForTimeout(500);
await page.keyboard.press('Enter');
await page.waitForTimeout(1000);
return 'File opened';
}Set up the view: selectively open only the panels needed for this screenshot (split views, Copilot Chat, Explorer) via click-based navigation using mcp_microsoft_pla_browser_snapshot to find refs followed by mcp_microsoft_pla_browser_click. Keep the view focused on the subject.
Take the screenshot: mcp_microsoft_pla_browser_take_screenshot with type: "png" and a descriptive filename.
Validate the screenshot fits the target placement. Compare the captured image's aspect ratio against the target placeholder ratio. If they diverge by more than 5%, retake with corrected viewport dimensions. If a measured rendered text size falls below the caller's readability floor, retake with higher zoom. Iterate viewport and zoom adjustments until the screenshot matches the placement dimensions without distortion.
Repeat for additional screenshots. Close the current file's tab before opening the next (Command Palette -> View: Close All Editors).
Step 7: Copilot Chat Screenshots
For Copilot Chat screenshots: the Activity Bar is visible by default and settings seeding cannot change that, so leave it in place during cleanup. Open the Chat panel via Activity Bar click using mcp_microsoft_pla_browser_snapshot -> mcp_microsoft_pla_browser_click, type the prompt via mcp_microsoft_pla_browser_run_code with page.keyboard.type(), then wait for the response via mcp_microsoft_pla_browser_wait_for before capturing.
Step 8: Cleanup
Stop the VS Code web server and clean up the ephemeral environment:
pkill -f "serve-web.*8765" 2>/dev/null || true
rm -rf "$VSCODE_SERVE_DIR"Also close the Playwright browser: mcp_microsoft_pla_browser_close.
Playwright MCP Command Palette Pattern
Individual MCP tool calls execute asynchronously, so the Command Palette closes between separate press_key, type, and press_key calls. All Command Palette operations must use mcp_microsoft_pla_browser_run_code to chain actions atomically in a single Playwright execution:
async (page) => {
const runCommand = async (command) => {
await page.keyboard.press('F1');
await page.waitForTimeout(400);
await page.keyboard.type(command);
await page.waitForTimeout(300);
await page.keyboard.press('Enter');
await page.waitForTimeout(500);
};
await runCommand('View: Close All Editors');
await runCommand('View: Close Primary Side Bar');
// Chain additional commands as needed
return 'Commands executed';
}Never use separate mcp_microsoft_pla_browser_press_key -> mcp_microsoft_pla_browser_type -> mcp_microsoft_pla_browser_press_key calls for Command Palette operations — the palette loses focus between calls.
Troubleshooting
| Issue | Cause | Solution |
Ignoring option 'server-data-dir': Value must not be empty | Shell variable resolved empty in background terminal | Inline the full command with the literal temp directory path or run mktemp and serve-web in the same session |
| Color Theme navigates to Marketplace themes | No theme selected yet, and settings seeding does not apply | Run Command Palette -> Preferences: Color Theme after the workbench loads |
| Panel toggle opens hidden panel | View: Toggle Panel Visibility is a toggle | Use View: Close Panel only after confirming the panel is visible via snapshot |
?file= parameter does not auto-open files | VS Code web only supports ?folder= | Open files through Command Palette Go to File command after navigating |
| Text too small in screenshots | Default ~14px font becomes ~7pt when shrunk | Raise document.body.style.zoom and re-measure until it clears the readability floor |
| Screenshot aspect ratio distortion | Viewport ratio does not match placeholder ratio | Calculate viewport from placeholder: width_px = 1200, height_px = int(1200 / (target_w / target_h)) |
| UI clutter at slide-embedded sizes | Explorer, minimap, tabs, toasts visible | Close all unnecessary UI elements before each capture |
workbench.action.zoomIn does not work | Electron-only command | Use editor.action.fontZoomIn or CSS zoom via page.evaluate() |
| Browser state restoration | IndexedDB/localStorage restore previous files | Close editors via Command Palette after load; use a fresh browser context or incognito when available |
Meta+P triggers browser action | Keyboard shortcuts intercepted by browser | Use page.keyboard.press('F1') to open Command Palette |
| Screenshot saved to wrong directory | take_screenshot saves relative to Playwright working directory | Copy screenshots to the target directory after capture |
| Copilot Chat responses non-deterministic | Streaming token-by-token output | Use mcp_microsoft_pla_browser_wait_for with expected text or time delay |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

