drive-positron-web
БесплатноЗапускает вложенные скриптыНе проверенStart Positron Web from source and control it with browser automation. Use for web-only bugs, browser-specific behavior, accessibility-tree inspection…
от posit-dev★ 4 361 звезда на GitHubОб этом скилле
Drive Positron Web
Use this skill only when the web build is relevant to the behavior under test. For ordinary UI verification, use .claude/skills/drive-positron: it exercises the Electron application, starts without a web license, and covers native desktop layers.
Positron Web cannot validate:
- native file dialogs;
- unrestricted clipboard behavior;
- code in the
electron-sandboxlayer.
The web file-dialog service falls back to quick input, which can expose a suggested filename but cannot exercise the native dialog.
Satisfy the license requirement
Positron Web requires a signed license token. There is no development bypass.
For local development, scripts/code-server.js automatically mints a license when it finds a built issuer at:
<repo-parent>/positron-license/pdol/target/debug/pdol
Place positron-license beside the Positron checkout. For example:
~/posit/positron
~/posit/positron-license
A nested worktree changes the expected parent. If the worktree is under
~/posit/positron.worktrees/, expose the issuer there:
ln -s ~/posit/positron-license \
~/posit/positron.worktrees/positron-license
Alternatively, supply a license through one of:
--license-key--license-key-filePOSITRON_LICENSE_KEYPOSITRON_LICENSE_KEY_FILE
The launcher checks for an issuer or explicit key before starting. This skill is unavailable to external contributors who do not have the internal issuer or a signed key.
Start the server
Run:
.claude/skills/drive-positron-web/scripts/start-web.sh \
--workspace /tmp/myworkspace
Wait for one JSON object containing:
urlporttokenpiduserDataDirlogFile
Use the reported values rather than assuming the defaults.
The script waits for an HTTP response. Do not replace this with a port check: code-server binds its port before cold-start downloads and built-in extension installation finish, and an unlicensed server may also bind before exiting.
The script also:
- passes the workspace with
--default-folder; - resolves symlinks in the workspace path;
- keeps the user-data directory short enough for macOS Unix sockets;
- omits command-line flags that code-server reports as unsupported.
Do not add a separate compile-web step when the normal transpile process has already produced out/vs/code/browser/workbench/workbench.js.
The following activation errors can result from stale dependencies and are not inherently web-specific:
positron.authentication:Cannot find module 'ai-config'Next Edit Suggestions, which depends on that extension
Confirm that these match the known dependency condition before ignoring them.
Select the control method
Use the browser pane when the current desktop environment exposes its browser-automation tools. Use @playwright/cli from a terminal when those tools are unavailable.
Browser pane
Start the server first so readiness is reliable. Then attach with the positron-web-attach entry from the included launch.json template.
Copy the template to the primary working directory:
<primary-cwd>/.claude/launch.json
Replace REPO_PATH with the absolute checkout path.
The browser launcher resolves .claude/launch.json from the primary working directory, not from a nested worktree. Its format has no cwd field, so the template uses bash -c to change directories.
A localhost launch URL must contain only the origin. Supply the token with a subsequent navigation:
preview_start({ url: "http://localhost:8080" })
navigate to http://localhost:8080/?tkn=dev-token
computer screenshot
read_page (filter: interactive)
computer left_click ref=<treeitem>
javascript_tool '(() => document.title)()'
Use the token reported by start-web.sh.
When inspecting the page:
- Use
read_pagewithref_idto inspect a subtree iffindreports that no cached tree exists. - Click the Explorer's
treeitemreference rather than its nested link; the useful accessible label belongs to the tree item. - Use JavaScript evaluation for DOM assertions that the accessibility tree cannot express.
Terminal CLI
Open the reported URL with a literal session name and reuse it for every command:
npx @playwright/cli -s=posweb open "$URL"
npx @playwright/cli -s=posweb snapshot
npx @playwright/cli -s=posweb find "Run Cell"
npx @playwright/cli -s=posweb click e153
npx @playwright/cli -s=posweb highlight e153
npx @playwright/cli -s=posweb \
screenshot --hires --filename="$PWD/shots/01.png"
npx @playwright/cli -s=posweb console
npx @playwright/cli -s=posweb requests
npx @playwright/cli -s=posweb \
eval '(() => document.title)()'
Unlike CDP attachment to Electron, open requires a browser executable. The default chrome channel uses an installed Google Chrome:
brew install --cask google-chrome
Prefer the installed Chrome channel unless the scenario specifically requires a Playwright-managed browser. Manag
Установить drive-positron-web в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл drive-positron-web?
Start Positron Web from source and control it with browser automation. Use for web-only bugs, browser-specific behavior, accessibility-tree inspection, console or network diagnostics, and changes that specifically require the web workbench. Prefer drive-positron for ordinary desktop UI verification.
Как установить скилл drive-positron-web?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл drive-positron-web запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic