claude/skills/agent-browser/SKILL.md
Browser automation with engine choice. Use for navigation, interaction, extraction, and AI-led behavior checks. `--engine lightpanda` is an optional fast first pass for DOM/network verification, not a replacement for real-browser visual verification or final E2E.
npx skillsauth add kazuph/dotfiles agent-browserInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
agent-browser has multiple engines. Treat Lightpanda as one option, not the default answer.
--engine lightpanda when an AI should quickly probe behavior first:
If the task needs rendered output, screenshots, downloads, or user-facing proof, switch to a real browser engine or another real-browser tool such as playwright-cli.
Use this when fidelity matters.
# Set environment variable before running commands
export AGENT_BROWSER_EXECUTABLE_PATH="/Applications/Google Chrome Canary.app/Contents/MacOS/Google Chrome Canary"
Or specify per-command:
agent-browser --executable-path "/Applications/Google Chrome Canary.app/Contents/MacOS/Google Chrome Canary" open <url>
Note: If you change
--executable-path, runagent-browser closefirst to restart the daemon with the new browser.
Use this only for a quick first pass driven by the AI.
agent-browser --engine lightpanda open <url>
agent-browser --engine lightpanda snapshot -i -c
agent-browser --engine lightpanda console
agent-browser --engine lightpanda errors
agent-browser --engine lightpanda network requests
Important:
agent-browser open <url> # Navigate to page
agent-browser snapshot -i # Get interactive elements with refs
agent-browser click @e1 # Click element by ref
agent-browser fill @e2 "text" # Fill input by ref
agent-browser close # Close browser
agent-browser open <url>agent-browser snapshot -i (returns elements with refs like @e1, @e2)Use this only when the goal is "let the AI try the flow once and inspect what happens".
agent-browser --engine lightpanda open <url>snapshot -i -cget title, get url, console, errors, and network requestsUse this workflow for:
Do not keep pushing Lightpanda once the task becomes visual or proof-oriented.
Prefer this decision rule:
Error without a clear DOM-level explanationIf a wrapper page blocks useful inspection, open the direct app URL instead of staying on the shell page.
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
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 to 3
agent-browser click @e1 # Click
agent-browser dblclick @e1 # Double-click
agent-browser fill @e2 "text" # Clear and type
agent-browser type @e2 "text" # Type without clearing
agent-browser press Enter # Press key
agent-browser press Control+a # Key combination
agent-browser hover @e1 # Hover
agent-browser check @e1 # Check checkbox
agent-browser uncheck @e1 # Uncheck checkbox
agent-browser select @e1 "value" # Select dropdown
agent-browser scroll down 500 # Scroll page
agent-browser scrollintoview @e1 # Scroll element into view
agent-browser get text @e1 # Get element text
agent-browser get value @e1 # Get input value
agent-browser get title # Get page title
agent-browser get url # Get current URL
agent-browser screenshot # Screenshot to stdout
agent-browser screenshot path.png # Save to file
agent-browser screenshot --full # Full page
For Lightpanda, treat screenshots as diagnostic output only. Do not use them as visual proof.
agent-browser wait @e1 # Wait for element
agent-browser wait 2000 # Wait milliseconds
agent-browser wait --text "Success" # Wait for text
agent-browser wait --load networkidle # Wait for network idle
agent-browser find role button click --name "Submit"
agent-browser find text "Sign In" click
agent-browser find label "Email" fill "[email protected]"
agent-browser open https://example.com/form
agent-browser snapshot -i
# Output shows: textbox "Email" [ref=e1], textbox "Password" [ref=e2], button "Submit" [ref=e3]
agent-browser fill @e1 "[email protected]"
agent-browser fill @e2 "password123"
agent-browser click @e3
agent-browser wait --load networkidle
agent-browser snapshot -i # Check result
# Login once
agent-browser open https://app.example.com/login
agent-browser snapshot -i
agent-browser fill @e1 "username"
agent-browser fill @e2 "password"
agent-browser click @e3
agent-browser wait --url "**/dashboard"
agent-browser state save auth.json
# Later sessions: load saved state
agent-browser state load auth.json
agent-browser open https://app.example.com/dashboard
agent-browser --session test1 open site-a.com
agent-browser --session test2 open site-b.com
agent-browser session list
With Lightpanda, sessions are especially useful for fast local-vs-preview comparisons:
agent-browser --engine lightpanda --session local open http://localhost:3000
agent-browser --engine lightpanda --session preview open https://preview.example.com
agent-browser --engine lightpanda --session local snapshot -i -c
agent-browser --engine lightpanda --session preview snapshot -i -c
Add --json for machine-readable output:
agent-browser snapshot -i --json
agent-browser get text @e1 --json
agent-browser open example.com --headed # Show browser window
agent-browser console # View console messages
agent-browser errors # View page errors
For Lightpanda-first investigation, also check:
agent-browser --engine lightpanda network requests
agent-browser --engine lightpanda network response <id>
agent-browser --engine lightpanda dashboard
tools
X (Twitter) API read-only CLI. Bookmarks retrieval, tweet search, engagement analytics (likes/RT aggregation), mentions, user lookup. Use when: reading X bookmarks, searching tweets, aggregating likes/retweets, checking mentions, looking up users. Triggers: bookmark, bookmarks, X search, Twitter search, likes count, RT count, engagement, tweet analytics.
testing
単体テスト方針の要約。Kiro流で使うときは本文を必ず参照・展開する。
tools
Send prompts to other AI CLIs (Codex, Claude Code) running in sibling tmux panes and receive results back. Use this skill when the user asks to send a question or task to Codex or another Claude Code instance in a tmux pane. Handles pane discovery, CLI startup if needed, prompt delivery with proper Enter timing, delivery verification, and result return via tmux send-keys.
data-ai
TAKT ピースエンジン。Agent Team を使ったマルチエージェントオーケストレーション。ピースYAMLワークフローに従ってマルチエージェントを実行する。