agentleFS
tomo3141592653tomo3141592653/ayumu-oss/.claude/skills/browser/SKILL.md

browser

Skill9 starsChanged 9 months agoMITView on GitHub

ブラウザ操作・Webスクレイピング・スクリーンショット撮影・agent-browserでサイト閲覧・ページをクリック/入力/スクロール・ログイン操作が必要なとき → このスキルを読む

  • Installs packages

73 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use V3 Core Implementation, V3 DDD Architecture and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ruvnetSkill

    V3 Core Implementation

    Core module implementation for claude-flow v3. Implements DDD domains, clean architecture patterns, dependency injection, and modular TypeScript codebase with comprehensive testing.

    Also in 15 projects that use this

  • ruvnetSkill

    V3 DDD Architecture

    Domain-Driven Design architecture for claude-flow v3. Implements modular, bounded context architecture with clean separation of concerns and microkernel pattern.

    Also in 15 projects that use this

  • +10 more from ruvnet

The file

Files
SKILL.md

ブラウザ操作スキル

基本方針

agent-browserをデフォルトで使用する。理由:

  • MCPツールと違い、未使用時にトークンを消費しない
  • Refs(@e1, @e2等)でコンテキスト93%削減
  • シンプルなブラウザ操作には十分

chrome-devtools MCPは高度な操作が必要な時のみ動的ロード。


agent-browser(デフォルト)

インストール・バージョン確認

npm install -g @anthropic-ai/agent-browser
agent-browser --version

基本コマンド

# ページを開く
agent-browser open "https://example.com"

# スナップショット取得(ページ構造を見る)
agent-browser snapshot

# クリック
agent-browser click @e1

# テキスト入力
agent-browser fill @e3 "検索ワード"

# スクロール
agent-browser scroll down
agent-browser scroll @e5

# スクリーンショット
agent-browser screenshot /path/to/output.png

# 終了
agent-browser close

Refsシステム

agent-browserはページ要素に@e1, @e2...の参照IDを付与する。

# 1. まずsnapshotでページ構造を見る
agent-browser snapshot

# 2. 出力から目的の要素のRefを見つける
# 例: @e5 = ログインボタン

# 3. Refを使って操作
agent-browser click @e5

使用例

# HackerNewsのトップ記事を確認
agent-browser open "https://news.ycombinator.com"
agent-browser snapshot
# → @e1〜@e30 等でタイトル・リンクが表示される

# 記事をクリック
agent-browser click @e3

# 戻る
agent-browser back

chrome-devtools MCP(高度な操作用)

いつ使うか

  • パフォーマンス計測(performance_start_trace等)
  • ネットワークリクエスト監視
  • コンソールメッセージ取得
  • 複数タブ操作
  • JavaScript評価

動的ロード

# セッション中に追加(再起動不要)
claude mcp add chrome-devtools -- npx @anthropic-ai/mcp-chrome-devtools@latest

# 確認
claude mcp list

# 不要になったら削除
claude mcp remove chrome-devtools

主要ツール

mcp__chrome-devtools__navigate_page     - ページ遷移
mcp__chrome-devtools__take_snapshot     - a11yスナップショット
mcp__chrome-devtools__take_screenshot   - スクリーンショット
mcp__chrome-devtools__click             - クリック
mcp__chrome-devtools__fill              - フォーム入力
mcp__chrome-devtools__evaluate_script   - JS実行
mcp__chrome-devtools__list_network_requests - ネットワーク監視
mcp__chrome-devtools__list_console_messages - コンソールログ
mcp__chrome-devtools__performance_start_trace - パフォーマンス計測開始
mcp__chrome-devtools__performance_stop_trace  - パフォーマンス計測終了

使用例

# パフォーマンス計測が必要な場合

# 1. MCPを追加
# Bash: claude mcp add chrome-devtools -- npx @anthropic-ai/mcp-chrome-devtools@latest

# 2. 計測
mcp__chrome-devtools__navigate_page(url="https://example.com")
mcp__chrome-devtools__performance_start_trace(reload=True, autoStop=True)
# → Core Web Vitalsやinsightsが取得できる

# 3. 作業終了後に削除
# Bash: claude mcp remove chrome-devtools

判断フローチャート

ブラウザ操作が必要
    ↓
単純な閲覧・クリック・入力?
    ├─ Yes → agent-browser
    └─ No → 何が必要?
              ├─ パフォーマンス計測 → chrome-devtools MCP(動的ロード)
              ├─ ネットワーク監視 → chrome-devtools MCP
              ├─ JS評価 → chrome-devtools MCP
              └─ 複数タブ操作 → chrome-devtools MCP

トラブルシューティング

agent-browserが動かない

# 再インストール
npm install -g @anthropic-ai/agent-browser

# バージョン確認
agent-browser --version

# ヘルプ
agent-browser --help

chrome-devtools MCPが読み込めない

# リストで確認
claude mcp list

# 再追加
claude mcp remove chrome-devtools  # 存在する場合
claude mcp add chrome-devtools -- npx @anthropic-ai/mcp-chrome-devtools@latest

ブラウザが起動しない

Chromeが別プロセスで動いている可能性。

# Chromeプロセス確認
ps aux | grep chrome

# 必要なら終了
pkill chrome

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.