agent-browser
Skill này làm gì
Skill dùng công cụ dòng lệnh agent-browser để mở trang web, thực hiện hành động và kiểm tra những gì được hiển thị. Skill dành cho người cần xác nhận một trang web hoạt động như người dùng trải nghiệm.
Khi nào nên dùng
- ✓Khi bạn muốn kiểm tra một trang web hoặc màn hình quản trị hoạt động đúng trong trình duyệt thật.
- ✓Khi bạn cần ảnh chụp màn hình làm bằng chứng về giao diện sau một hành động.
- ✓Khi bạn muốn xác nhận trang hiển thị kết quả mong đợi sau một lần nhấp hoặc gửi biểu mẫu.
Liên kết skill
https://github.com/emdash-cms/emdash/blob/main/skills/agent-browser/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Bạn có thể mở trang đăng nhập của website tôi trong trình duyệt, đăng nhập, và chụp ảnh bảng điều khiển không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent mở trang trong một phiên trình duyệt có tên, đọc cấu trúc trang, thực hiện hành động, rồi kiểm tra trạng thái mới và mọi lỗi console. Nó có thể chụp ảnh màn hình trong quá trình.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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.
Câu hỏi thường gặp
Nó có thay thế các kiểm thử tự động không?
Không. Khi cần một kiểm thử hồi quy lặp lại được, một bộ kiểm thử xác định là lựa chọn tốt hơn.
Nó tìm nút trên trang bằng cách nào?
Nó đọc thông tin accessibility của trang, dùng nhãn và vai trò để tìm các điều khiển.
Nó có hiển thị lỗi không?
Có. Nó kiểm tra lỗi console và hành vi mạng liên quan như một phần của xác minh.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 14k
- Vị trí xếp hạng
- #11245
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
adversarial-reviewer
14kGiúp agent của bạn tìm lỗi ẩn và các giả định không an toàn trong một thay đổi code, vượt qua một đánh giá thông thường khi bạn yêu cầu.
building-emdash-site
14kGiúp agent của bạn xây dựng phần website của một dự án EmDash CMS trên Astro, gồm nội dung, schema, menu, taxonomy và triển khai.
creating-plugins
14kGiúp agent của bạn tạo plugin cho hệ thống CMS EmDash, với hook, route, lưu trữ và giao diện quản trị an toàn.
emdash-cli
14kCho phép agent của bạn quản lý trang EmDash từ dòng lệnh, gồm nội dung, media, menu, migration và xuất hoặc nhập toàn bộ trang.
Skill tương tự
test-driven-development
311kDạy agent của bạn viết kiểm thử thất bại trước, xem nó thất bại, rồi viết đoạn mã ngắn nhất để vượt qua trước khi làm bất kỳ tính năng hay bản sửa nào.
verification-before-completion
311kDạy agent của bạn chạy kiểm tra thực tế và đọc kết quả đầu ra trước khi khẳng định một việc, bản sửa hoặc bản build đã hoàn thành hay vượt qua.
migrate-to-shoehorn
310kThay các ép kiểu rủi ro trong tệp kiểm thử bằng thư viện shoehorn, để các bài kiểm thử dùng dữ liệu một phần vẫn qua được kiểm tra kiểu.