Chuyển đến nội dung
Skillpedia
Ứng dụng di động5.2k · #15026

agent-device

Skill này làm gì

Skill này chạy công cụ dòng lệnh agent-device để mở một ứng dụng, đọc màn hình và chạm, gõ hoặc cuộn qua nó. Skill dành cho lập trình viên và người kiểm thử muốn AI kiểm tra hành vi của ứng dụng di động.

Khi nào nên dùng

  • ✓Khi bạn muốn agent mở một ứng dụng và đi qua một màn hình trên điện thoại hoặc trình giả lập.
  • ✓Khi bạn muốn kiểm tra một thay đổi của ứng dụng di động bằng cách dùng thử nó trên thiết bị.
  • ✓Khi bạn muốn có ảnh chụp màn hình hoặc chi tiết về một lỗi trong ứng dụng di động.

Liên kết skill

https://github.com/callstack/agent-device/blob/main/skills/agent-device/SKILL.md

Sao 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

Hãy dùng skill này để giúp tôi: https://github.com/callstack/agent-device/blob/main/skills/agent-device/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Mở ứng dụng của tôi trong trình giả lập iOS, đăng nhập bằng tài khoản thử nghiệm và cho tôi biết màn hình cài đặt có tải được không.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent mở ứng dụng, đọc màn hình dưới dạng danh sách các mục tiêu và thao tác trên chúng. Sau mỗi bước, agent đọc thay đổi và kiểm tra kết quả bạn yêu cầu.

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.

agent-device

For a normal app-driving task, start immediately. Do not probe first with --help, --version, devices, appstate, snapshot, or screenshot:

agent-device open <app> --foreground

That starts the session and returns the initial interactive snapshot with @refs.

Loop: act with press|click|fill|longpress <target> ... --settle, scroll <direction> --settle, or back --settle; continue from the printed diff, verify the named expectation (wait text "...", is, get, or find), then run agent-device close, or agent-device close --shutdown if your session booted a local simulator or emulator, unless the user asks to keep it running.

Reaching an off-screen target is one command, not a scroll-and-check loop: scroll down --until <selector> scrolls until that element is on screen, and scroll bottom runs to the end of the content. Repeated bare scroll down calls are the slow way to find something.

Copy refs byte-for-byte: @e12, @e12~s4 — keep the @ and any ~sN. Prefer current refs, then id/label/role selectors; coordinates are a last resort. If snapshot reports sparse/AX-unavailable, its refs and selectors are invalid: run agent-device screenshot, inspect the image, use coordinates, then retry snapshot -i after navigating. Otherwise run snapshot -i only when the diff lacks the next target.

Error output includes corrective hints; follow them instead of re-planning. Only when the task is specialized (for example gestures, scripting, TV, macOS, remote, or debugging) or a command shape is unclear, run agent-device help <topic>. agent-device --help lists topics, but is not a startup step.

To capture network traffic on a Limrun session, see agent-device help remote or the Limrun docs.

Câu hỏi thường gặp

Agent có cần cài công cụ trước không?

Có. Bạn tự cài công cụ dòng lệnh agent-device trước khi agent sử dụng.

Nó có hoạt động với ứng dụng TV không?

Skill bao gồm điều khiển TV và ứng dụng trên Android TV, Fire TV và ứng dụng TV Amazon Vega OS.

Nó có tắt trình giả lập sau đó không?

Nếu phiên làm việc đã khởi động trình giả lập hoặc emulator, nó sẽ tắt khi kết thúc, trừ khi bạn yêu cầu giữ nó chạy.

Chi tiết

Mô tả gốc của tác giả

Automates Apple-platform apps (iOS, tvOS, macOS), Android devices (including Android TV and Fire TV on Fire OS), and Amazon Vega OS TV apps in Vega Virtual Devices. Use when navigating apps, taking snapshots/screenshots where supported, driving TV remotes, tapping, typing, scrolling, extracting UI info, collecting evidence, or planning agent-device CLI commands.

repo: callstack/agent-device

Độ phổ biến

Sao GitHub
5.2k
Vị trí xếp hạng
#15026
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự