agentleFS
ngctongcto/oh-my-pstack/skills/browser-use/SKILL.md

browser-use

Skill1 starsChanged 38 days agoMITView on GitHub

Drive web UIs and Electron or Chromium CDP targets with the Browser Use CLI. Use for browser interaction, DOM inspection, screenshots, or UI verification; check installation and setup on first use.

54 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use context7-efficient, configuring-dapr-pubsub 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.
  • hfzarslanSkill

    context7-efficient

    Token-efficient library documentation fetcher using Context7 MCP with 86.8% token savings through intelligent shell pipeline filtering. Fetches code examples, API references, and best practices for JavaScript, Python, Go, Rust, and other libraries. Use when users ask about library documentation, need code examples, want API usage patterns, are learning a new framework, need syntax reference, or troubleshooting with library-specific information. Triggers include questions like "Show me React hooks", "How do I use Prisma", "What's the Next.js routing syntax", or any request for library/framework documentation.

    Also in 5 projects that use this

  • AbdullahMalik17Skill

    configuring-dapr-pubsub

    Configures Dapr pub/sub components for event-driven microservices with Kafka or Redis. Use when wiring agent-to-agent communication, setting up event subscriptions, or integrating Dapr sidecars. Covers component configuration, subscription patterns, publishing events, and Kubernetes deployment. NOT when using direct Kafka clients or non-Dapr messaging patterns.

    Also in 3 projects that use this

  • AbdullahMalik17Skill

    deploying-cloud-k8s

    Deploys applications to cloud Kubernetes (AKS/GKE/DOKS) with CI/CD pipelines. Use when deploying to production, setting up GitHub Actions, troubleshooting deployments. Covers build-time vs runtime vars, architecture matching, and battle-tested debugging.

    Also in 3 projects that use this

  • dycnnnbSkill

    remote-browser

    Controls a cloud browser from a sandboxed remote machine. Use when the agent is running in a sandbox (no GUI) and needs to navigate websites, interact with web pages, fill forms, take screenshots, or expose local dev servers via tunnels.

    Also in 3 projects that use this

  • mjunaidcaSkill

    building-chatgpt-apps

    Guides creation of ChatGPT Apps with interactive widgets using OpenAI Apps SDK and MCP servers. Use when building ChatGPT custom apps with visual UI components, embedded widgets, or rich interactive experiences. Covers widget architecture, MCP server setup with FastMCP, response metadata, and Developer Mode configuration. NOT when building standard MCP servers without widgets (use building-mcp-servers skill instead).

    Also in 3 projects that use this

  • mjunaidcaSkill

    building-chat-interfaces

    Build AI chat interfaces with custom backends, authentication, and context injection. Use when integrating chat UI with AI agents, adding auth to chat, injecting user/page context, or implementing httpOnly cookie proxies. Covers ChatKitServer, useChatKit, and MCP auth patterns. NOT when building simple chatbots without persistence or custom agent integration.

    Also in 3 projects that use this

  • +6 more from AbdullahMalik17

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 53 edited versions we read keep these.

  • 3

    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. Very specific:

    Use the Browser Use CLI for browser interaction.

    line 8
  2. Very specific:

    Use browser-use when present.

    line 15
  3. Very specific:

    Run the selected command with --version, --help, and --doctor, each with BH_TELEMETRY=0.

    line 16
  4. Distinctive:

    Check again after the user completes setup or the connection stops working.

    line 19
  5. Distinctive:

    Use the executable path reported by uv if it is not on PATH.

    line 33
  6. Distinctive:

    If the intended daemon already has a healthy connection, skip bootstrap.

    line 39
  7. Very specific:

    Check that the target is in the viewport.

    line 74

“Common” is measured: kept by at least 6 in 10 of the 53 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 Use

Use the Browser Use CLI for browser interaction. Use read for static pages and APIs that do not need a browser.

First use in a session

Set BH_TELEMETRY=0 for every invocation of the selected executable, including preflight, bootstrap, and cleanup. Default telemetry includes command text, output, and helper arguments. Do not send UI content off-host without the user's explicit approval. Use a per-process environment value, not a persistent preference change. On PowerShell, pass it in the child process environment.

  1. Locate the executable with command -v browser-use and command -v bu. On Windows, use Get-Command browser-use, bu -ErrorAction SilentlyContinue.
  2. Use browser-use when present. If only bu is present, check BH_TELEMETRY=0 bu --help and use it only if it is the Browser Use CLI. Do not create an alias or wrapper.
  3. Run the selected command with --version, --help, and --doctor, each with BH_TELEMETRY=0. Reuse an existing installation; a failing command is not permission to reinstall or upgrade it.
  4. If the executable is missing or the doctor reports a missing connection or setup prerequisite, tell the user what failed. Ask them to install and set up Browser Use, or explicitly approve help with those steps. Wait before browser actions. Do not fall back to another UI driver to bypass the setup gate.

Check again after the user completes setup or the connection stops working. Do not repeat a successful preflight before every action.

Local/CDP work does not require Browser Use cloud authentication. An optional cloud-auth warning is not a setup failure when the intended browser connection is healthy.

Installation and setup guidance

Give these steps to the user when needed. Do not run installation or configuration commands without their approval.

With uv installed, install the CLI using Python 3.12:

uv tool install --python 3.12 browser-use

Use the executable path reported by uv if it is not on PATH. Do not edit shell startup files automatically. This plugin already supplies the skill; do not run a skill installer that overwrites the user's skills.

For local Chrome, ask the user to open Chrome and enable remote debugging at chrome://inspect/#remote-debugging if the doctor identifies that prerequisite. The user handles browser and OS permission prompts. Do not automate approval or change browser profiles/security settings as hidden setup.

For an owned Electron or Chromium instance, use its documented debug launch and set BU_CDP_URL to the loopback HTTP DevTools endpoint, or BU_CDP_WS to its WebSocket endpoint. Repeat the same endpoint and run-specific BU_NAME on every CLI call. A daemon name does not isolate a shared browser.

If the intended daemon already has a healthy connection, skip bootstrap. Otherwise ask before establishing it. For an explicitly configured endpoint, one approved connection probe can establish the daemon:

BH_TELEMETRY=0 BU_CDP_URL=http://127.0.0.1:<debug-port> BU_NAME=<run-name> browser-use <<'PY'
print(list_tabs())
PY

Replace the endpoint and run name with discovered values. After that approved bootstrap, require BH_REQUIRE_EXISTING_DAEMON=1 on every Python-stdin call. Repeat the endpoint and daemon name as well. A health failure must return to the user setup gate, not trigger automatic repair. In a headless environment, require an explicit endpoint. Do not start a billable cloud browser without the user's approval.

For connection details, read the Browser Use setup guide. That guide may use the underlying browser-harness name; keep using the installed Browser Use executable unless the user approves a change.

Drive the page

The current CLI executes Python on stdin. Helpers are pre-imported. Browser state and the attached tab persist between calls; Python variables do not. Do not use retired open, state, eval, or --session command recipes.

Inspect current_tab() and list_tabs() before choosing a target. For a new task, call new_tab() without a URL to create an owned blank tab, then goto_url(discovered_url). Retain the returned target ID for cleanup. Do not call new_tab(url), which can navigate an existing blank user tab.

With the approved endpoint environment set, enforce reuse-only mode:

BH_TELEMETRY=0 BH_REQUIRE_EXISTING_DAEMON=1 browser-use <<'PY'
target = new_tab()
goto_url("http://127.0.0.1:<app-port>")
assert wait_for_load(), "page did not finish loading"
print(current_tab())
print(page_info())
print(capture_screenshot("/absolute/run-dir/before.png"))
PY

Replace the URL and artifact path with this run's values. Read the saved PNG.

  1. Inspect bounded accessibility nodes with cdp("Accessibility.getFullAXTree")["nodes"]. Filter by the intended role and name before printing.
  2. Resolve the observed backendDOMNodeId with cdp("DOM.getBoxModel", backendNodeId=...). Its content quad gives viewport CSS coordinates for click_at_xy(x, y).
  3. Check that the target is in the viewport; scroll and reobserve if needed. Act once. Use fill_input(selector, text) or press_key(key) for input when appropriate.
  4. Reobserve with page_info() or a targeted js(...) read. Check wait_for_element(selector) and wait_for_load() results; neither proves the task's postcondition by itself.
  5. Capture the changed view with capture_screenshot(path) and verify the visible result. If capture stalls, activate_tab(target) is permitted in an owned headless browser. On a shared visible browser, ask before changing the active tab.

DOM inspection is not permission to call app internals or mutate state instead of exercising the user path. Screenshot-derived clicks need the exact image scale and js("window.devicePixelRatio") conversion. Read the screenshot guide before using image coordinates.

Diagnostics, recording, cleanup

Use cdp(...) for the supported DevTools domains. Enable the relevant domain before the action, collect events with drain_events(), and save the actual result. CPU profiles use Profiler.enable, Profiler.start, and Profiler.stop; metrics use Performance.enable and Performance.getMetrics. Tracing and heap snapshots stream events, so collect through completion before reporting an artifact.

Record only with user consent. start_recording(name, title=...) returns the run directory; retain it and call stop_recording() after verification. Do not change persistent recording preferences. Follow the video guide when a video is requested.

Use switch_tab(observed_target) to reattach without foregrounding it. Use activate_tab only in an owned headless browser or when visible control is authorized. Close only a tab this run created with close_tab(target). Do not reload or stop a shared daemon for cleanup. Stop only browser processes and servers you launched.

Command references: Browser Use and interaction guides.

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.