skills/dev-utils-skills/agent-browser/SKILL.md
Automates browser interactions via CLI using agent-browser by Vercel Labs. Covers navigation, clicking, form filling, snapshots, refs-based selectors, agent mode with JSON output, session management, and CDP integration. Use when the user needs to automate web browsing, scrape pages, fill forms, or integrate browser automation into AI agent workflows.
npx skillsauth add partme-ai/full-stack-skills agent-browserInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill whenever the user wants to:
This skill is organized to match the agent-browser official documentation structure (https://github.com/vercel-labs/agent-browser/blob/main/README.md). When working with agent-browser:
# 1. Install
npm install -g @anthropic-ai/agent-browser
# 2. Open a page and take a snapshot to get element refs
agent-browser open "https://example.com"
agent-browser snapshot
# Output includes refs like @e1, @e2, @e3 for each element
# 3. Click an element by ref
agent-browser click @e3
# 4. Fill a form field
agent-browser fill @e5 "[email protected]"
# 5. Agent mode (JSON output for programmatic use)
agent-browser snapshot --json
Install agent-browser:
examples/getting-started/installation.md for installation instructionsQuick Start:
examples/quick-start/quick-start.md for basic workflow examplesLearn core commands:
examples/commands/basic-commands.md for basic commands (open, click, fill, etc.)examples/commands/advanced-commands.md for advanced commands (snapshot, eval, etc.)examples/commands/get-info/ for information retrieval commandsexamples/commands/check-state/ for state checking commandsexamples/commands/find-elements/ for semantic locator commandsexamples/commands/wait/ for wait commandsexamples/commands/mouse-control/ for mouse control commandsexamples/commands/browser-settings/ for browser configurationexamples/commands/cookies-storage/ for cookies and storage managementexamples/commands/network/ for network interceptionexamples/commands/tabs-windows/ for tab and window managementexamples/commands/frames/ for iframe handlingexamples/commands/dialogs/ for dialog handlingexamples/commands/debug/ for debugging commandsexamples/commands/navigation/ for navigation commandsexamples/commands/setup/ for setup commandsUnderstand selectors:
examples/selectors/refs.md for refs-based selection (@e1, @e2, etc.)examples/selectors/traditional-selectors.md for CSS, XPath, and semantic locatorsUse agent mode:
examples/agent-mode/introduction.md for agent mode overviewexamples/agent-mode/optimal-workflow.md for optimal AI workflowexamples/agent-mode/integration.md for integrating with AI agentsAdvanced features:
examples/advanced/sessions.md for session managementexamples/advanced/headed-mode.md for debugging with visible browserexamples/advanced/authenticated-sessions.md for authentication via headersexamples/advanced/custom-executable.md for custom browser executableexamples/advanced/cdp-mode.md for Chrome DevTools Protocol integrationexamples/advanced/streaming.md for browser viewport streamingexamples/advanced/architecture.md for architecture overviewexamples/advanced/platforms.md for platform supportexamples/advanced/usage-with-agents.md for AI agent integration patternsConfigure options:
examples/options/global-options.md for global CLI optionsexamples/options/snapshot-options.md for snapshot-specific optionsexamples/options/session-options.md for session management optionsReference API documentation when needed:
api/commands.md - Complete command referenceapi/selectors.md - Selector referenceapi/options.md - Options referenceUse templates for quick start:
templates/basic-automation.md - Basic automation workflowtemplates/ai-agent-workflow.md - AI agent workflow templateThis skill includes detailed examples organized to match the official documentation structure. All examples are in the examples/ directory (see mapping above).
To use examples:
To use templates:
templates/ directory for common scaffoldingapi/commands.md - Complete command reference with syntax and examplesapi/selectors.md - Selector types and usage referenceapi/options.md - All options reference--json flag for machine-readable output in agent mode--session to maintain state across commands-i flag for interactive snapshot selection--headed for debugging, headless for production--cdp for Chrome DevTools Protocol integrationAGENT_BROWSER_STREAM_PORT for live browser preview--headers for authentication without login flows--executable-path for serverless deployments or custom browsers-i, -c, -d, -s options to optimize snapshot outputagent-browser, CLI browser automation, AI agents, browser automation CLI, refs, snapshot, agent mode, semantic locators, browser automation tool, command-line browser, AI agent browser, deterministic selectors, accessibility tree, browser commands, web automation CLI, sessions, headed mode, authenticated sessions, CDP mode, streaming, Chrome DevTools Protocol, Playwright, browser automation for AI
development
Provides per-component and per-API examples with cross-platform compatibility details for uni-app, covering built-in components, uni-ui components, and APIs (network, storage, device, UI, navigation, media). Use when the user needs official uni-app components or APIs, wants per-component examples with doc links, or needs platform compatibility checks.
tools
Creates new uni-app projects via the official CLI or HBuilderX with Vue 2/Vue 3 template selection, manifest.json and pages.json configuration, and directory structure setup. Use when the user wants to scaffold a new uni-app project, initialize project files with a single command, or set up the development environment.
tools
Browses, installs, configures, and manages plugins from the uni-app plugin market (ext.dcloud.net.cn) including component plugins, API plugins, and template plugins with dependency handling. Use when the user needs to find and install uni-app plugins, configure plugin settings, manage plugin dependencies, or integrate third-party components.
tools
Develops native Android and iOS plugins for uni-app including module creation, JavaScript-to-native communication, and plugin packaging for distribution. Use when the user needs to build custom native modules, extend uni-app with native capabilities (camera, Bluetooth, sensors), or create publishable native plugins.