Agent Skillsruvnet/RuView › browser

browser

GitHub

提供AI代理的Web浏览器自动化能力,通过优化快照减少上下文消耗。支持页面导航、元素交互、截图及多种定位策略,适用于需要模拟用户操作网页的场景。

.claude/skills/browser/SKILL.md ruvnet/RuView

Trigger Scenarios

需要自动化浏览网页 执行表单填写或提交 从网页获取结构化数据 模拟用户登录流程

Install

npx skills add ruvnet/RuView --skill browser -g -y
More Options

Non-standard path

npx skills add https://github.com/ruvnet/RuView/tree/main/.claude/skills/browser -g -y

Use without installing

npx skills use ruvnet/RuView@browser

指定 Agent (Claude Code)

npx skills add ruvnet/RuView --skill browser -a claude-code -g -y

安装 repo 全部 skill

npx skills add ruvnet/RuView --all -g -y

预览 repo 内 skill

npx skills add ruvnet/RuView --list

SKILL.md

Frontmatter
{
    "name": "browser",
    "tools": [
        "browser\/open",
        "browser\/snapshot",
        "browser\/click",
        "browser\/fill",
        "browser\/screenshot",
        "browser\/close"
    ],
    "version": "1.0.0",
    "triggers": [
        "\/browser",
        "browse",
        "web automation",
        "scrape",
        "navigate",
        "screenshot"
    ],
    "description": "Web browser automation with AI-optimized snapshots for claude-flow agents"
}

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

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)

# Get refs from snapshot
agent-browser snapshot -i
# Output: button "Submit" [ref=e2]

# Use ref to interact
agent-browser click @e2

CSS Selectors

agent-browser click "#submit"
agent-browser fill ".email-input" "test@test.com"

Semantic Locators

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

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

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

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)

# 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

# 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

# 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

Version History

  • a3b6e1d Current 2026-08-20 13:10

Same Skill Collection

.claude/skills/agentdb-advanced/SKILL.md
.claude/skills/agentdb-learning/SKILL.md
.claude/skills/agentdb-memory-patterns/SKILL.md
.claude/skills/agentdb-optimization/SKILL.md
.claude/skills/agentdb-vector-search/SKILL.md
.claude/skills/github-code-review/SKILL.md
.claude/skills/github-multi-repo/SKILL.md
.claude/skills/github-project-management/SKILL.md
.claude/skills/github-release-management/SKILL.md
.claude/skills/github-workflow-automation/SKILL.md
.claude/skills/hooks-automation/SKILL.md
.claude/skills/pair-programming/SKILL.md
.claude/skills/reasoningbank-agentdb/SKILL.md
.claude/skills/reasoningbank-intelligence/SKILL.md
.claude/skills/skill-builder/SKILL.md
.claude/skills/sparc-methodology/SKILL.md
.claude/skills/stream-chain/SKILL.md
.claude/skills/swarm-advanced/SKILL.md
.claude/skills/swarm-orchestration/SKILL.md
.claude/skills/v3-cli-modernization/SKILL.md
.claude/skills/v3-core-implementation/SKILL.md
.claude/skills/v3-ddd-architecture/SKILL.md
.claude/skills/v3-integration-deep/SKILL.md
.claude/skills/v3-mcp-optimization/SKILL.md
.claude/skills/v3-memory-unification/SKILL.md
.claude/skills/v3-performance-optimization/SKILL.md
.claude/skills/v3-security-overhaul/SKILL.md
.claude/skills/v3-swarm-coordination/SKILL.md
.claude/skills/verification-quality/SKILL.md
harness/homecore/.claude/skills/explore/SKILL.md
harness/homecore/.claude/skills/migrate/SKILL.md
harness/homecore/.claude/skills/operate-server/SKILL.md
harness/homecore/.claude/skills/secure-plugin/SKILL.md
harness/homecore/.claude/skills/verify/SKILL.md
harness/ruview/.claude/skills/calibrate-room/SKILL.md
harness/ruview/.claude/skills/onboard/SKILL.md
harness/ruview/.claude/skills/provision-node/SKILL.md
harness/ruview/.claude/skills/train-pose/SKILL.md
harness/ruview/.claude/skills/verify/SKILL.md
harness/wifi-densepose-sar/.claude/skills/evolve/SKILL.md
harness/wifi-densepose-sar/.claude/skills/plan-change/SKILL.md
plugins/ruview/skills/ruview-advanced-sensing/SKILL.md
plugins/ruview/skills/ruview-applications/SKILL.md
plugins/ruview/skills/ruview-cli-api/SKILL.md
plugins/ruview/skills/ruview-configure/SKILL.md
plugins/ruview/skills/ruview-hardware-setup/SKILL.md
plugins/ruview/skills/ruview-mmwave/SKILL.md
plugins/ruview/skills/ruview-model-training/SKILL.md
plugins/ruview/skills/ruview-quickstart/SKILL.md

Metadata

Files
0
Version
a3b6e1d
Hash
fe216d96
Indexed
2026-08-20 13:10

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-25 08:34
浙ICP备14020137号-1 $방문자$