Command Palette

Search for a command to run...

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

drive-positron

БесплатноЗапускает вложенные скриптыНе проверен

Launch Positron dev server in an isolated, disposable profile and control the Electron workbench. Use to reproduce UI bugs, verify UI changes, inspect the…

posit-devот posit-dev★ 4 361 звезда на GitHub

Об этом скилле

Drive Positron through CDP

Use this skill to inspect and interact with a running development build of Positron. Treat the resulting profile and application state as disposable.

This workflow complements automated tests; it does not replace them. Add a test when the verified behavior needs regression coverage (.claude/skills/author-e2e-tests).

Do not use it to hand a persistent Positron to a person: the profile is deleted at cleanup, native dialogs are replaced with in-app ones, and nothing recompiles later source edits. Use the launch-positron command for that.

This file is a guide to choosing and combining the helpers in scripts/. Each helper's header comment is the reference for its flags, output and exit codes: bash .claude/skills/drive-positron/scripts/X.sh --help prints it. To change a helper or add one, read CONTRIBUTING.md.

Know what this changes in your checkout

The disposable profile is isolated. The build state is not.

Before it starts the application, launch.sh runs build/lib/preLaunch.ts against your real checkout, which writes to directories your normal development build also uses:

  • .build/builtInExtensions/<name>: deleted and re-downloaded for every built-in extension whose version on disk does not match product.json. A rebase that bumps one is enough.
  • .build/electron: deleted and re-downloaded when the Electron version does not match.
  • out/: when it is absent, pre-launch runs npm run compile, which competes with the build daemons.

An interrupted pre-launch can leave a built-in extension deleted or half written, and your normal build then fails to start. Do not interrupt the script while it reports pre-launch. To repair:

npm run download-builtin-extensions
npm run electron

Platforms

macOS, Linux, and Windows from Git Bash (not PowerShell or cmd). The helpers need node and curl, rsync or tar, and jq (absent from a bare Git Bash); a header lists any other tool its script needs. On Windows, launch.sh starts the app through WMI on purpose; the comment above that code says why.

Launch, attach, clean up

Launch, from the repository root:

.claude/skills/drive-positron/scripts/launch.sh -- \
	--folder-uri file:///private/tmp/myworkspace --log debug

It prints one JSON line; keep pid, cdpPort, runDir and logFile. Launcher flags go before the -- and app arguments after it; a launcher flag put after it is silently ignored. The header lists both, and the app arguments the launcher supplies. Do not opt out of those unless the scenario is what they suppress.

The profile is a copy of $POSITRON_DEV_USER_DATA_DIR or ~/.positron-dev, or of --source-user-data-dir. To avoid reading your own profile, make a minimal seed (mkdir -p /tmp/seed/User and a settings.json in it) and pass that. A fresh profile tests only the cold start; for a second launch with the state the first one wrote (discovery cache, migrations, recent files), reseed.sh stops the instance and turns its profile into a seed.

To relaunch the same instance on its own profile (workspace storage, open editors, installed extensions and all):

.claude/skills/drive-positron/scripts/palette-run.sh --session positron 'Close Window'  # saves the window's state
./node_modules/.bin/playwright-cli -s=positron close
.claude/skills/drive-positron/scripts/stop.sh --cdp-port "$CDP_PORT"                     # no --run-dir: keep it
.claude/skills/drive-positron/scripts/launch.sh --reuse-profile "$RUN_DIR" -- --folder-uri file:///private/tmp/ws

macOS has no Quit in the palette, and Cmd+Q cannot be sent through CDP: Close Window, then stop.sh. Stop both runs with --run-dir at the end.

To drive a packaged build (a daily or a release) instead of the checkout, pass its executable with --app, such as launch.sh --app <dir>/Positron.app/Contents/MacOS/Positron -- .... It gets the same profile copy, ports and logs, and pre-launch does not run.

Attach Playwright under a literal session name, and use that name in every command and helper (--session positron):

./node_modules/.bin/playwright-cli -s=positron attach --cdp=http://127.0.0.1:"$CDP_PORT"
  • Do not derive the name from $$: each shell call has its own PID, so each would get its own session.
  • Use a name no other driver on this machine is using: drivers in one checkout share playwright-cli's sessions, so two under one name drive the same window. When $PW_SESSION is set, use it; the helpers read it when --session is left out.
  • Run from the repository root and call the binary directly. npx costs about a second per call, and from another folder installs its own copy, which reports The browser 'NAME' is not open.
  • Reload the window, open another folder in it, or open a new window with window.sh (reload, open-folder PATH, new-window): it waits for the workbench to come back and attaches the session again if it lost the
Полный SKILL.md на GitHub

Установить drive-positron в Claude Code и Claude Desktop

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

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

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

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

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

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

CONTRIBUTING.mdheal/README.mdheal/affected.test.tsheal/affected.tsheal/areas.jsonheal/finder-lib.test.tsheal/finder-lib.tsheal/finder.mdheal/finder.tsheal/finding.test.tsheal/finding.tsheal/fix-lib.test.tsheal/fix-lib.tsheal/fix-loop.tsheal/fixer.mdheal/leads-lib.test.tsheal/leads-lib.tsheal/leads.tsheal/links.test.tsheal/links.tsheal/recent.test.tsheal/recent.tsheal/report.test.tsheal/report.tsheal/rerun-lib.test.tsheal/rerun-lib.tsheal/rerun.tsheal/reviewer.mdheal/scope.test.tsheal/scope.tsreferences/reading-ui-state.mdscripts/clipboard.shscripts/console-read.shscripts/console-run.shscripts/de-read.shscripts/debug.shscripts/dp-clipboard.tsscripts/dp-console.tsscripts/dp-de.tsscripts/dp-editor.ts

FAQ

Что делает скилл drive-positron?

Launch Positron dev server in an isolated, disposable profile and control the Electron workbench. Use to reproduce UI bugs, verify UI changes, inspect the DOM, take screenshots, interact with the workbench, or attach a debugger without first writing an end-to-end test. Do not use to provide a persistent app instance for a person; use the launch-positron command for that. Only runs when a person invokes it explicitly.

Как установить скилл drive-positron?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл drive-positron запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

Сравнить drive-positron с