This is browser automation that actually thinks about token usage. Instead of dumping full DOM trees into context, it gives you accessibility snapshots with element refs like @e1, @e2 that you can click or fill directly. The interactive-only flag cuts out 93% of the noise. Works as MCP tools in claude-flow, so your agent can navigate, scrape, fill forms, whatever. The session system lets you run parallel browser instances if you're doing swarm stuff. Honestly just solid execution on making Playwright usable for AI workflows without burning your context window on HTML soup.

GitHub stars
240
last updated
Jun 11, 2026

Install

$ npx -y skills add spencermarx/open-code-review --skill browser --agent claude-code

Installs into .claude/skills of the current project.

Files

Browser Automation Skill

Web browser automation using agent-browser with AI-optimized snapshots. Reduces context by 93% using element refs (@e1, @e2) instead of full DOM.

Core Workflow

# 1. Navigate to page
agent-browser open <url>

# 2. Get accessibility tree with element refs
agent-browser snapshot -i    # -i = interactive elements only

# 3. Interact using refs from snapshot
agent-browser click @e2
agent-browser fill @e3 "text"

# 4. Re-snapshot after page changes
agent-browser snapshot -i

Quick Reference

Navigation

CommandDescription
open <url>Navigate to URL
backGo back
forwardGo forward
reloadReload page
closeClose browser

Snapshots (AI-Optimized)

CommandDescription
snapshotFull accessibility tree
snapshot -iInteractive elements only (buttons, links, inputs)
snapshot -cCompact (remove empty elements)
snapshot -d 3Limit depth to 3 levels
screenshot [path]Capture screenshot (base64 if no path)

Sponsors

Details

Repository
github.com/spencermarx/open-code-review
Categories
Git & Pull Requests, Code Review & Quality, AI & Agent Building, Automation & Workflows
License
Apache-2.0
First seen
Jun 11, 2026

More from spencermarx/open-code-review

All 31
1spencermarx avatarPair Programmingspencermarx/open-code-reviewAI-assisted pair programming with multiple modes (driver/navigator/switch), real-time verification, quality monitoring, and comprehensive testing. Supports TDD,0skills.sh installs
2spencermarx avatarReasoningBank with AgentDBspencermarx/open-code-reviewImplement ReasoningBank adaptive learning with AgentDB's 150x faster vector database. Includes trajectory tracking, verdict judgment, memory distillation, and p0skills.sh installs
3spencermarx avatarReasoningBank Intelligencespencermarx/open-code-reviewImplement adaptive learning with ReasoningBank for pattern recognition, strategy optimization, and continuous improvement. Use when building self-learning agent0skills.sh installs
4spencermarx avatarSkill Builderspencermarx/open-code-reviewCreate new Claude Code Skills with proper YAML frontmatter, progressive disclosure structure, and complete directory organization. Use when you need to build cu0skills.sh installs
5spencermarx avatarsparc-methodologyspencermarx/open-code-reviewSPARC (Specification, Pseudocode, Architecture, Refinement, Completion) comprehensive development methodology with multi-agent orchestration0skills.sh installs
6spencermarx avatarstream-chainspencermarx/open-code-reviewStream-JSON chaining for multi-agent pipelines, data transformation, and sequential workflows0skills.sh installs