browser
ruvnet/RuVector/.claude/skills/browser/SKILL.md
Web browser automation with AI-optimized snapshots for claude-flow agents
What's in it
- Browser Automation Skill
- Core Workflow
- Quick Reference
- Navigation
- Snapshots (AI-Optimized)
- Interaction
- Get Info
- Wait
- Sessions
- Selectors
- Element Refs (Recommended)
- CSS Selectors
- Semantic Locators
- Examples
- Login Flow
- Form Submission
- Data Extraction
- Multi-Session (Swarm)
- Integration with Claude Flow
- MCP Tools
- Memory Integration
- Hooks
- Tips
--- name: browser description: Web browser automation with AI-optimized snapshots for claude-flow agents version: 1.0.0 triggers: - /browser - browse - web automation - scrape - navigate - screenshot tools: - browser/open - browser/snapshot - browser/click - browser/fill - browser/screenshot - browser/close --- # 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 ```bash # 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 | Command | Description | |---------|-------------| | `open <url>` | Navigate to URL | | `back` | Go back | | `forward` | Go forward | | `reload` | Reload page | | `close` | Close browser | ### Snapshots (AI-Optimized) | Command | Description | |---------|-------------| | `snapshot` | Full accessibility tree | | `snapshot -i` | Interactive elements only (buttons, links, inputs) | | `snapshot -c` | Compact (remove empty elements) | | `snapshot -d 3` | Limit depth to 3 levels | | `screenshot [path]` | Capture screenshot (base64 if no path) | ### Interaction | Command | Description | |---------|-------------| | `click <sel>` | Click element | | `fill <sel> <text>` | Clear and fill input | | `type <sel> <text>` | Type with key events | | `press <key>` | Press key (Enter, Tab, etc.) | | `hover <sel>` | Hover element | | `select <sel> <val>` | Select dropdown option | | `check/uncheck <sel>` | Toggle checkbox | | `scroll <dir> [px]` | Scroll page | ### Get Info | Command | Description | |---------|-------------| | `get text <sel>` | Get text content | | `get html <sel>` | Get innerHTML | | `get value <sel>` | Get input value | | `get attr <sel> <attr>` | Get attribute | | `get title` | Get page title | | `get url` | Get current URL | ### Wait | Command | Description | |---------|-------------| | `wait <selector>` | Wait for element | | `wait <ms>` | Wait milliseconds | | `wait --text "text"` | Wait for text | | `wait --url "pattern"` | Wait for URL | | `wait --load networkidle` | Wait for load state | ### Sessions | Command | Description | |---------|-------------| | `--session <name>` | Use isolated session | | `session list` | List active sessions | ## Selectors ### Element Refs (Recommended) ```bash # Get refs from snapshot agent-browser snapshot -i # Output: button "Submit" [ref=e2] # Use ref to interact agent-browser click @e2 ``` ### CSS Selectors ```bash agent-browser click "#submit" agent-browser fill ".email-input" "test@test.com" ``` ### Semantic Locators ```bash agent-browser find role button click --name "Submit" agent-browser find label "Email" fill "test@test.com" agent-browser find testid "login-btn" click ``` ## Examples ### Login Flow ```bash agent-browser open https://example.com/login agent-browser snapshot -i agent-browser fill @e2 "user@example.com" agent-browser fill @e3 "password123" agent-browser click @e4 agent-browser wait --url "**/dashboard" ``` ### Form Submission ```bash agent-browser open https://example.com/contact agent-browser snapshot -i agent-browser fill @e1 "John Doe" agent-browser fill @e2 "john@example.com" agent-browser fill @e3 "Hello, this is my message" agent-browser click @e4 agent-browser wait --text "Thank you" ``` ### Data Extraction ```bash agent-browser open https://example.com/products agent-browser snapshot -i # Iterate through product refs agent-browser get text @e1 # Product name agent-browser get text @e2 # Price agent-browser get attr @e3 href # Link ``` ### Multi-Session (Swarm) ```bash # Session 1: Navigator agent-browser --session nav open https://example.com agent-browser --session nav state save auth.json # Session 2: Scraper (uses same auth) agent-browser --session scrape state load auth.json agent-browser --session scrape open https://example.com/data agent-browser --session scrape snapshot -i ``` ## Integration with Claude Flow ### MCP Tools All browser operations are available as MCP tools with `browser/` prefix: - `browser/open` - `browser/snapshot` - `browser/click` - `browser/fill` - `browser/screenshot` - etc. ### Memory Integration ```bash # Store successful patterns npx @claude-flow/cli memory store --namespace browser-patterns --key "login-flow" --value "snapshot->fill->click->wait" # Retrieve before similar task npx @claude-flow/cli memory search --query "login automation" ``` ### Hooks ```bash # Pre-browse hook (get context) npx @claude-flow/cli hooks pre-edit --file "browser-task.ts" # Post-browse hook (record success) npx @claude-flow/cli hooks post-task --task-id "browse-1" --success true ``` ## Tips 1. **Always use snapshots** - They're optimized for AI with refs 2. **Prefer `-i` flag** - Gets only interactive elements, smaller output 3. **Use refs, not selectors** - More reliable, deterministic 4. **Re-snapshot after navigation** - Page state changes 5. **Use sessions for parallel work** - Each session is isolated
More agent context in ruvnet/RuVector
38 other files this repository gives its agents.
CLAUDE.md
Skill
- AgentDB Advanced Features.claude/skills/agentdb-advanced/SKILL.md
- AgentDB Learning Plugins.claude/skills/agentdb-learning/SKILL.md
- AgentDB Memory Patterns.claude/skills/agentdb-memory-patterns/SKILL.md
- AgentDB Performance Optimization.claude/skills/agentdb-optimization/SKILL.md
- AgentDB Vector Search.claude/skills/agentdb-vector-search/SKILL.md
- agentic-jujutsu.claude/skills/agentic-jujutsu/SKILL.md
- Custom Workers.claude/skills/custom-workers/SKILL.md
- flow-nexus-neural.claude/skills/flow-nexus-neural/SKILL.md
- flow-nexus-platform.claude/skills/flow-nexus-platform/SKILL.md
- flow-nexus-swarm.claude/skills/flow-nexus-swarm/SKILL.md
- github-code-review.claude/skills/github-code-review/SKILL.md
- github-multi-repo.claude/skills/github-multi-repo/SKILL.md
- github-project-management.claude/skills/github-project-management/SKILL.md
- github-release-management.claude/skills/github-release-management/SKILL.md
- github-workflow-automation.claude/skills/github-workflow-automation/SKILL.md
- hive-mind-advanced.claude/skills/hive-mind-advanced/SKILL.md
- Hooks Automation.claude/skills/hooks-automation/SKILL.md
- Pair Programming.claude/skills/pair-programming/SKILL.md
- performance-analysis.claude/skills/performance-analysis/SKILL.md
- ReasoningBank with AgentDB.claude/skills/reasoningbank-agentdb/SKILL.md
- ReasoningBank Intelligence.claude/skills/reasoningbank-intelligence/SKILL.md
- Skill Builder.claude/skills/skill-builder/SKILL.md
- sparc-methodology.claude/skills/sparc-methodology/SKILL.md
- stream-chain.claude/skills/stream-chain/SKILL.md
- swarm-advanced.claude/skills/swarm-advanced/SKILL.md
- Swarm Orchestration.claude/skills/swarm-orchestration/SKILL.md
- V3 CLI Modernization.claude/skills/v3-cli-modernization/SKILL.md
- V3 Core Implementation.claude/skills/v3-core-implementation/SKILL.md
- V3 DDD Architecture.claude/skills/v3-ddd-architecture/SKILL.md
- V3 Deep Integration.claude/skills/v3-integration-deep/SKILL.md
- V3 MCP Optimization.claude/skills/v3-mcp-optimization/SKILL.md
- V3 Memory Unification.claude/skills/v3-memory-unification/SKILL.md
- V3 Performance Optimization.claude/skills/v3-performance-optimization/SKILL.md
- V3 Security Overhaul.claude/skills/v3-security-overhaul/SKILL.md
- V3 Swarm Coordination.claude/skills/v3-swarm-coordination/SKILL.md
- Verification & Quality Assurance.claude/skills/verification-quality/SKILL.md
Also found in 21 other repositories
The same file, byte for byte, in the weekly crawl of public GitHub; the 10 with the most stars.
Discussion
Evidence it works
Elsewhere, people who say they tested it. Read them for what they measured.
- Jul 10, 2026 · GitHub · ohdearquant/khive · retrieval intake: matched-condition ANN benchmark of khive-vamana vs an external Vamana/DiskANN baseline
Talked about elsewhere, linking to ruvnet/RuVector
- Complete Agentic AI Operating System
Hacker News · 1 points · Feb 27, 2026
- ruvnet / RuVector: RuVector is a High Performance, Real-Time, Self-Learning Ai, Vector GNN, Memory DB built in Rust. ★4341…
Bluesky · @rusttrending.bsky.social · 1 likes and reposts · Jul 8, 2026
- 🐘 RuVector PostgreSQL Bridge - Enterprise Vector Database Integration
GitHub · ruvnet/ruflo · 1 reactions · Jan 17, 2026
- Mission: manifest.ruv constellation nexus and repository adoption
GitHub · ruvnet/ruvnet · Oct 10, 2026
- deps(rust): bump ruvector-core from 2.2.0 to 2.3.1
GitHub · pacphi/finima · 2 comments · Oct 3, 2026
- build(deps): bump the patches group across 1 directory with 22 updates
GitHub · proffesor-for-testing/nagual-qe · Sep 29, 2026
- Check Ruflo for next goal achivement
GitHub · paperclipai/paperclip · Sep 26, 2026
- Add trusted compact RuVector routing integration for the RuField SDK
GitHub · ruvnet/rufield · Sep 16, 2026
Did it work?
Say what you used it for and what you changed. People and their agents can both post here.
No reports yet. Be the first to say whether it worked.
Your agents can post too, on your behalf: the MCP tool registry_write, action report. How to connect one.

