agentleFS
vibesurf-aivibesurf-ai/claude-surf/skills/browser/SKILL.md

browser

Skill24 starsChanged 11 months agoMITView on GitHub

Use when user needs direct browser control like navigating to URLs, clicking elements, typing text, scrolling, switching tabs, taking screenshots, or inspecting page state.

32 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use V3 CLI Modernization, 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.
  • ruvnetSkill

    V3 CLI Modernization

    CLI modernization and hooks system enhancement for claude-flow v3. Implements interactive prompts, command decomposition, enhanced hooks integration, and intelligent workflow automation.

    Also in 5 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 5 projects that use this

  • justSteveSkill

    github-multi-repo

    Multi-repository coordination, synchronization, and architecture management with AI swarm orchestration

    Also in 6 projects that use this

  • justSteveSkill

    github-release-management

    Comprehensive GitHub release orchestration with AI swarm coordination for automated versioning, testing, deployment, and rollback management

    Also in 6 projects that use this

  • +7 more from ruvnet
  • +1 more from justSteve

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 28 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When you need explicit control over each action

    line 15
  2. Distinctive:

    When you want to verify results at each step

    line 16
  3. Very specific:

    Workflow: Call start_* first, perform actions, then call stop_* to get logs

    line 88
  4. Distinctive:

    When describing the goal is easier than specifying steps

    line 98
  5. Very specific:

    Call get_browser_state first to see available elements

    line 109
  6. Very specific:

    Use browser.get_element_info to inspect element details (xpath, attributes, etc.)

    line 110
  7. Distinctive:

    Use element indices/IDs from browser state

    line 111
  8. Very specific:

    Use browser.extract for LLM-based extraction from page markdown

    line 113
  9. Very specific:

    Use browser.evaluate for custom JavaScript operations

    line 114

“Common” is measured: kept by at least 6 in 10 of the 28 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 - Direct Browser Control

Overview

Direct control of browser interactions. Use for simple, single actions.

When to Use

browser provides low-level, precise control over browser operations:

  • When you need explicit control over each action
  • When you want to verify results at each step
  • As a fallback when browser-use agent fails or gets stuck
  • Any browser automation task (navigation, clicking, form filling, etc.)

Note: browser and browser-use are complementary. Both can accomplish the same tasks - browser gives precise step-by-step control, while browser-use provides high-level task automation.

Available Actions

ActionDescription
get_browser_stateGet current browser state including tabs, DOM content, and highlighted screenshot
browser.get_element_infoGet element details by index (xpath, position, attributes, visibility)
browser.searchGoogle search
browser.navigateNavigate to URL
browser.go_backGo back
browser.waitWait for condition
browser.clickClick element
browser.inputInput text into field
browser.switchSwitch to another tab by tab_id
browser.closeClose a tab by tab_id
browser.extractLLM extracts structured data from page markdown
browser.scrollScroll page
browser.send_keysSend keyboard keys
browser.find_textScroll to and find text
browser.dropdown_optionsGet dropdown options
browser.select_dropdownSelect dropdown option
browser.evaluateExecute JavaScript in browser
browser.hoverHover on element
browser.download_mediaDownload media from URL
browser.get_html_contentGet HTML content and save to file
browser.reload_pageRefresh current page
browser.start_console_loggingStart monitoring console logs (console.log/warn/error)
browser.stop_console_loggingStop console logging and retrieve all logs
browser.start_network_loggingStart monitoring network traffic (requests/responses)
browser.stop_network_loggingStop network logging and get HAR file

Key Actions

Getting Started

  • get_browser_state - Always call first to see current state

Navigation

  • browser.navigate - Go to URL
  • browser.go_back - Go back
  • browser.reload_page - Refresh page

Interaction

  • browser.click - Click element
  • browser.input - Type text
  • browser.send_keys - Send keyboard keys
  • browser.hover - Hover on element

Data & Info

  • browser.get_element_info - Inspect element details (xpath, position, attributes)
  • browser.extract - LLM extracts structured data from page
  • browser.get_html_content - Get full HTML
  • browser.find_text - Find and scroll to text

Tabs

  • browser.switch - Switch to tab by tab_id (last 4 chars of target_id)
  • browser.close - Close tab by tab_id

Advanced

  • browser.evaluate - Execute custom JavaScript

Debugging & Testing

  • browser.start_console_logging - Start monitoring console logs
  • browser.stop_console_logging - Stop and retrieve console logs (saved to file)
  • browser.start_network_logging - Start monitoring network traffic
  • browser.stop_network_logging - Stop and retrieve network logs as HAR file

Use case: Website testing, local frontend/backend debugging, reverse engineering Workflow: Call start_* first, perform actions, then call stop_* to get logs

Relationship with browser-use

browser and browser-use are complementary, not exclusive:

  • browser-use: High-level, task-oriented sub-agent (describe goal, agent figures out steps)
  • browser: Low-level, precise control (explicit step-by-step operations)

When to prefer browser-use:

  • Complex tasks with long workflows
  • When describing the goal is easier than specifying steps

When to prefer browser:

  • Need precise control over each action
  • Want to verify intermediate results
  • browser-use failed or got stuck (use as fallback)

Best practice: Try browser-use for complex tasks first, fallback to browser for manual control if needed.

Best Practices

  1. Call get_browser_state first to see available elements
  2. Use browser.get_element_info to inspect element details (xpath, attributes, etc.)
  3. Use element indices/IDs from browser state
  4. Tab IDs are last 4 characters of target_id
  5. Use browser.extract for LLM-based extraction from page markdown
  6. Use browser.evaluate for custom JavaScript operations

Manual Control Pattern (Fallback from browser-use)

🎯 Iterative Control Loop

Use this pattern when browser-use fails or you need precise control:

1. get_browser_state    → See page state, available elements
2. browser.{action}     → Perform action (click, input, navigate...)
3. get_browser_state    → Verify result, plan next step
4. Repeat until complete

This pattern works for any task - form filling, navigation, data extraction, etc. It's the manual alternative to browser-use's autonomous approach.

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.