rugged-gemini: Skill for Gemini CLI

.gemini/skills/browser-automation/SKILL.md

browser-automation is a skill for Gemini CLI from irahardianto/rugged-gemini. It costs 39 tokens per session (4,903 once invoked), scanned A, a copy of browser-automation, MIT.

A browser-control toolkit for opening websites, reading their pages, using controls, uploading files, and capturing screenshots with Playwright.

In plain words
What is it for?
It helps run end-to-end tests, review interfaces, collect information from websites, take screenshots, and complete browser-based tasks.
Why use it?
It removes the need to perform browser checks and repetitive web interactions by hand. It can also help inspect what a page shows and how it behaves.

Skill for Gemini CLI

Written for Gemini CLI: installed under .gemini/.

This is irahardianto/rugged-gemini's own configuration. It tells Gemini CLI how to work on rugged-gemini itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything rugged-gemini configures →

Reuse

Borrowing it

Nothing to install: this file belongs to irahardianto/rugged-gemini. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/irahardianto/rugged-gemini/main/.gemini/skills/browser-automation/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/irahardianto/rugged-gemini

Made for: Gemini CLI.

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/rugged-gemini/browser-automation/github.svg)](https://agentmods.dev/skills/irahardianto/rugged-gemini/browser-automation)
Your own site
<a href="https://agentmods.dev/skills/irahardianto/rugged-gemini/browser-automation"><img src="https://agentmods.dev/badge/skills/irahardianto/rugged-gemini/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/rugged-gemini/browser-automation"><img src="https://agentmods.dev/badge/skills/irahardianto/rugged-gemini/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 4,903 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.
Origin 97% copy Near-identical to another mod 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.04903
Opus 5 $0.00019 $0.02452
Sonnet 5 $0.00008 $0.00981
Haiku 4.5 $0.00004 $0.00490

Measured 10d ago against content hash 6a439a0d31a6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, 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 10d 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

This is a copy

97% identical to browser-automation — 35 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.gemini/skills/browser-automation/SKILL.md · 610 lines

How it starts

The opening of the file, as written. The whole thing — 610 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. Snapshotmcp_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 · 610 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. 10d ago First seen · 610 lines · 39 tokens per session scan A 6a439a0d31a6

Subscribe to this mod's changes

browser-automation is a skill published in the GitHub repository irahardianto/rugged-gemini (5 stars, last pushed 4mo ago), licensed MIT. It adds 39 tokens to every session and 4,903 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 97% identical to browser-automation, differing in 35 lines, and is treated as a copy.

Related

Other skills, from other repositories

browse

Drive a real browser through Aside: open a page, read it, click through a flow, take screenshots, check console errors. (gstack).

garrytan/gstack · 32 tokens

playwright-cli

A command-line tool for controlling Chromium, Firefox, and WebKit browsers, including navigation, page interaction, screenshots, PDFs, and recorded actions.

UnicomAI/wanwu · 76 tokens

webapp-testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

anthropics/skills · 35 tokens

create-verification-skill

Create a repo-local verification skill and exhaustive feature map for driving a real app through its UI, CLI, or API. Use for "create a verification skill", "make a verify skill for this repo", or "document how agents can verify this app".

get-bb/bb · 57 tokens

browser-qa

A browser-based quality check for deployed web pages and user flows. It uses browser automation to test rendering, navigation, forms, interactions, responsive behaviour, and accessibility-related issues.

hashgraph-online/awesome-codex-plugins · 58 tokens

test-electron-app

Drive the real running PostHog Electron app (live tRPC, workspace-server, real data) over CDP with agent-browser. Connect to the running app on port 9222, test desktop changes against a local Django stack, snapshot the accessibility tree, inspect network requests, and screenshot only when explicitly asked. Use when…

PostHog/posthog-foss · 112 tokens