Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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

  1. Change callTree.shots.ts, or add <area>.shots.ts beside it. Drive the UI to the state to show, then shoot(locator, 'name').

  2. Run it. It builds first, and it needs the network the first time, to fetch VS Code Web:

    pnpm shots:web
    

    Run 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=true in a worktree. Without it, Playwright reuses any server already on port 3001, which can serve another checkout's build.

  3. Read every PNG. A blank or half-drawn frame is a failure, not a shot.

  4. For a PR, reference each file in the body and attach it. gh uploads it and rewrites the link:

    gh pr edit <n> --body-file pr.md --attach './shots/name.png#Alt text'
    

    Paths in --body-file are 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.ts when the view is worth keeping.
  • Do not add *.shots.ts to test:e2e:web. Shots are not tests.
Полный SKILL.md на GitHub

Установить ui-screenshots в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Bash
Read
Write
Edit

FAQ

Что делает скилл 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), без исполняемых скриптов.

Похожие скиллы

Сравнить ui-screenshots с