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 teachingai/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
testing
Creates museum-quality visual art as .png or .pdf by first generating a design philosophy manifesto, then expressing it on canvas with precise composition, color palettes, and typography. Use when the user asks to create a poster, art piece, visual design, or static creative piece. Outputs original designs using design-forward principles.
development
Applies Anthropic brand colors (dark #141413, orange #d97757, blue #6a9bcc, green #788c5d), Poppins headings, and Lora body text to artifacts such as presentations, documents, or visuals. Use when the user needs Anthropic brand styling, brand color application, corporate typography, or visual formatting following Anthropic design standards.
development
Creates gallery-quality algorithmic art using p5.js with seeded randomness, interactive parameter controls, and seed navigation, outputting a single self-contained HTML artifact with Anthropic branding. Use when the user requests generative art, algorithmic art, flow fields, particle systems, or code-based visual art using p5.js.
development
Guides creation of UI/UX designs, interactive prototypes, reusable components, and design specs in Adobe XD. Use when the user asks about Adobe XD artboards, prototype links, repeat grids, component states, design tokens export, or developer handoff.