Command Palette

Search for a command to run...

Назад к скиллам
скилл № 83314

Chrome

Control the user's Chrome browser through a session-scoped persistent Node REPL when tasks depend on existing tabs, signed-in sessions, extensions, visible…

БесплатноБез исполняемых скриптов
fanfan-deот fanfan-de★ 55 звёзд на GitHub

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

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

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

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

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

Chrome

Stop: choose the right surface before browser action

Explicit Chrome intent wins. If the user names Chrome or this plugin, asks to open or navigate to a page in Chrome, wants the page's visual or interactive state inspected, or requests UI interaction, continue with this skill and do not silently substitute another browser.

Otherwise, treat a URL or open tab as context rather than browser intent. Before each semantic operation on a linked resource, inspect available tools and use tool discovery when available to find an applicable connector, API, or CLI. Prefer that purpose-built surface when it can complete the operation. Use Chrome when no such surface exists, it lacks the required capability, existing Chrome state matters, or UI work remains.

Use this skill for navigating, inspecting visible page state, testing local web apps, clicking, filling, typing, scrolling, waiting for page changes, and taking screenshots.

Use only the Anybox Node REPL

Control Chrome only through the general-purpose Anybox Node REPL js tool. Its full Anybox tool ID normally resembles mcp__anybox_node_repl__js. Do not use per-action browser_* MCP tools, Computer Use, standalone Playwright, or another browser-control plugin for this Chrome surface.

The js_reset tool terminates and replaces the Node kernel, including globals, module cache, timers, and descendants. The kernel is also replaced when the Anybox session changes. The js_add_node_module_dir tool only changes CommonJS module resolution. Do not call either helper while trying to expose js.

Keep setup details internal. Unless the user asks about implementation, describe progress naturally as connecting to Chrome, inspecting the page, or retrying the connection.

The Browser Client sends only operations advertised by Browser Contract v4 to the plugin-owned Browser Host over authenticated local IPC. The client performs an early schema and capability check, and the Browser Host authoritatively validates every command again before it can reach Chrome. The general-purpose Node environment does not provide a browser host-service API; do not call or expect nodeRepl.requestHost(...).

Bootstrap and reload safely

The Node REPL is a general Anybox environment. It preloads nodeRepl, but it does not preload browser-client, setupBrowserRuntime, agent, or Chrome-specific capabilities.

Importing and initializing the Browser Client starts or reconnects the Browser Host from this same plugin package as needed. Keep that lifecycle internal unless the user explicitly asks about implementation.

The absolute path shown when this Skill is loaded ends in skills/chrome/SKILL.md. Resolve this plugin's package root by moving two directories up from that Skill directory. The bundled Browser Client is scripts/browser-client.mjs under that package root. Import exactly that file through an absolute file URL. Never import an external or built-in browser-client package. If the bundled file is missing, stop and report that the Chrome plugin package is incomplete.

Import the Browser Client from the currently loaded plugin package. Reuse it while that package version remains active, but replace a Browser Client retained from an older plugin version before using Chrome. Initialize one persistent Chrome binding and read its complete runtime documentation on first use:

const { resolve } = require("node:path")
const { pathToFileURL } = require("node:url")
const pluginRoot = "<absolute plugin root derived from this Skill's loaded path>"
const browserClientPath = resolve(pluginRoot, "scripts", "browser-client.mjs")
const { setupBrowserRuntime } = await import(pathToFileURL(browserClientPath).href)
if (
  globalThis.agent?.browsers == null
  || globalThis.setupBrowserRuntime !== setupBrowserRuntime
) {
  await setupBrowserRuntime({ globals: globalThis })
  globalThis.chrome = undefined
}
if (globalThis.chrome == null) {
  const readiness = await agent.browsers.ensureReady({ launch: true })
  if (readiness.state !== "ready") return readiness
  globalThis.chrome = await agent.browsers.getDefault()
  nodeRepl.write(await chrome.documentation())
}

Reuse globalThis.chrome across later calls and user turns in the same Anybox session while the imported setup function still matches globalThis.setupBrowserRuntime. A mismatch means the persistent REPL retained an older plugin version, so reinitialize from the currently loaded package and discard the stale Chrome binding. A new Anybox session or a hard reset has no retained binding and must run this bootstrap again; do not reinitialize merely because the user sent a new message within the same session.

agent.browsers.readiness() reports the current connection state without launching Chrome or running the Native Host probe. During an explicit Chrome task, agent.browsers.ensureReady({ launch: true }) first allows an in-flight extension reconnect to settle, verifies the installed Native Messaging Host th

Полный SKILL.md на GitHub

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

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

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

FAQ

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

Control the user's Chrome browser through a session-scoped persistent Node REPL when tasks depend on existing tabs, signed-in sessions, extensions, visible page state, or UI interaction. Prefer purpose-built connectors, APIs, or CLIs for semantic resource operations.

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

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

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

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить Chrome с