本文へスキップ
Skillpedia
テスト14k · #11245

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がスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/emdash-cms/emdash/blob/main/skills/agent-browser/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

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

  1. Start or identify the target application and record the exact URL and viewport.
  2. Open the page in a named session.
  3. Take an accessibility snapshot and identify controls by role, label, or snapshot reference.
  4. Perform the user action.
  5. Wait for the resulting state, then take a fresh snapshot. References can become stale after navigation or a substantial DOM update.
  6. Verify the observable result, console errors, and relevant network behavior.
  7. 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 console and agent-browser errors when the UI behaves unexpectedly.
  • Use agent-browser network requests when 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

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル