Command Palette

Search for a command to run...

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

bdg

БесплатноБез исполняемых скриптовНе проверен

Use bdg CLI to drive and debug a real Chrome via Chrome DevTools Protocol - navigate, click, fill and submit forms, check what an action changed (navigation…

szymdzumот szymdzum★ 187 звёзд на GitHub36 установок в других каталогах

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

bdg - Browser Automation CLI

Requires the bdg binary: npm i -g browser-debugger-cli (bdg --version to check).

Quick Start

The loop: start, look, act, read the reported effect, check errors. Screenshots only for visual proof.

bdg https://example.com --headless      # Start a session (Chrome + daemon); stays up until bdg stop
bdg dom query "button"                  # Find elements: [0], [1], ... (0-based); class="px-2 +4" = first class + 4 more (all in --json classes, [] when none, or dom get <index> --json domContext.classes)
                                         # Human output escapes " \ and newlines in values and cuts them at 40 chars (--json/--raw keep them whole); same-origin links show as paths (/register/), others with their scheme; an icon-only button shows its name: [2] <button class="icon"> "Open menu"
bdg dom inspect "button.primary"        # Box, layout, font, colors + contrast, without a screenshot
bdg dom fill "input[name='email']" "[email protected]"
bdg dom click "button[type='submit']"   # Prints what changed: navigation, new text, or no effect
bdg console --level error               # Anything thrown?
bdg console --follow --ndjson           # Tail console output: one JSON record per line ({type:"page",navigationId,url} per page, {type:"message",level,text,…} per message; `type` is the record kind, `level` the console type (error, warning, info, log, debug, …) that `console --json` gives as `messages[].type`); `--follow --json` prints the same records
bdg network list --preset errors        # 4xx/5xx of the current page (--page all: earlier pages too)
bdg stop                                # Only when completely done

On macOS bdg opens a Chrome window by default; pass --headless when running unattended (it is the default over SSH, in CI and on Linux without a display).

Sessions

bdg status                    # Current session (bdg status --verbose for diagnostics)
bdg peek                      # Preview collected requests and console messages (starts with Page: <url> — <title>; status and peek add ⚠ The page is still loading … waiting on: … until the page has finished loading (readyState not complete), JSON loading)
bdg sessions                  # All sessions, default and named
bdg <url> --session mobile --mobile --headless   # A second, named session (own Chrome)
bdg --session mobile eval "innerWidth"           # Every command takes --session <name> (or BDG_SESSION)
bdg <url> --viewport 1280x800 --color-scheme dark
bdg -q dom query "a"          # -q: minimal output, no "Next:" hints

Sessions run until bdg stop (no timeout). With an HMR dev server, start once and keep it running: the page updates itself, then re-run dom inspect / console.

Attach to a Tab As It Is

bdg attach                                    # List the page tabs of your Chrome: [0] title — url (0-based), then exit
bdg attach checkout                           # Session on the only tab whose URL/title contains "checkout"
bdg attach 2                                  # ... or by index from the list (a number is always an index)
bdg attach --user-data-dir <dir>              # Another Chromium profile (Canary, Edge, Brave)
bdg attach checkout --stop-after 600             # End the session by itself after 600 s
bdg attach checkout --chrome-ws-url 9222      # A Chrome started with --remote-debugging-port=9222 --user-data-dir=<dir>

Test-only: with BDG_ATTACH_REQUIRE_WS_URL=1 in the environment, attach without --chrome-ws-url or --user-data-dir exits 81 and never reads your Chrome's profile.

Without --chrome-ws-url, bdg reads DevToolsActivePort from Chrome stable's profile (or --user-data-dir): the user enables remote debugging at chrome://inspect/#remote-debugging and clicks Allow in Chrome's prompt (one prompt per command). No file or a stale one exits 83 (ask the user to enable it), prompt declined 82, unanswered after 30 s 102. The tab is never navigated or reloaded: its state stays, console messages and errors it logged earlier are replayed, earlier network requests are not available. No match exits 83 (with the tab list), several 81 (use an index). One connection to the browser; downloads of that tab are listed (saved where your Chrome saves them); bdg stop only detaches (tab and Chrome stay); page switch exits 81 (stop and attach to the other tab).

Keep a Login Across Sessions

bdg stop drops session cookies (most dev-server logins) and sessionStorage. Save the auth state once logged in, then start with it:

bdg state save /tmp/login.json                  # Cookies (session + HttpOnly), localStorage, sessionStorage of the page's origins
bdg stop && bdg <url>/dashboard --state /tmp/login.json   # Restored before the first load: still logged in
bdg --session other state load /tmp/login.json  # Into a running session (reloads; --no-reload to skip)

A state file over 50 MiB is refused (exit 81). The file holds secrets (written

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

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

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

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

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

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

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

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

FAQ

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

Use bdg CLI to drive and debug a real Chrome via Chrome DevTools Protocol - navigate, click, fill and submit forms, check what an action changed (navigation, new messages, pending requests), inspect elements without screenshots (box, layout, fonts, colors, a11y), read network requests and console errors, run JavaScript, and call any CDP method. Use this skill when you need to verify a UI change in a running app, debug a page, automate a browser flow, or scrape dynamic content.

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

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

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

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

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

Сравнить bdg с