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★ 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 matchproduct.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 runsnpm 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_SESSIONis set, use it; the helpers read it when--sessionis left out. - Run from the repository root and call the binary directly.
npxcosts about a second per call, and from another folder installs its own copy, which reportsThe 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
Установить drive-positron в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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 запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic