badlogic avatar

Browser Tools

Connects to Chrome via DevTools Protocol for programmatic browser automation. You get tools to navigate, evaluate JavaScript, take screenshots, and extract page content as markdown. The browser-pick tool is interesting for letting users click elements directly when you need selectors. The efficiency guide pushes you toward DOM inspection over screenshots and batching interactions in single eval calls, which is the right instinct. Use this when you're testing frontends, dealing with JavaScript-heavy pages, or need to preserve login state by copying the user's browser profile. It's real browser automation, not headless scraping, so you see what actually renders.

skills.sh installs
475
GitHub stars
2.7K
last updated
Aug 21, 2026

Install

$ npx -y skills add badlogic/pi-skills --skill browser-tools --agent claude-code

Installs into .claude/skills of the current project.

Files

Browser Tools

Chrome DevTools Protocol tools for agent-assisted web automation. These tools connect to Chrome running on :9222 with remote debugging enabled.

Setup

Run once before first use:

cd {baseDir}/browser-tools
npm install

Start Chrome

{baseDir}/browser-start.js              # Fresh profile
{baseDir}/browser-start.js --profile    # Copy user's profile (cookies, logins)

Launch Chrome with remote debugging on :9222. Use --profile to preserve user's authentication state.

Navigate

{baseDir}/browser-nav.js https://example.com
{baseDir}/browser-nav.js https://example.com --new

Navigate to URLs. Use --new flag to open in a new tab instead of reusing current tab.

Evaluate JavaScript

{baseDir}/browser-eval.js 'document.title'
{baseDir}/browser-eval.js 'document.querySelectorAll("a").length'

Execute JavaScript in the active tab. Code runs in async context. Use this to extract data, inspect page state, or perform DOM operations programmatically.

Screenshot

{baseDir}/browser-screenshot.js

Sponsors

Details

Repository
github.com/badlogic/pi-skills
Categories
Testing & QA, Automation & Workflows, Design & UI/UX
First seen
Jun 3, 2026

More from badlogic/pi-skills

All 4
1aaronontheweb avatarmailpit-integrationaaronontheweb/dotnet-skillsTest email sending locally using Mailpit with .NET Aspire. Captures all outgoing emails without sending them. View rendered HTML, inspect headers, and verify de443skills.sh installs
2patricio0312rev avatarmulti-tenant-safety-checkerpatricio0312rev/skillsEnsures tenant isolation at query and policy level using Row Level Security, automated testing, and security audits. Prevents data leakage between tenants. Use 439skills.sh installs
3aaronontheweb avatarakka-hosting-actor-patternsaaronontheweb/dotnet-skillsPatterns for building entity actors with Akka.Hosting - GenericChildPerEntityParent, message extractors, cluster sharding abstraction, akka-reminders, and ITime434skills.sh installs
4guia-matthieu avatarheadline-formulasguia-matthieu/clawfu-skills25+ proven headline formulas that stop the scroll, capture attention, and drive clicks. Templates and examples for every situation. Use when: Writing headlines 431skills.sh installs
5syncfusion avatarsyncfusion-blazor-commonsyncfusion/blazor-ui-components-skillsSet up Syncfusion Blazor components — project creation, NuGet packages, service registration, script loading, bUnit testing, and localization & globalization co424skills.sh installs
6yelban avatarcamofox-browseryelban/camofox-browser-skillsAnti-detection browser automation using Camoufox (Firefox fork with C++ fingerprint spoofing). Use when standard browser tools get blocked by Cloudflare, Akamai416skills.sh installs