agentleFS
denenis-labdenenis-lab/my-claude-skills/browser/SKILL.md

browser

Skill2 starsChanged 5 months agoMITView on GitHub

Use when user wants to browse the web, look at something in a browser, read page content, or interact with browser. Connects to Chrome Canary via CDP (remote debugging) using an isolated bot profile. Does NOT touch the user's main Chrome.

  • Sends data out

81 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use functions, V3 Core Implementation and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • jtfasulo7Skill

    functions

    Deploy serverless browser automation as cloud functions using Browserbase. Use when the user wants to deploy browser automation to run on a schedule or cron, create a webhook endpoint for browser tasks, run automation in the cloud instead of locally, or asks about Browserbase Functions.

    Also in 3 projects that use this

  • ruvnetSkill

    V3 Core Implementation

    Core module implementation for claude-flow v3. Implements DDD domains, clean architecture patterns, dependency injection, and modular TypeScript codebase with comprehensive testing.

    Also in 15 projects that use this

  • ruvnetSkill

    V3 DDD Architecture

    Domain-Driven Design architecture for claude-flow v3. Implements modular, bounded context architecture with clean separation of concerns and microkernel pattern.

    Also in 15 projects that use this

  • +9 more from ruvnet
  • Other versions81 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 81

    1. ruvnet/wifi-densepose★ 105ksame name
    2. ruvnet/RuView★ 105ksame name
    3. ruvnet/claude-flow★ 83ksame name
    4. ruvnet/ruflo★ 83ksame name
    5. ruvnet/RuVector★ 4.7ksame name
    6. ruvnet/ruvector★ 4.7ksame name
    7. browserbase/agent-browse★ 3.8ksame name
    8. browserbase/skills★ 3.8ksame name
    9. VibiumDev/vibium★ 3ksame name
    10. cexll/myclaude★ 2.8ksame name

    71 more not listed

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository2 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 4 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 68 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If response → CDP is active, go to step 3

    line 27
  2. Distinctive:

    If no response → go to step 2

    line 28
  3. Distinctive:

    If port is busy — investigate what's using it.

    line 38
  4. Distinctive:

    If no response — wait 3 more seconds and retry.

    line 58
  5. Very specific:

    If curl to port 9222 doesn't respond after launch → wait 3 more seconds and retry

    line 149
  6. Very specific:

    If websockets is not installed → pip3 install --break-system-packages websockets

    line 150
  7. Very specific:

    If Canary won't start → check pgrep -la "Chrome Canary"

    line 151
  8. Very specific:

    If port 9222 is occupied → lsof -i :9222 to find out by what

    line 152

“Common” is measured: kept by at least 6 in 10 of the 68 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Browser Skill

Connects to Chrome Canary via CDP (Chrome DevTools Protocol) using an isolated bot profile.

IMPORTANT: The user's main Chrome is never touched. Canary runs in parallel with a separate profile.

When to invoke

  • User says "open in browser", "browse to", "check in Chrome", "what tabs are open", etc.
  • Need to read web page content
  • Need to open a URL

Connection algorithm

1. Check if CDP is already running

curl -s --max-time 2 http://localhost:9222/json/version
  • If response → CDP is active, go to step 3
  • If no response → go to step 2

2. Launch Chrome Canary with bot profile

2a. Check if port is free

lsof -i :9222 2>/dev/null && echo "PORT_BUSY" || echo "PORT_FREE"

If port is busy — investigate what's using it.

2b. Launch Canary

Bot profile is stored in ~/.chromium-bot. It persists cookies and logins between sessions.

"/Applications/Google Chrome Canary.app/Contents/MacOS/Google Chrome Canary" \
  --remote-debugging-port=9222 \
  --user-data-dir="$HOME/.chromium-bot" \
  --no-first-run &

sleep 5

Verify connection:

curl -s --max-time 2 http://localhost:9222/json/version

If no response — wait 3 more seconds and retry.

3. List open tabs

curl -s http://localhost:9222/json/list | python3 -c "
import json, sys
tabs = json.load(sys.stdin)
pages = [t for t in tabs if t['type'] == 'page']
if not pages:
    print('No open tabs')
else:
    for i, t in enumerate(pages, 1):
        print(f\"{i}. {t['title']}\n   {t['url']}\n\")
"

4. Open a URL

curl -s -X PUT "http://localhost:9222/json/new?URL_HERE"

5. Read page content

5a. Ensure websockets is installed

python3 -c "import websockets" 2>/dev/null || pip3 install --break-system-packages websockets

5b. Read content

python3 -c "
import json, asyncio, websockets

async def get_content(ws_url):
    async with websockets.connect(ws_url) as ws:
        await ws.send(json.dumps({
            'id': 1,
            'method': 'Runtime.evaluate',
            'params': {'expression': 'document.body.innerText'}
        }))
        result = json.loads(await ws.recv())
        text = result.get('result', {}).get('result', {}).get('value', 'Could not read page')
        print(text[:15000])

import urllib.request
tabs = json.loads(urllib.request.urlopen('http://localhost:9222/json/list').read())
pages = [t for t in tabs if t['type'] == 'page']
if pages:
    asyncio.run(get_content(pages[0]['webSocketDebuggerUrl']))
else:
    print('No open tabs')
"

6. Navigate within a tab

python3 -c "
import json, asyncio, websockets

async def navigate(ws_url, url):
    async with websockets.connect(ws_url) as ws:
        await ws.send(json.dumps({
            'id': 1,
            'method': 'Page.navigate',
            'params': {'url': url}
        }))
        print(await ws.recv())

import urllib.request
tabs = json.loads(urllib.request.urlopen('http://localhost:9222/json/list').read())
pages = [t for t in tabs if t['type'] == 'page']
if pages:
    asyncio.run(navigate(pages[0]['webSocketDebuggerUrl'], 'TARGET_URL'))
"

Key details

  • Browser: Chrome Canary (/Applications/Google Chrome Canary.app/)
  • Bot profile: ~/.chromium-bot (isolated from main Chrome)
  • CDP port: 9222
  • User's main Chrome is NEVER touched — Canary runs independently
  • Cookies and logins persist between sessions in the bot profile

Error handling

  • If curl to port 9222 doesn't respond after launch → wait 3 more seconds and retry
  • If websockets is not installed → pip3 install --break-system-packages websockets
  • If Canary won't start → check pgrep -la "Chrome Canary"
  • If port 9222 is occupied → lsof -i :9222 to find out by what

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.