web-browser

web-browser is a skill for Claude Code, Codex from aretw0/agents-lab. It costs 36 tokens per session (838 once invoked), scanned A, original, MIT.

A browser-control tool for opening pages, clicking, filling in forms, taking screenshots, and running JavaScript in Chrome or Chromium.

In plain words
What is it for?
Use it to navigate websites, operate buttons and forms, inspect changing page state, and capture screenshots.
Why use it?
It handles web tasks that need interaction with the page, including login flows and content that appears only after the page runs.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to navigate websites, operate buttons and forms, inspect changing page state, and capture screenshots.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aretw0/agents-lab/web-browser
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 aretw0/agents-lab --skill web-browser
Clone the repo
git clone --depth 1 https://github.com/aretw0/agents-lab

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 web-browser

README.md
[![agentmods](https://agentmods.dev/badge/skills/aretw0/agents-lab/web-browser/github.svg)](https://agentmods.dev/skills/aretw0/agents-lab/web-browser)
Your own site
<a href="https://agentmods.dev/skills/aretw0/agents-lab/web-browser"><img src="https://agentmods.dev/badge/skills/aretw0/agents-lab/web-browser/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 web-browser

Your own site · 80×15
<a href="https://agentmods.dev/skills/aretw0/agents-lab/web-browser"><img src="https://agentmods.dev/badge/skills/aretw0/agents-lab/web-browser.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 838 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00036 $0.00838
Opus 5.5 $0.00014 $0.00335
Sonnet 5.5 $0.00007 $0.00168
Haiku 4.5 $0.00004 $0.00084

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

Security

Grade A, and why

web-browser scanned grade A with 1 finding 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.

The scan reads SKILL.md. This mod also ships 10 executable files (scripts/cdp.js, scripts/dismiss-cookies.js, scripts/eval.js, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- Do **not** start from `curl`/`wget`/`python requests`/`r.jina.ai` or generic shell scraping.
packages/web-skills/skills/web-browser/SKILL.md · 111 lines

How it starts

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

Web Browser Skill

Browser automation via Chrome DevTools Protocol (CDP). All scripts live in ./scripts/ relative to this skill.

When to Prefer This Skill

Use web-browser for interactive web tasks:

  • open/navigate pages and tabs
  • click buttons/links
  • fill forms and login flows
  • inspect dynamic UI state rendered in-browser

For non-interactive tasks (searching links, extracting page text, fetching docs), prefer web_search / fetch_content instead.

Scoped Hard Trigger Policy

Enforce browser-first (hard-by-scope) when BOTH conditions are present:

  1. Prompt has interactive intent (open, navigate, click, fill, login, submit, tab, form, button), and
  2. Target is a sensitive/challenge-prone domain (e.g. npmjs.com) or the user reports Cloudflare/bot blocking.

When this trigger fires:

  • Start with CDP flow (start.js → nav.js → interaction/eval scripts).
  • Do not start from curl/wget/python requests/r.jina.ai or generic shell scraping.
  • Only fallback after explicit CDP failure evidence (at least 2 failed attempts), and report the fallback reason.

Dependency: @aretw0/web-skills declares ws at the package root. Published installs should not require per-skill setup. When running from this repository source, run pnpm install at the repository root before using the scripts.

Start Chrome

node ./scripts/start.js              # Fresh profile
node ./scripts/start.js --profile    # Copy your real profile (cookies, logins)

Starts Chrome on :9222 with remote debugging enabled.

If Chrome is in a non-standard location:

BROWSER_BIN=/path/to/chrome node ./scripts/start.js
node ./scripts/nav.js https://example.com           # Current tab
node ./scripts/nav.js https://example.com --new     # New tab

Evaluate JavaScript

node ./scripts/eval.js 'document.title'
node ./scripts/eval.js 'document.querySelectorAll("a").length'
node ./scripts/eval.js 'JSON.stringify(
  Array.from(document.querySelectorAll("a"))
    .map(a => ({ text: a.textContent.trim(), href: a.href }))
    .filter(l => l.href.startsWith("https://"))
)'

Read the full file on GitHub · 111 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 · 111 lines · 36 tokens per session scan A dfc0fbc0f93a

Subscribe to this mod's changes

web-browser is a skill published in the GitHub repository aretw0/agents-lab (11 stars, last pushed 3mo ago), licensed MIT. It adds 36 tokens to every session and 838 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

vision-bridge-windows-automation

Drive Windows desktop apps (Win32/WPF/UWP), Electron windows and the browser through the vision-bridge MCP server - read the screen as structured text and click/type by element id. Use when the user asks the agent to operate a Windows GUI app, fill a form in a desktop program, read what is on screen, or automate a…

rusnetru/vision-bridge · 85 tokens

firecrawl

Firecrawl gives AI agents and apps fast, reliable web context with strong search, scraping, and interaction tools. One install command sets up three skill segments: live CLI tools, app-integration build skills, and outcome-focused workflow skills. Route the reader to the right usage path after install.

gaia-research/gaia-skill-tree · 65 tokens

gpt-control

Use when the user asks to get an independent ChatGPT web review, continue a GPT-Control conversation, inspect a model run, or generate or iterate on an image through a configured browser driver. Not for facts the working tree or a local test can answer directly.

wolfiesch/gpt-control · 56 tokens

blocked-page-recovery

Use when a fetch fails: 403/429, paywall, WAF, bot wall.

NousResearch/hermes-agent · 25 tokens

browser-use

Control the user's Chrome through the existing persistent Node REPL and the Qwen Browser SDK.

QwenLM/qwen-code · 21 tokens

computer-use

A guide to building agents that operate graphical interfaces through screenshots, mouse actions, keyboard input, and waits. It explains how to identify interface elements and safely repeat the observe, decide, and act cycle.

bojieli/ai-agent-book · 139 tokens