majiayu000/claude-skill-registry-agent-browser-avibebuilder-claude-prime-agent-browser
Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction.
This is a copy. The original lives at avibebuilder/agent-browser.
npx skills add https://github.com/majiayu000/claude-skill-registry --skill agent-browser
Use this skill to drive websites through the agent-browser CLI. Keep the main loop tight: inspect the page, act with refs, verify the result, and only pull deeper docs when the task actually needs them.
Prefer agent-browser directly for speed. Use npx agent-browser only if it is not installed globally.
For most tasks, follow this loop:
agent-browser open https://example.com/form
agent-browser wait --load networkidle
agent-browser snapshot -i
# Output: @e1 [input type="email"], @e2 [input type="password"], @e3 [button] "Submit"
agent-browser fill @e1 "[email protected]"
agent-browser fill @e2 "password123"
agent-browser click @e3
agent-browser wait --load networkidle
agent-browser snapshot -i
Chain commands with && only when you do not need to inspect intermediate output. Good: open && wait && screenshot. Bad: snapshot && click when you still need to read the refs from the snapshot.
Read only the reference that matches the task:
| Need | Read |
| --- | --- |
| Full command or flag lookup | references/commands.md |
| Ref lifecycle, stale refs, snapshot strategy | references/snapshot-refs.md |
| Login flows, OAuth, 2FA, saved auth state | references/authentication.md |
| Parallel sessions, state reuse, cleanup | references/session-management.md |
| Recording, profiling, local files, config, iOS, security | references/advanced-usage.md |
| Proxy setup | references/proxy-support.md |
| Recording workflows | references/video-recording.md |
| Profiling workflows | references/profiling.md |
Use these first; go to the command reference only when you need something more specific.
agent-browser open <url>
agent-browser wait --load networkidle
agent-browser snapshot -i
agent-browser click @e1
agent-browser fill @e2 "text"
agent-browser select @e3 "option"
agent-browser get url
agent-browser get text @e1
agent-browser diff snapshot
agent-browser screenshot --annotate
agent-browser close
The main value of agent-browser is that snapshots produce compact refs like @e1, @e2, @e3. Those refs are cheaper and more reliable than repeatedly reasoning from raw HTML or long selectors.
Treat refs as short-lived. Re-snapshot after anything that can change the page state, especially:
If a ref fails or the page looks different from what you expected, your next move is usually agent-browser snapshot -i, not another blind click.
For the full lifecycle and troubleshooting rules, read references/snapshot-refs.md.
Default order:
snapshot -i for structure and interactive targetsget text, get url, or get title for precise verificationdiff snapshot when you need to confirm something changedscreenshot --annotate when layout, icon-only controls, canvas, or visual context matterseval only when refs are unavailable or the task truly needs themIf you need semantic locators, JavaScript evaluation, local file access, annotated screenshots, or config details, jump to references/advanced-usage.md and references/commands.md.
Before filling any credential, classify the auth flow.
After either path succeeds, offer to save reusable state if it would help next time. Do not auto-save credentials or session state without asking.
Use references/authentication.md for the exact decision rules and storage patterns.
Use named sessions when you are:
When multiple agents may browse concurrently, use a named session from the start and close it explicitly when finished. Prefer semantic names over generic ones.
For session reuse and cleanup patterns, read references/session-management.md.
If the page is untrusted or may contain hostile content, enable content boundaries before inspecting rich output. If the task is scoped to a known target, consider an allowlist for trusted domains.
The main point is to keep page content clearly separated from tool output and to narrow where the browser is allowed to go when the task permits it.
See references/advanced-usage.md for content boundaries, domain allowlists, action policy, and output limits.
eval: use the safer patterns from the advanced usage referenceclose the browser session after finishingFor worked examples and reusable flows, use the scripts in templates/ and the deeper references instead of expanding the hub.
Take majiayu000/claude-skill-registry-agent-browser-avibebuilder-claude-prime-agent-browser from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.
The instructions reference npx.
Without those the skill loads but fails at the first command.