ui-screenshots
БесплатноБез исполняемых скриптовНе проверенScreenshot the log viewer in VS Code Web with Playwright. Use when asked for screenshots, to attach images to a PR, or to see a UI change in the real webview.
от certinia★ 117 звёзд на GitHubОб этом скилле
UI screenshots
The log viewer runs in VS Code Web under Playwright, opens the fixture log, and saves PNGs. No
desktop window is needed: the sandbox blocks screencapture, and Chrome DevTools cannot reach a
VS Code webview.
Files
| Path | What |
|---|---|
lana/test/playwright/shots/*.shots.ts |
Shot scripts. callTree.shots.ts is the example. |
lana/test/playwright/playwright.config.shots.ts |
Config: the web test setup, pointed at shots/. |
lana/test/playwright/support/logAnalysis.ts |
openWorkbench, openLogAnalysis: reuse them. |
lana/test-results/shots/ |
Output (gitignored). LANA_SHOTS_DIR moves it. |
The log is lana/test/playwright/fixtures/apex-log.log. It is small: Time Order has one root.
Steps
Change
callTree.shots.ts, or add<area>.shots.tsbeside it. Drive the UI to the state to show, thenshoot(locator, 'name').Run it. It builds first, and it needs the network the first time, to fetch VS Code Web:
pnpm shots:webRun outside the sandbox (
dangerouslyDisableSandbox: true). Skip the build when it is fresh:pnpm exec playwright test --config=lana/test/playwright/playwright.config.shots.ts --retries=0.Prefix
CI=truein a worktree. Without it, Playwright reuses any server already on port 3001, which can serve another checkout's build.Read every PNG. A blank or half-drawn frame is a failure, not a shot.
For a PR, reference each file in the body and attach it.
ghuploads it and rewrites the link:gh pr edit <n> --body-file pr.md --attach './shots/name.png#Alt text'Paths in
--body-fileare relative to that file's folder.
Driving the webview
- Get the frame:
webviewActiveFrame(page, hasContent('log-viewer'), { timeout: 60_000 }). - CSS locators reach into open shadow roots:
callTree.locator('tree-expand-button .more'). - Wait on what changed, not on a count you guessed:
await expect(rows).not.toHaveCount(before). - Screenshot an element, not the page. The workbench chrome is noise.
- The theme is VS Code Web's default, Light.
Skip
- Do not commit a throwaway shot script made for one PR. Delete it, or fold it into an existing
*.shots.tswhen the view is worth keeping. - Do not add
*.shots.tstotest:e2e:web. Shots are not tests.
Установить ui-screenshots в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
BashReadWriteEditFAQ
Что делает скилл ui-screenshots?
Screenshot the log viewer in VS Code Web with Playwright. Use when asked for screenshots, to attach images to a PR, or to see a UI change in the real webview.
Как установить скилл ui-screenshots?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ui-screenshots запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic