browser-automation

browser-automation is a skill for Claude Code, Codex from irahardianto/awesome-agv. It costs 39 tokens per session (5,161 once invoked), scanned A, original, MIT.

A browser-control skill built around Playwright, a tool for operating and testing websites in a real browser. It can inspect pages, interact with controls, capture screenshots, and examine browser activity.

In plain words
What is it for?
Use it for end-to-end tests, user-interface reviews, web scraping, screenshot capture, form testing, and browser debugging.
Why use it?
It provides a way to test and inspect web interfaces through the same kinds of actions a user performs, including clicks, typing, uploads, and navigation.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it for end-to-end tests, user-interface reviews, web scraping, screenshot capture, form testing, and browser debugging.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/irahardianto/awesome-agv/browser-automation
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add irahardianto/awesome-agv --skill browser-automation
Clone the repo
git clone --depth 1 https://github.com/irahardianto/awesome-agv

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for browser-automation

README.md
[![agentmods](https://agentmods.dev/badge/skills/irahardianto/awesome-agv/browser-automation/github.svg)](https://agentmods.dev/skills/irahardianto/awesome-agv/browser-automation)
Your own site
<a href="https://agentmods.dev/skills/irahardianto/awesome-agv/browser-automation"><img src="https://agentmods.dev/badge/skills/irahardianto/awesome-agv/browser-automation/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for browser-automation

Your own site · 80×15
<a href="https://agentmods.dev/skills/irahardianto/awesome-agv/browser-automation"><img src="https://agentmods.dev/badge/skills/irahardianto/awesome-agv/browser-automation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,161 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 4 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 39
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 382
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 384
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 411
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00039 $0.05161
Opus 5.5 $0.00016 $0.02064
Sonnet 5.5 $0.00008 $0.01032
Haiku 4.5 $0.00004 $0.00516

Measured 1mo ago against content hash d3704ef6662b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

browser-automation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.agents/skills/browser-automation/SKILL.md · 645 lines

How it starts

The opening of the file, as written. The whole thing — 645 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Browser Automation (Playwright MCP)

Tool Hierarchy

PRIMARY — MCP tools (always prefer):

  • mcp_playwright_browser_snapshot — read page structure, get element refs
  • mcp_playwright_browser_navigate — go to URL
  • mcp_playwright_browser_click — click element
  • mcp_playwright_browser_type — type into element
  • mcp_playwright_browser_fill_form — fill multiple form fields
  • mcp_playwright_browser_select_option — dropdown selection
  • mcp_playwright_browser_hover — hover element
  • mcp_playwright_browser_drag — drag and drop
  • mcp_playwright_browser_drop — drop files/data onto element
  • mcp_playwright_browser_press_key — keyboard input
  • mcp_playwright_browser_evaluate — execute JS on page
  • mcp_playwright_browser_wait_for — wait for text/disappearance/time
  • mcp_playwright_browser_console_messages — read console output
  • mcp_playwright_browser_network_requests — list network activity
  • mcp_playwright_browser_network_request — inspect single request
  • mcp_playwright_browser_file_upload — upload files
  • mcp_playwright_browser_handle_dialog — accept/dismiss dialogs
  • mcp_playwright_browser_tabs — manage tabs
  • mcp_playwright_browser_resize — change viewport
  • mcp_playwright_browser_run_code_unsafe — arbitrary Playwright code (escape hatch)

FALLBACK — CLI via run_command (only when MCP lacks capability):

  • Tracing start/stop
  • Video recording
  • Persistent browser profiles
  • Browser installation (npx playwright install)

NEVER mix MCP and CLI for the same session. One approach per workflow.


Snapshot-First Workflow

Every browser interaction follows this loop:

  1. Snapshot — mcp_playwright_browser_snapshot to understand current state
  2. Act — click/type/navigate using refs from snapshot
  3. Verify — snapshot again to confirm mutation took effect

Rules:

  • ALWAYS snapshot before first interaction on a page
  • Use snapshot element refs (ref="e5") for targeting — not CSS selectors
  • After navigation or state mutation, snapshot again to read new state
  • Use depth param to limit snapshot size for large pages
  • Use target param to scope snapshot to a subtree

Read the full file on GitHub · 645 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 645 lines · 39 tokens per session scan A d3704ef6662b

Subscribe to this mod's changes

browser-automation is a skill published in the GitHub repository irahardianto/awesome-agv (156 stars, last pushed 12d ago), licensed MIT. It adds 39 tokens to every session and 5,161 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.