ag-agent-browser
AI-optimized browser automation CLI with context-efficient snapshots.
Skill by ngxccc
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/ngxccc-ag-agent-browser
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: testing, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Node.js package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/ag-agent-browser
What's inside
- Skill name
ag-agent-browser- Description
- AI-optimized browser automation CLI with context-efficient snapshots. Use for long autonomous sessions, self-verifying workflows, video recording, and cloud browser testing (Browserbase).
- License
- MIT
- Instructions
- 317 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (35)
- SKILL.md
- agent-browser-vs-chrome-devtools.md · references/
- browserbase-cloud-setup.md · references/
- cdp-domains.md · references/
- performance-guide.md · references/
- puppeteer-reference.md · references/
- .gitignore · scripts/
- README.md · scripts/
- error-handling.test.js · scripts/__tests__/
- selector.test.js · scripts/__tests__/
- aria-snapshot.js · scripts/
- attach-listener.js · scripts/
- click.js · scripts/
- connect-chrome.js · scripts/
- console.js · scripts/
- evaluate.js · scripts/
- fill.js · scripts/
- import-cookies.js · scripts/
- inject-auth.js · scripts/
- inspect-chat-page.js · scripts/
- install-deps.sh · scripts/
- install.sh · scripts/
- browser.js · scripts/lib/
- selector.js · scripts/lib/
- navigate.js · scripts/
- network.js · scripts/
- package-lock.json · scripts/
- package.json · scripts/
- performance.js · scripts/
- reload-and-listen.js · scripts/
- screenshot.js · scripts/
- select-ref.js · scripts/
- snapshot.js · scripts/
- ws-debug.js · scripts/
- ws-full-debug.js · scripts/
SKILL.md (first lines)
# agent-browser Skill Browser automation CLI designed for AI agents. Uses "snapshot + refs" paradigm for 93% less context than Playwright MCP. ## How to Use ### Quick Start ```bash # Install globally npm install -g agent-browser # Download Chromium (one-time) agent-browser install # Linux: include system deps agent-browser install --with-deps # Verify agent-browser --version ``` ## Core Workflow The 4-step pattern for all browser automation: ```bash # 1. Navigate agent-browser open https://example.com # 2. Snapshot (get interactive elements with refs) agent-browser snapshot -i # Output: button "Sign In" @e1, textbox "Email" @e2, ... # 3. Interact using refs agent-browser fill @e2 "user@example.com" agent-browser click @e1 # 4. Re-snapshot after page changes agent-browser snapshot -i ``` ## Project-Specific Setup For project-specific connection patterns, logged-in session reuse through `chrome-debug`, and when to use `agent-browser` vs `chrome-devtools` vs direct non-browser verification, see the project's browser-automation testing notes in the consuming repo, if present. This skill file stays a generic tool reference only and should not redefine the project's broader testing policy. --- ## When to Apply | Use agent-browser | Use chrome-devtools | | ----------------------------- | ------------------------------- | | Long autonomous AI sessions | Quick one-off screenshots | | Context-constrained workflows | Custom Puppeteer scripts needed | | Video recording for debugging | WebSocket full frame debugging | | Cloud browsers (Browserbase) | Existing workflow integration | | Multi-tab handling | Need Sharp auto-compression | | Self-verifying build loops | Session with auth injection | **Token efficiency:** ~280 chars/snapshot vs 8K+ for Playwright MCP. ## Command Reference ### Navigation ```bash agent-browser open <url> # Navigate to URL agent-browser back # Go back agent-browser forward # Go forward agent-browser reload # Reload page agent-browser close # Close browser ``` ### Analysis (Snapshot) ```bash agent-browser snapshot # Full accessibility tree agent-browser snapshot -i # Interactive elements only (recommended) agent-browser snapshot -c # Compact output agent-browser snapshot -d 3 # Limit depth agent-browser snapshot -s "nav" # Scope to CSS selector ``` ### Interactions (use @refs from snapshot) ```bash agent-browser click @e1 # Click element agent-browser dblclick @e1 # Double-click agent-browser fill @e2 "text" # Clear and fill input agent-browser type @e2 "text" # Type without clearing agent-browser press Enter # Press key agent-browser hover @e1 # Hover over element agent-browser check @e3 # Check checkbox agent-browser uncheck @e3 # Uncheck checkbox agent-browser select @e4 "opt" # Select dropdown option agent-browser scroll @e1 # Scroll element into view agent-browser scroll down 500 # Scroll page by pixels agent-browser drag @e1 @e2 # Drag from e1 to e2 agent-browser upload @e5 file.pdf # Upload file ``` ### Information Retrieval ```bash agent-browser get text @e1 # Get text content agent-browser get html @e1 # Get HTML agent-browser get value @e2 # Get input value agent-browser get attr @e1 href # Get attribute agent-browser get title # Page title agent-browser get url # Current URL agent-browser get count "li" # Count elements agent-browser get box @e1 # Bounding box ``` ### State Checks ```bash agent-browser is visible @e1 # Check visibility agent-browser is enabled @e1 # Check if enabled
From ngxccc/agent-skills-kit, MIT.
More from ngxccc/agent-skills-kit
- 0.529score
ag-feasibility-test
ngxccc
Use when a SPEC, INNOVATE, or VALIDATE (Layer 2) approach hinges on an unverified runtime/library/external mechanism: run a probe from the 8-family taxonomy…
SkillBFreshness: BClaude Code +9 - 0.529score
ag-generate-context
ngxccc
Generate or update the project's authoritative repository context at process/context/all-context.md.
SkillBFreshness: BClaude Code +9 - 0.529score
ag-generate-plan
ngxccc
Create or update implementation plans in the repo's SIMPLE, COMPLEX, or PHASE PROGRAM format.
SkillBFreshness: BClaude Code +9 - 0.529score
ag-docs
ngxccc
Trigger keywords: docs, README, document codebase, ADR, architectural decision, decision record, design doc, architecture record, RFC, request for comments…
SkillBFreshness: BClaude Code +9 - 0.529score
ag-audit-plans
ngxccc
Audit active project plan files for staleness, completion, and routing truth.
SkillBFreshness: BClaude Code +9 - 0.529score
ag-generate-spec
ngxccc
Create or update a product-discovery SPEC (requirements doc) for user review.
SkillBFreshness: BClaude Code +9 - 0.529score
ag-audit-context
ngxccc
Audit project context routing, shared-skill discoverability, and Claude/Codex wiring.
SkillBFreshness: BClaude Code +9 - 0.529score
ag-brainstorming
ngxccc
Use when starting creative work, building components, or modifying behavior.
SkillBFreshness: BClaude Code +9 - 0.528score
ag-audit-ag
ngxccc
Use when auditing agent harness health, Claude/Codex agent parity, skill registry consistency, and protocol wiring.
SkillBFreshness: BClaude Code +9 - 0.526score
ag-generate-closeout
ngxccc
Generate the post-EXECUTE closeout packet for a plan or phase.
SkillBFreshness: BClaude Code +9 - 0.526score
ag-autoresearch
ngxccc
Loop: find gaps → fix → repeat until agents find no gaps or a metric goal is hit.
SkillBFreshness: BClaude Code +9 - 0.526score
ag-code-interrogation
ngxccc
Socratic Code Interrogation skill for conducting deep 5-Layer Cognitive Stack Q&A on AI-generated code, verifying developer mental models, and enforcing…
SkillBFreshness: BClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Aug 2, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/ngxccc/agent-skills-kit
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from ngxccc
- 0.570score
git-flow
ngxccc
Shape branches, slice atomic commits, create pull requests via the 3-Tier PR Matrix, or create sub-issues.
SkillAFreshness: AClaude Code +9 - 0.544score
domain-modeling
ngxccc
Build and sharpen a project's domain model.
SkillAFreshness: AClaude Code +9 - 0.544score
diagnosing-bugs
ngxccc
Diagnosis loop for hard bugs and performance regressions.
SkillAFreshness: AClaude Code +9 - 0.544score
codebase-design
ngxccc
Shared vocabulary for designing deep modules.
SkillAFreshness: AClaude Code +9 - 0.544score
tdd
ngxccc
Test-driven development.
SkillAFreshness: AClaude Code +9 - 0.541score
improve-codebase-architecture
ngxccc
Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.
SkillAFreshness: AClaude Code +9
Cite this page
ag-agent-browser skill. Agent Mart. https://agentmart.dev/skills/ngxccc-ag-agent-browser (last updated 2026-10-24)