majiayu000/claude-skill-registry-agent-browser-chachamaru127-claude-code-harness-4-agent-browser
ブラウザを手足のように操る。ページ遷移、フォーム入力、スクショ、なんでもこい。Use when users ask to navigate websites, fill forms, take screenshots, extract web data, test web apps, or automate browser workflows. Trigger phrases include 'go to [url]', 'click on', 'fill out the form', 'take a screenshot', 'scrape', 'automate', 'test the website', 'log into', or any browser interaction request. Do NOT load for: sharing URLs, embedding links, screenshot image files.
npx skills add https://github.com/majiayu000/claude-skill-registry --skill agent-browser
ブラウザ自動化を行うスキル。agent-browser CLI を使用して、UI デバッグ・検証・自動操作を実行します。
このスキルは以下のフレーズで自動起動します:
| 機能 | 詳細 |
|------|------|
| ブラウザ自動化 | See references/browser-automation.md |
| AI スナップショットワークフロー | See references/ai-snapshot-workflow.md |
# インストール確認
which agent-browser
# 未インストールの場合
npm install -g agent-browser
agent-browser install
| リクエストタイプ | 対応アクション |
|----------------|---------------|
| URL を開く | agent-browser open <url> |
| 要素をクリック | スナップショット → agent-browser click @ref |
| フォーム入力 | スナップショット → agent-browser fill @ref "text" |
| 状態確認 | agent-browser snapshot -i -c |
| スクリーンショット | agent-browser screenshot <path> |
| デバッグ | agent-browser --headed open <url> |
ほとんどの操作で、まずスナップショットを取得してから要素参照で操作します:
# 1. ページを開く
agent-browser open https://example.com
# 2. スナップショット取得(AI 向け、インタラクティブ要素のみ)
agent-browser snapshot -i -c
# 出力例:
# - link "Home" [ref=e1]
# - button "Login" [ref=e2]
# - input "Email" [ref=e3]
# - input "Password" [ref=e4]
# - button "Submit" [ref=e5]
# 3. 要素参照で操作
agent-browser click @e2 # Login ボタンをクリック
agent-browser fill @e3 "[email protected]"
agent-browser fill @e4 "password123"
agent-browser click @e5 # Submit
# 現在の状態をスナップショットで確認
agent-browser snapshot -i -c
# または URL を確認
agent-browser get url
# スクリーンショットを取得
agent-browser screenshot result.png
| コマンド | 説明 |
|---------|------|
| open <url> | URL を開く |
| snapshot -i -c | AI 向けスナップショット |
| click @e1 | 要素をクリック |
| fill @e1 "text" | フォームに入力 |
| type @e1 "text" | テキストを入力 |
| press Enter | キーを押す |
| screenshot [path] | スクリーンショット |
| close | ブラウザを閉じる |
| コマンド | 説明 |
|---------|------|
| back | 戻る |
| forward | 進む |
| reload | リロード |
| コマンド | 説明 |
|---------|------|
| get text @e1 | テキスト取得 |
| get html @e1 | HTML 取得 |
| get url | 現在の URL |
| get title | ページタイトル |
| コマンド | 説明 |
|---------|------|
| wait @e1 | 要素を待機 |
| wait 1000 | 1秒待機 |
| コマンド | 説明 |
|---------|------|
| --headed | ブラウザを表示 |
| console | コンソールログ |
| errors | ページエラー |
| highlight @e1 | 要素をハイライト |
複数のタブ/セッションを並列管理:
# セッションを指定
agent-browser --session admin open https://admin.example.com
agent-browser --session user open https://example.com
# セッション一覧
agent-browser session list
# 特定セッションで操作
agent-browser --session admin snapshot -i -c
| ツール | 推奨度 | 用途 |
|--------|--------|------|
| agent-browser | ★★★ | 第一選択。AI 向けスナップショットが強力 |
| chrome-devtools MCP | ★★☆ | Chrome が既に開いている場合 |
| playwright MCP | ★★☆ | 複雑な E2E テスト |
原則: まず agent-browser を試し、うまくいかない場合のみ MCP ツールを使用。
--headed オプションでブラウザを表示可能close するまで維持されるTake majiayu000/claude-skill-registry-agent-browser-chachamaru127-claude-code-harness-4-agent-browser from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.
The instructions reference npm.
Without those the skill loads but fails at the first command.