Communityコーディング&開発github.com

ashley-seymour/claude-skills

このスキルは、Claude in Chrome(ブラウザ拡張機能)を使用する最初のステップの前に読むべきものです。この拡張機能のツールは `mcp__claude-in-chrome__*` という名前で、ユーザーの実際のChromeブラウザで動作し、ユーザーのログイン情報を使用します。ツールを有効にする前に、`enable__mcp__claude-in-chrome` という単一のツールが存在する場合があります。このスキルは、1回のToolSearch呼び出しでのツール読み込み、開いているタブの確認と新しいタブでの作業、サイト権限、GIF録画、コンソールログ、回避すべきダイアログ、そして停止して質問するタイミングをカバーします。

claude-skills とは?

このスキルは、Claude in Chrome ブラウザ拡張機能を使用する際のベストプラクティスを定義します。Claude in Chrome は、ユーザーの実際のChromeブラウザ上で動作し、ユーザーのログイン情報を保持した状態で新しいタブを開いて作業を行います。このスキルは、Claudeがブラウザ操作を効率的かつ安全に行うための手順を提供します。具体的には、1回の ToolSearch 呼び出しですべての必要なツールを読み込む方法、新しいタブを作成して作業を開始する前に現在のタブのコンテキストを確認する方法、サイト権限の取り扱い、GIF録画、コンソール出力の読み取り、JavaScriptアラートや確認ダイアログの回避方法、そして問題が発生した場合に停止してユーザーに質問するタイミングについて説明します。このスキルは、組み込みブラウザ(`mcp__Claude_Browser__*` など)には適用されず、使用するブラウザの種類を決定するものでもありません。

対応✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ashley-seymour/claude-skills/tree/HEAD/.trash/1792396014666-17492-eIJhD8/chrome-browser

Installed? Explore more コーディング&開発 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

Claude in Chrome

Claude in Chrome はブラウザ拡張機能です。そのツールは mcp__claude-in-chrome__* という名前で、ユーザーの実際のChromeブラウザ上で、ユーザー自身のタブと並んで新しいタブで動作し、ユーザーの既存のログイン情報を使用します。Claude in Chrome は、ユーザーのChromeが起動され、拡張機能が接続されている間のみ利用可能です。ツール呼び出しで拡張機能が接続されていない、または応答がないと報告された場合、Claudeはその旨を伝え、再試行せず、セッションのブラウザガイダンスに従って、別のブラウザで続行するか、まずユーザーに質問します。

存在するClaude in Chromeツールが enable__mcp__claude-in-chrome のみである場合、Claudeはまずそれを呼び出します。これにより、この会話でClaude in Chromeが有効になり、mcp__claude-in-chrome__* ツールが実行後に表示されます。

ツールの読み込み

mcp__claude-in-chrome__* ツールが遅延読み込みされる場合(つまり、使用前に ToolSearch で読み込む必要がある場合)、Claudeは必要と思われるすべてのツールを1回の ToolSearch 呼び出しで読み込みます。selectクエリはカンマ区切りのリストを受け付け、余分な ToolSearch 呼び出しは1回の完全なラウンドトリップを消費するためです。最初に使用する基本セットは以下の通りです:

ToolSearch with query "select:mcp__claude-in-chrome__tabs_context_mcp,mcp__claude-in-chrome__navigate,mcp__claude-in-chrome__computer,mcp__claude-in-chrome__read_page,mcp__claude-in-chrome__tabs_create_mcp,mcp__claude-in-chrome__tabs_close_mcp"

Claudeは、タスクが明らかに必要とする場合、同じ呼び出しにタスク固有のツールを追加します。デバッグ用の read_console_messages と read_network_requests、フォーム用の form_input、録画用の gif_creator、ページスクリプティング用の javascript_tool などです。2回目の ToolSearch は、タスクで後になって必要になったツールのためだけに行います。

セッションの開始:最初にタブコンテキスト、次に新しいタブ

各ブラウザセッションの開始時に、Claudeは最初に mcp__claude-in-chrome__tabs_context_mcp を呼び出し、ユーザーの現在のタブを確認し、ユーザーが何を操作したいかを理解します。その後:

  1. Claudeは、ユーザーが明示的にそのタブで作業するよう依頼した場合にのみ、既存のタブを再利用します。
  2. それ以外の場合、Claudeは mcp__claude-in-chrome__tabs_create_mcp で新しいタブを開いてそこで作業し、ユーザーが保持を希望しない限り、作成したタブを完了前に閉じます。
  3. Claudeは、以前のセッションまたは異なるセッションから記憶したタブIDを決して再利用しません。ツールがタブが存在しないか無効であると報告した場合、ユーザーがタブを閉じた場合、またはナビゲーションエラーが発生した場合、Claudeは再び tabs_context_mcp を呼び出して新しいタブIDを取得します。

サイト権限

Claude in Chromeは、ユーザーが許可した場合にのみサイトで動作します。ユーザーの設定によっては、拡張機能内またはアプリ内でサイトごとにプロンプトが表示される場合があります。ツール呼び出しがその権限を待っているか拒否された場合、Claudeはユーザーに伝え、回避策を取らずにユーザーが許可するのを待ちます。ユーザーが拒否したサイトはそのユーザーの決定です。Claudeは次に進みます。

GIFの録画

ユーザーが確認したり共有したい複数ステップのインタラクションのために、Claudeは mcp__claude-in-chrome__gif_creator で録画できます。Claudeは各アクションの前後に数フレームを追加でキャプチャし、再生がスムーズになるようにし、ファイルには意味のある名前を付けます(例:「login_process.gif」)。

コンソール出力の読み取り

mcp__claude-in-chrome__read_console_messages はページのコンソールを読み取ります。コンソール出力は冗長になる可能性があるため、Claudeが特定のエントリを探している場合は pattern パラメータ(正規表現)を渡します。例えば、アプリケーション自身のログのみを保持するためにパターン "[MyApp]" を使用します。

アラートとダイアログ

Claudeは、JavaScriptの alert、confirm、prompt、またはその他のブラウザモーダルダイアログを自身のアクションを通じてトリガーしません。これらのダイアログはすべてのブラウザイベントをブロックするため、拡張機能はコマンドを受信しなくなります。代わりに:

  1. Claudeは、確認ダイアログを発生させる可能性のある要素(「削除」ボタンなど)を、必要な場合を除いてクリックすることを避けます。
  2. そのような要素と対話する必要がある場合、Claudeはまずユーザーにセッションが中断される可能性があることを警告します。
  3. Claudeは mcp__claude-in-chrome__javascript_tool を使用して、既存のダイアログを確認して閉じてから進むことができ、デバッグには alert よりも console.log と read_console_messages を優先します。

ダイアログがトリガーされ、ブラウザが応答しなくなった場合、Claudeはユーザーに手動でChromeでそれを閉じる必要があることを伝えます。

タスクに集中し、停止するタイミング

Claudeは特定のタスクに集中し、無関係なページに迷い込むことはありません。以下のいずれかが発生した場合、Claudeは停止し、試したことと何が問題だったかを説明して、ユーザーにどう進めるか質問します:

  • ブラウザツール呼び出しが2〜3回の試行後に失敗するかエラーを返す
  • 拡張機能が応答しない
  • ページ要素がクリックや入力に応答しない、またはページが読み込まれない、タイムアウトする
  • タスクが予期しない複雑さや脱線を含むことが判明した
  • 複数のアプローチでタスクが完了しなかった

Claudeは同じ失敗アクションを再試行し続けることはありません。

Individual skills in this repo

This repo contains 4 individual skills — each has its own dedicated page.

ashley-seymour/claude-skills

Arm, run and disarm an unattended away run (a night or a few hours). A queue of items is worked one per fresh `claude -p --agent away-orchestrator` process, relaunched by a watchdog under a Windows scheduled task, in its own worktree on branch away/<date>, ending in a morning report. Use only when the operator asks to arm, check or disarm an away run, or when running as away-orchestrator. Not for interactive project waves (project-workflow) or one-off `claude -p` scripts (headless-claude).

ashley-seymour/claude-skills

Read this skill before the first step that uses the built-in browser, the browser pane inside the Claude desktop app (also called the in-app browser, the browser pane, Claude's browser, or \"your own browser\"), whose tools are named mcp__Claude_Browser__* when the session runs in the desktop app and mcp__remote-devices__Claude_Browser__* when a cloud session is linked to the person's computer; before those tools are turned on there may be a single enable__mcp__remote-devices__Claude_Browser tool instead. It covers the pane's persistent sign-ins, tabs and preview_start, reading pages as text, site approvals, what the pane cannot open, and what to do when it cannot be reached. It is not for Claude in Chrome (mcp__claude-in-chrome__* tools), which has its own skill, and it does not decide which browser to use.

ashley-seymour/claude-skills

Use this skill when the user's prompt requires (1) researching a topic across multiple sources, comparing options or alternatives, analyzing trends or history, understanding markets or industries, or reviewing literature or studies and (2) synthesizing that research into a comprehensive, narrative report. If you're planning to search the web or internal knowledge bases, consider using this skill. This skill coordinates research subagents, so use it only when you have a tool for spawning subagents (the Agent or Task tool); otherwise, research the question directly.

ashley-seymour/claude-skills

Read this skill before the first step of any request to do something in an app on the person's own computer (Notes, Finder, System Settings, any desktop app), to look at their screen, or for \"computer use\". Computer use (desktop control) lets Claude take screenshots of the person's desktop and control it with clicks, typing and scrolling through the Claude desktop app; its tools are named mcp__computer-use__* when the session runs in the desktop app and mcp__remote-devices__computer_* when a cloud session is linked to the person's computer; before computer use is turned on for a conversation there may be no such tools, only an enable__mcp__remote-devices__computer tool, which turns it on. It covers turning it on, picking the right tool, the access flow, and the safety rules for tiered apps, links and financial actions. It is not for websites, which go through Claude in Chrome or the built-in browser and their own skills.

関連スキル