richin13/dotfiles/agent-browser

Claude Code and agent skill by richin13/dotfiles

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

This skill should be used when the user asks to "open a browser", "navigate to a URL", "test the UI", "check a page", "browse a website", "take a screenshot", "fill a form", "click a button", or any browser automation task. Also triggered by CLAUDE.md directives like "Use 'agent-browser' when navigating".

Install

npx vskill@latest install richin13/dotfiles/agent-browser

SKILL.md

The same SKILL.md was published earlier as richin13/dotfiles/agent-browser.

Agent Browser

Browser automation CLI for AI agents. Uses Chrome/Chromium via CDP.

Session Strategy

Derive a session name from the current working directory basename to automatically persist and reuse browser state (cookies, localStorage) across invocations:

bash
agent-browser --session-name "$(basename "$PWD")" open <url>

This avoids re-authenticating on every interaction. The session auto-saves on close and auto-restores on next open.

When a fresh session is needed (e.g., testing unauthenticated flows, clearing corrupted state):

bash
agent-browser --session-name "$(basename "$PWD")-fresh" open <url>

Core Loop

Every browser interaction follows this pattern:

  1. Open a URL (reuses existing session)
  2. Snapshot to discover interactive elements and their @ref handles
  3. Interact (click, fill, select)
  4. Snapshot again after any navigation or DOM change
bash
agent-browser --session-name "$(basename "$PWD")" open https://example.com
agent-browser snapshot -i
agent-browser fill @e1 "user@example.com"
agent-browser click @e3
agent-browser snapshot -i

Batching

Use batch for 2+ commands that don't need intermediate output:

bash
agent-browser batch "fill @e1 \"email\"" "fill @e2 \"pass\"" "click @e3" "wait 2000"
agent-browser batch --bail "open https://example.com" "click @e1" "screenshot"

Run commands separately only when you need to read output before deciding the next step.

Snapshots and Screenshots

bash
agent-browser snapshot -i # interactive elements + @refs
agent-browser snapshot -i -s "#main" # scope to CSS selector
agent-browser snapshot -i --urls # include href URLs
agent-browser screenshot # save to temp dir
agent-browser screenshot /tmp/page.png # save to specific path
agent-browser screenshot --full # full page
agent-browser screenshot --annotate # numbered labels on elements

Annotated screenshots show [N] labels mapped to @eN refs. Use when elements are unlabeled icons or visual-only.

Interacting with Elements

bash
agent-browser fill @e1 "text" # fill input
agent-browser click @e3 # click element
agent-browser get text @e1 # read text content
agent-browser get value @e1 # read input value
agent-browser get attr @e1 href # read attribute

Semantic Locators (when refs are unavailable)

bash
agent-browser find role button click --name "Submit"
agent-browser find text "Sign In" click
agent-browser find label "Email" fill "user@test.com"
agent-browser find placeholder "Search" type "query"
agent-browser find testid "submit-btn" click

Waiting

bash
agent-browser wait 2000 # fixed delay (ms)
agent-browser wait "#spinner" --state hidden # element disappears
agent-browser wait @e1 # element appears
agent-browser wait --text "Results loaded" # text appears
agent-browser wait --url "**/dashboard" # URL pattern

Avoid wait --load networkidle as it hangs on sites with persistent websockets.

Closing the Session

bash
agent-browser close

State auto-saves when using --session-name. Next open with the same session name restores it.

Additional Resources

Reference Files

For advanced features (network mocking, viewport emulation, debugging, multiple sessions, JS eval, diffing, video recording):

  • `references/advanced-features.md` - Complete command reference for all advanced capabilities

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/richin13/dotfiles/agent-browser/badge)](https://verified-skill.com/skills/richin13/dotfiles/agent-browser)

Something wrong with this skill or its page? Tell us.