agent-browser
できること
このスキルは、agent-browserのコマンドラインツールを使い、Webページを開き、操作を行い、表示された内容を確認します。ユーザーが体験するのと同じようにWebサイトが動くことを確かめる必要がある人向けです。
使う場面
- ✓実際のブラウザで、Webページや管理画面が正しく動くかを確認したいとき。
- ✓操作の後、ページがどう見えるかの証拠として、スクリーンショットが必要なとき。
- ✓クリックやフォームの送信の後、ページに期待される結果が表示されるかを確認したいとき。
スキルのリンク
https://github.com/emdash-cms/emdash/blob/main/skills/agent-browser/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“ブラウザで私のサイトのログインページを開き、ログインして、ダッシュボードのスクリーンショットを撮ってください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは名前のあるブラウザのセッションでページを開き、ページの構造を読み、操作を実行してから、新しい状態とコンソールのエラーを確認します。途中でスクリーンショットを撮ることもできます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Test interfaces with agent-browser
Use the installed agent-browser CLI for rendered, user-facing verification. Load its version-matched instructions before relying on command syntax:
agent-browser skills get core --full
Use a specialized bundled guide when the target requires one. agent-browser skills list shows the available guides.
Verification loop
- Start or identify the target application and record the exact URL and viewport.
- Open the page in a named session.
- Take an accessibility snapshot and identify controls by role, label, or snapshot reference.
- Perform the user action.
- Wait for the resulting state, then take a fresh snapshot. References can become stale after navigation or a substantial DOM update.
- Verify the observable result, console errors, and relevant network behavior.
- Capture screenshots when visual evidence helps establish the result.
For EmDash admin testing, authenticate through the development bypass rather than attempting to automate passkeys:
agent-browser open 'http://localhost:4321/_emdash/api/setup/dev-bypass?redirect=/_emdash/admin'
Use auth/dev-bypass instead when setup is already complete.
Interaction guidance
- Prefer role and label locators when they express the user-facing control clearly. Use snapshot references for efficient exploration.
- Re-snapshot after a dialog opens, a route changes, or content is replaced.
- Wait for a selector or visible state instead of adding a fixed delay unless timing itself is under test.
- Use a named session for flows that depend on cookies or storage. Close sessions that are no longer needed.
- Check
agent-browser consoleandagent-browser errorswhen the UI behaves unexpectedly. - Use
agent-browser network requestswhen the result depends on a request or response boundary.
Evidence
Record the path tested, inputs, viewport, expected result, actual result, and any console or request failures. For UI changes, capture before-and-after screenshots of every affected screen.
Save screenshots inside the task workspace with descriptive filenames. Inspect the saved image before reporting success; a completed screenshot command does not prove that the intended state was visible.
Browser exploration does not replace a regression test when stable automated coverage can protect the behavior. Convert a confirmed defect into the narrowest meaningful automated test when the task includes implementation.
よくある質問
自動テストの代わりになりますか?
いいえ。繰り返し可能な回帰テストが必要な場合は、決定的なテストスイートのほうが適しています。
ページのボタンはどう見つけますか?
ページのアクセシビリティ情報を読み、ラベルと役割を使って操作を見つけます。
エラーを表示できますか?
はい。検証の一部としてコンソールのエラーと関連するネットワークの動きを確認します。
詳細
作者による元の説明
Use the agent-browser CLI to exercise web interfaces, inspect rendered accessibility state, verify interactions, and capture screenshots. Use for browser-based UI testing and evidence collection. Do not use as a substitute for deterministic Playwright coverage when an automated regression test is the requested deliverable.
repo: emdash-cms/emdash
人気
- GitHubのスター
- 14k
- ランキング
- #11245
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
adversarial-reviewer
14kエージェントが、コードの変更に隠れたバグや安全でない前提を探せるよう支援します。依頼されたときは、通常の査読を超えた深い検証を行います。
building-emdash-site
14kエージェントが、AstroのEmDash CMSプロジェクトのサイト側を構築できるよう支援します。コンテンツ、スキーマ、メニュー、分類、デプロイを扱います。
creating-plugins
14kエージェントが、安全なフック、ルート、ストレージ、管理画面を備えたEmDash CMS用のプラグインを作れるよう支援します。
emdash-cli
14kエージェントが、コマンドラインからEmDashサイトを管理できるよう支援します。コンテンツ、メディア、メニュー、マイグレーション、サイト全体のエクスポートとインポートを含みます。
似ているスキル
test-driven-development
311k機能や修正を作る前に、まず失敗するテストを書き、それが失敗するのを確認してから、合格させる最小のコードを書くようエージェントに教えます。
verification-before-completion
311kタスク、修正、ビルドが完了した、または合格したと主張する前に、実際のチェックを実行し、その出力を読むようエージェントに教えます。
migrate-to-shoehorn
310kテストファイル内の危険な型キャストを、shoehornライブラリに置き換え、テストが部分的なデータを使いつつ型チェックを通るようにします。