Command Palette

Search for a command to run...

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

browser

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

Browser automation via the `agent-browser` CLI: drive websites or Electron apps (forms, clicks, screenshots, scraping, web-app/UI tests, the dashboard…

BlackBeltTechnologyот BlackBeltTechnology★ 357 звёзд на GitHub

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

browser

Composite skill that gives the agent eyes and hands for any browser-driven task — web pages or Electron desktop apps — via the agent-browser CLI.

Three recipes:

  • Web automation — generic web pages plus Pi Dashboard-specific helpers (dashboard URL detection, responsive testing, console-error hunting). Reference: references/web.md.
  • Electron automation — drive any Chromium-based Electron app, including a worked example for the Pi Dashboard's own shell via --debug-cdp. Reference: references/electron.md.
  • The user's own logged-in browser — reach SSO/2FA-gated sites using the user's real cookies. Two paths:
    • Pi Dashboard browser (preferred when the pi session runs on the dashboard host) — browser_connect hands back a loopback CDP URL for the dedicated profile or a Chrome profile (Playwright Chrome Extension). Reference: references/dashboard-relay.md.
    • Panerelay extension bridge (legacy) — a native-messaging host for when there is no loopback dashboard. Reference: references/own-browser.md.

Native desktop apps (Finder, Calculator, any non-web UI — "control my desktop") are out of scope for agent-browser: use agent-desktop and read references/desktop.md first — install, and the macOS Accessibility/Screen Recording trap (permission belongs to pi-dashboard.app, which must be code-signed).

Step 0a — Preflight: agent-browser CLI must be installed

The skill does not bundle the CLI. Verify it through the dashboard tool registry — recommend-only, nothing installs without an explicit --install:

pi-dashboard-ensure <extension-package-root>/package.json

<extension-package-root> is the package that ships this skill — three levels above this SKILL.md's .pi/skills/browser/ directory (in a global install: $(npm root -g)/@blackbelt-technology/pi-dashboard/node_modules/@blackbelt-technology/pi-dashboard-extension). The manifest (pi.tools) declares agent-browser (resolve) and chromium (pw-browser); the registry answers present / recommended / blocked per tool.

  • agent-browser: present → continue to Step 0b.

  • agent-browser: recommended or blocked → halt and tell the user:

    The agent-browser CLI is not installed. Install it as a pi extension so the browser tool is registered in your pi session too:

    pi install npm:pi-agent-browser
    

    Then re-invoke the skill.

  • chromium missing → mention the registry's Install hint (npx [email protected] install chromium) only when the chosen recipe needs a CDP browser; the dropdown on the Settings → Tools row carries it.

Do not attempt npm install, pi install, or any other install command on the user's behalf — they should make that choice explicitly.

Step 0b — Auto-detect: route to the right recipe

After the preflight, decide which recipe applies. Run this 2-line probe:

if command -v lsof >/dev/null 2>&1; then
  CDP_LIVE=$(lsof -ti :9222 >/dev/null 2>&1 && echo yes || echo no)
else
  CDP_LIVE=$(nc -z 127.0.0.1 9222 2>/dev/null && echo yes || echo no)
fi
PD_RUNNING=$(pgrep -f "Pi Dashboard|pi-dashboard" >/dev/null 2>&1 && echo yes || echo no)
# Browser relay: the dashboard's own capability probe (see dashboard-relay.md).
RELAY=$(pi-dashboard api GET /api/browser/status 2>/dev/null || echo unavailable)
echo "CDP_LIVE=$CDP_LIVE PD_RUNNING=$PD_RUNNING RELAY=$RELAY"

Routing rule:

CDP_LIVE PD_RUNNING Route to Why
yes yes references/electron.md Pi Dashboard Electron shell is attachable
no yes references/electron.md Pi Dashboard is up but CDP off — electron.md shows the --debug-cdp launch instruction
any no references/web.md No Electron target running; default to web

Override: if the user's request is explicitly about a website (URL, HTTPS host, "the dashboard at localhost:8000", etc.), route to references/web.md regardless of what's running. Intent wins over capability.

Override: if the user's request is explicitly about an Electron app that isn't Pi Dashboard (Slack, VS Code, Figma, …), route to references/electron.md even when PD_RUNNING=no — that recipe covers launching any Electron app with --remote-debugging-port.

Override (login state): if the target needs the user's existing session — "use my browser", "I'm already logged in", SSO/2FA, an internal tool the agent cannot sign into — route to a login-state recipe regardless of the probe. Pick by capability, in this order:

  1. references/dashboard-relay.md when the pi session runs on the
Полный SKILL.md на GitHub

Установить browser в Claude Code и Claude Desktop

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

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

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

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

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

Bash(agent-browser:*)
Bash(npx agent-browser:*)
Bash(npx @panerelay/setup:*)
Bash(curl:*)
Bash(pi-dashboard:*)

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

LICENSESKILL.md.AGENTS.mdUPSTREAM.mdreferences/challenge.mdreferences/challenge.md.AGENTS.mdreferences/dashboard-relay.mdreferences/dashboard-relay.md.AGENTS.mdreferences/desktop.mdreferences/electron.agent.mdreferences/electron.mdreferences/electron.md.AGENTS.mdreferences/own-browser.agent.mdreferences/own-browser.mdreferences/own-browser.md.AGENTS.mdreferences/web.agent.mdreferences/web.mdreferences/web.md.AGENTS.mdscripts/check-panerelay.shscripts/check-panerelay.sh.AGENTS.mdscripts/detect-dashboard.sh

FAQ

Что делает скилл browser?

Browser automation via the `agent-browser` CLI: drive websites or Electron apps (forms, clicks, screenshots, scraping, web-app/UI tests, the dashboard Electron shell) or the user's own logged-in Chrome via browser relay/Panerelay (SSO/2FA); native desktop apps route to agent-desktop. Triggers: "open a website", "take a screenshot", "test this web app", "use my own browser", "control my desktop".

Как установить скилл browser?

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

Скилл browser запускает скрипты?

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

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

Сравнить browser с