browser-edge-cases

browser-edge-cases is a skill for Claude Code from aden-hive/hive. It costs 40 tokens per session (1,655 once invoked), scanned A, original, Apache-2.0.

A troubleshooting procedure for browser automation failures on complex websites, including single-page apps and sites using Shadow DOM. Browser automation means controlling a website with software.

In plain words
What is it for?
Use it to reproduce and isolate automation problems, test the browser on a simple site, and investigate failures on sites such as LinkedIn or Twitter/X.
Why use it?
It helps determine whether a failed click, scroll, typing action, page load, or snapshot is caused by the browser tool or by the website.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to reproduce and isolate automation problems, test the browser on a simple site, and investigate failures on sites such as LinkedIn or Twitter/X.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aden-hive/hive/browser-edge-cases
About the project

OpenHive is a runtime for groups of specialized AI agents that collaborate on long-running business processes. A persistent lead agent, called the Queen, creates and coordinates worker agents while the system manages state, recovery, observability, costs, and human oversight. The catalogue entries provide agent skills, instructions, and integrations for working with this harness.

aden-hive/hive · 11,021 stars · on GitHub

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 aden-hive/hive --skill browser-edge-cases
Clone the repo
git clone --depth 1 https://github.com/aden-hive/hive

Made for: Claude Code.

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-edge-cases

README.md
[![agentmods](https://agentmods.dev/badge/skills/aden-hive/hive/browser-edge-cases.svg)](https://agentmods.dev/skills/aden-hive/hive/browser-edge-cases)
Your own site
<a href="https://agentmods.dev/skills/aden-hive/hive/browser-edge-cases"><img src="https://agentmods.dev/badge/skills/aden-hive/hive/browser-edge-cases.svg" alt="Measured on agentmods" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,655 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 pass 7 Sept 2026
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.00040 $0.01655
Opus 5 $0.00020 $0.00827
Sonnet 5 $0.00008 $0.00331
Haiku 4.5 $0.00004 $0.00166

Measured 8d ago against content hash 1171699962a0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

browser-edge-cases 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 8d ago.

The scan reads SKILL.md. This mod also ships 10 executable files (scripts/test_02_twitter_scroll.py, scripts/test_03_modal_scroll.py, scripts/test_04_element_covered.py, …), 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.

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.

.claude/skills/browser-edge-cases/SKILL.md · 242 lines

How it starts

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

Browser Tool Edge Cases

Standard Operating Procedure for debugging and fixing browser automation failures on complex websites.

When to Use This Skill

  • browser_interact(action="scroll") succeeds but page doesn't move
  • browser_interact(action="left_click") succeeds but no action triggered
  • browser_interact(action="type") text disappears or doesn't work
  • browser_snapshot hangs or returns stale content
  • browser_navigate loads wrong content

SOP: Debugging Browser Tool Failures

Phase 1: Reproduce & Isolate

1. Create minimal test case demonstrating failure
2. Test against simple site (example.com) to verify tool works
3. Test against problematic site to confirm issue

Quick isolation test:

# Test 1: Does the tool work at all?
await browser_navigate(tab_id, "https://example.com")
result = await browser_interact(action="scroll", tab_id=tab_id, scroll_direction="down", scroll_amount=100)
# Should work on simple sites

# Test 2: Does it fail on the problematic site?
await browser_navigate(tab_id, "https://linkedin.com/feed")
result = await browser_interact(action="scroll", tab_id=tab_id, scroll_direction="down", scroll_amount=100)
# If this fails but example.com works → site-specific edge case

Phase 2: Analyze Root Cause

Step 2a: Check console for errors

console = await browser_console(tab_id)
# Look for: CSP violations, React errors, JavaScript exceptions

Step 2b: Inspect DOM structure

html = await browser_html(tab_id)
snapshot = await browser_snapshot(tab_id)
# Look for:
# - Nested scrollable divs (overflow: scroll/auto)
# - Shadow DOM roots
# - iframes
# - Custom widgets

Step 2c: Identify the pattern

Symptom Likely Cause Check
Scroll doesn't move Nested scroll container Look for overflow: scroll divs
Click no effect Element covered Check getBoundingClientRect vs viewport
Type clears Autocomplete/React Check for event listeners on input; try a type action with no selector
Snapshot hangs Huge DOM Check node count in snapshot
Snapshot stale SPA hydration Wait after navigation

Read the full file on GitHub · 242 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. 8d ago First seen · 242 lines · 40 tokens per session scan A 1171699962a0

Subscribe to this mod's changes

browser-edge-cases is a skill published in the GitHub repository aden-hive/hive (11,021 stars, last pushed yesterday), licensed Apache-2.0. It adds 40 tokens to every session and 1,655 once invoked, about $0.0002 per session on Opus 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.

Related

Other skills, from other repositories

agent-browser

Headless browser automation CLI. Open, browse, interact with, and screenshot web pages. Use when: opening websites, browser-based login, web app testing, taking screenshots, UI verification.

xuiltul/animaworks · 41 tokens

browser-debugging

Chrome DevTools MCP ile browser debugging. Console, network, performance, DOM analizi.

vibeeval/vibecosystem · 22 tokens

browser-doctor

Read-only health check on browser-control setup. Verifies browser binary, Playwright MCP Bridge extension presence, token file mode/contents, AIWG MCP registration, provider config injection, and optional workspace allow-list. Outputs pass/fail per check with remediation commands.

jmagly/aiwg · 56 tokens

shepherd-triage

Launch parallel agents to check whether old bugs still reproduce on the live site, turning a stale backlog into a prioritized verified list. Use when a bug backlog needs cleaning without reading code.

mshadmanrahman/pm-pilot · 42 tokens

playwright

Use when the task requires automating a real browser from the terminal (navigation, form filling, snapshots, screenshots, data extraction, UI-flow debugging) via playwright-cli or the bundled wrapper script.

netease-youdao/LobsterAI · 45 tokens

win-computer-use

Drive a live Windows machine through the win-computer-use MCP server. Use when you need to automate a Windows desktop UI - move the mouse, click, type, take screenshots, open or close apps, run OCR, manage windows, read or write files, record the screen, or play back macros. Covers the virtual labeled cursor…

JNX03/WindownComputerUse · 123 tokens