browser-debugger-cli

browser-debugger-cli is a skill for Claude Code from jerseycheese/agent-skills. It costs 68 tokens per session (437 once invoked), scanned A, original, MIT.

A command-line tool for inspecting and debugging live web pages through Chrome's developer interface.

In plain words
What is it for?
Use it to inspect the DOM, check computed styles, debug responsive layouts, evaluate JavaScript, and make targeted Chrome DevTools Protocol calls.
Why use it?
It lets an agent query specific page elements, styles, layout details, and browser functions without loading an entire page snapshot.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the workflow-skills plugin — 34 skills shipped together

Good fit Use it to inspect the DOM, check computed styles, debug responsive layouts, evaluate JavaScript, and make targeted Chrome DevTools Protocol calls.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jerseycheese/agent-skills/browser-debugger-cli
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jerseycheese/agent-skills --skill browser-debugger-cli
Clone the repo
git clone --depth 1 https://github.com/jerseycheese/agent-skills

Made for: Claude Code.

Or install workflow-skills, the plugin that ships this one along with the rest of its 34 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for browser-debugger-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/jerseycheese/agent-skills/browser-debugger-cli/github.svg)](https://agentmods.dev/skills/jerseycheese/agent-skills/browser-debugger-cli)
Your own site
<a href="https://agentmods.dev/skills/jerseycheese/agent-skills/browser-debugger-cli"><img src="https://agentmods.dev/badge/skills/jerseycheese/agent-skills/browser-debugger-cli/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for browser-debugger-cli

Your own site · 80×15
<a href="https://agentmods.dev/skills/jerseycheese/agent-skills/browser-debugger-cli"><img src="https://agentmods.dev/badge/skills/jerseycheese/agent-skills/browser-debugger-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 437 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00068 $0.00437
Opus 5.5 $0.00027 $0.00175
Sonnet 5.5 $0.00014 $0.00087
Haiku 4.5 $0.00007 $0.00044

Measured 4d ago against content hash 8967806a7601, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

browser-debugger-cli scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/browser-debugger-cli/SKILL.md · 41 lines

What it actually says

browser-debugger-cli (bdg)

When to use

  • Query specific DOM elements or attributes
  • Run targeted CDP methods without full page snapshots
  • Debug with minimal token overhead
  • Prefer it over chrome-devtools-mcp for token efficiency; fall back to the MCP when bdg can't do the job

Prerequisites

  • Install: npm install -g browser-debugger-cli@alpha
  • Chrome available locally, or connect via --chrome-ws-url

Common workflow

  1. Start a session:
    • bdg http://localhost:3000
  2. Query DOM:
    • bdg dom query "button"
    • bdg dom query "[data-testid='x']"
  3. Discover CDP methods:
    • bdg cdp --list
    • bdg cdp --search dom
  4. Evaluate JS:
    • bdg cdp Runtime.evaluate --params '{"expression":"document.title"}'
  5. Stop the session:
    • bdg stop

Notes

  • Use bdg status or bdg peek to inspect without stopping.
  • Use bdg --no-headless when you need a visible browser window.
  • macOS tiling window managers: When using --no-headless, tiling window managers (AeroSpace, yabai, Amethyst, etc.) will constrain the browser window's viewport to whatever space the layout assigns. Float the window after it appears using the WM's float command. Without this, viewport-dependent CSS (media queries, responsive layouts) may not match expected breakpoints.
  • For full page snapshots or complex automation, use Chrome DevTools MCP.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago Changed · -48 tokens per session 8967806a7601
  2. 1mo ago First seen · 41 lines · 116 tokens per session scan A c51a4665af8a

Subscribe to this mod's changes

browser-debugger-cli is a skill published in the GitHub repository jerseycheese/agent-skills (3 stars, last pushed yesterday), licensed MIT. It adds 68 tokens to every session and 437 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

opencli-autofix

Automatically fix broken OpenCLI adapters when commands fail. Load this skill when an opencli command fails — it guides you through collecting a trace artifact, patching the adapter, retrying, and filing an upstream GitHub issue after a verified fix. Works with any AI agent.

jackwener/OpenCLI · 61 tokens

chrome-devtools

Use Chrome DevTools MCP to control and inspect a live Chrome instance for network, console, performance, rendering, and Deep debugging. Pairs with playwright-cli (deterministic interaction/E2E) — complements, not duplicates.

ulises-jeremias/agent-toolkit · 50 tokens

playwright-cli

Drive a real browser from the terminal using the Playwright CLI (snapshot, click, fill, screenshots, traces). Use when the task is CLI-first browser automation (data extraction, UI debugging, form fills, multi-tab work). For Playwright test specs, use e2e-runner instead.

ulises-jeremias/agent-toolkit · 67 tokens

wick-html-widget

Use when an HTML artifact / widget preview in wick chat misbehaves — blank or clipped iframe, "violates the following Content Security Policy directive", a stylesheet or script that never loads, images blocked by img-src, a slide deck whose navigation is dead, or a preview that needs to read a session file. Covers the…

yogasw/wick · 179 tokens

didi-ride

A connection to DiDi, a ride-hailing service, for booking and managing trips and planning routes. It can check prices, orders, driver status, and routes for driving, public transport, walking, or cycling.

AceDataCloud/Skills · 110 tokens

reddit

Search subreddits, read rules, reply to threads, and submit posts (link or text) to Reddit using either official OAuth or your own Reddit login cookies. Use when the user mentions Reddit, posting to a subreddit, replying or commenting on a thread, submitting a link or self-post, or checking their Reddit profile /…

AceDataCloud/Skills · 69 tokens