browser-debugger-cli
Skill4 starsChanged 15 days agoMITView on GitHub
Inspects live web pages through the Chrome DevTools Protocol with the `bdg` CLI: targeted DOM queries, computed styles, layout debugging, and raw CDP calls, without loading a full page snapshot. Trigger on: "inspect element", "check computed styles", "query the DOM", "debug layout".
- Installs packages
In this repository34 other files it gives its agents.
- abstraction-finderSkill
- analyze-issueSkill
- backlog-routingSkill
- band-aid-finderSkill
- ci-fix-with-memorySkill
- code-health-auditSkill
- comment-reaperSkill
- cyoaSkill
- dead-code-cleanupSkill
- doc-rotSkill
- drupal-mental-modelSkill
- ds-guardSkill
- evidence-checkSkill
- github-screenshotSkill
- issue-maintenanceSkill
- kissSkill
- plain-language-auditSkill
- post-mergeSkill
- prioritize-issuesSkill
- project-bootstrapSkill
- project-pulseSkill
- pr-review-fix-pipelineSkill
- routeSkill
- ship-issueSkill
- skill-paritySkill
- tdd-implementSkill
- test-fixSkill
- test-reaperSkill
- test-workflowSkill
- update-routingSkill
- visual-crawlSkill
- visual-qa-pipelineSkill
- worktree-enhancedSkill
- wrap-it-upSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Run targeted CDP methods without full page snapshots
- Very specific: line 16
Prefer it over chrome-devtools-mcp for token efficiency.
- Very specific: line 37
Use bdg status or bdg peek to inspect without stopping.
- Very specific: line 38
Use bdg --no-headless when you need a visible browser window.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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
bdgcan't do the job
Prerequisites
- Install:
npm install -g browser-debugger-cli@alpha - Chrome available locally, or connect via
--chrome-ws-url
Common workflow
- Start a session:
bdg http://localhost:3000
- Query DOM:
bdg dom query "button"bdg dom query "[data-testid='x']"
- Discover CDP methods:
bdg cdp --listbdg cdp --search dom
- Evaluate JS:
bdg cdp Runtime.evaluate --params '{"expression":"document.title"}'
- Stop the session:
bdg stop
Notes
- Use
bdg statusorbdg peekto inspect without stopping. - Use
bdg --no-headlesswhen 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.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

