Token导航 LogoToken导航

Agent Skill · 研究检索

android-use(安卓使用)

android-use 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

android-use 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为只读;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 36,913。

总安装 1,836周安装 75GitHub Stars 28下载 594核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:android-use(安卓使用)
来源仓库:https://github.com/shehbajdhillon/android-use
仓库路径:skills/android-use
安装命令:
npx skills add https://github.com/shehbajdhillon/android-use --skill android-use
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/shehbajdhillon/android-use --skill android-use

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

通过 ADB 控制已连接的 Android 设备,读取 UI 状态并执行点击、滑动等交互操作,实现设备自动化控制。适用于多设备场景下的批量操作、UI 流程验证或辅助测试任务,支持串口指定与并行执行。可直接获取屏幕内容、控件层级与文本信息,并根据视觉状态决策下一步动作。

需开启 USB 调试授权、安装 adb 工具并确保设备处于调试模式;不支持无线 ADB 或未授权设备。操作具有侵入性,建议在非关键设备上使用,并限制脚本权限以防止误触敏感功能。

来源仓库内路径:skills/android-use

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/shehbajdhillon/android-use --skill android-use;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它标注为只读,先用只读任务试一次,确认行为符合预期再扩大使用范围。

常见问题

6 条

android-use 怎么安装?

在终端执行 npx skills add https://github.com/shehbajdhillon/android-use --skill android-use。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

android-use 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

android-use 需要什么权限?

权限级别是只读。该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

android-use 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

android-use 用的人多吗?

公开数据是累计安装 1,836 次,近一周安装 75 次,下载 594 次,GitHub 28 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

android-use 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 标注为只读权限,试用阶段不容易误改本地文件。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 只想先试试效果、不希望它改动本地文件的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
android-use

安卓使用 · 本页

1,83628只读未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Android Device Control Skill

This skill enables you to control Android devices connected via ADB (Android Debug Bridge). You act as both the reasoning and execution engine - reading the device's UI state directly and deciding what actions to take.

Prerequisites

  • Android device connected via USB with USB debugging enabled
  • ADB installed and accessible in PATH
  • Device authorized for debugging (accepted the "Allow USB debugging?" prompt)

Multi-Device Support

All scripts support the -s <serial> flag to target a specific device. This is essential when multiple devices are connected (e.g., a physical phone AND an emulator).

Identifying Devices

Run scripts/check-device.sh to see all connected devices:

Multiple devices connected (2):

  [PHYSICAL] 1A051FDF6007PA - Pixel 6
  [EMULATOR] emulator-5554 - sdk_gphone64_arm64

Use -s <serial> to specify which device to use.

Choosing the Right Device

When the user mentions:

  • "phone", "my phone", "physical device" → Use the [PHYSICAL] device
  • "emulator", "virtual device", "AVD" → Use the [EMULATOR] device
  • If unclear, ask the user which device they want to target

Using the Serial Flag

Once you identify the target device, pass -s <serial> to ALL subsequent scripts:

# Check specific device
scripts/check-device.sh -s 1A051FDF6007PA

# All actions on that device
scripts/get-screen.sh -s 1A051FDF6007PA
scripts/tap.sh -s 1A051FDF6007PA 540 960
scripts/launch-app.sh -s 1A051FDF6007PA chrome

Important: Be consistent - use the same serial for all commands in a session.

Core Workflow

When given a task, follow this perception-action loop:

  1. Check device connection - Run scripts/check-device.sh first

- If multiple devices: identify target based on user intent or ask - Note the serial number for subsequent commands

  1. Get current screen state - Run scripts/get-screen.sh [-s serial] to dump UI hierarchy
  2. Analyze the XML - Read the accessibility tree to understand what's on screen
  3. Decide next action - Based on goal + current state, choose an action
  4. Execute action - Run the appropriate script with -s serial if needed
  5. Wait briefly - Allow UI to update (typically 500ms-1s)
  6. Repeat - Go back to step 2 until goal is achieved

Reading UI XML

The get-screen.sh script outputs Android's accessibility XML. Key attributes to look for:

<node index="0" text="Settings" resource-id="com.android.settings:id/title"
      class="android.widget.TextView" content-desc=""
      bounds="[42,234][1038,345]" clickable="true" />

Important attributes:

  • text - Visible text on the element
  • content-desc - Accessibility description (useful for icons)
  • resource-id - Unique identifier for the element
  • bounds - Screen coordinates as [left,top][right,bottom]
  • clickable - Whether element responds to taps
  • scrollable - Whether element can be scrolled
  • focused - Whether element has input focus

Calculating tap coordinates: From bounds="[left,top][right,bottom]", calculate center:

  • x = (left + right) / 2
  • y = (top + bottom) / 2

Example: bounds="[42,234][1038,345]" → tap at x=540, y=289

Available Scripts

All scripts are in the scripts/ directory. Run them via bash.

All scripts support -s <serial> to target a specific device.

Device Management

ScriptArgsDescription
check-device.sh[-s serial]List devices / verify connection
wake.sh[-s serial]Wake device and dismiss lock screen
screenshot.sh[-s serial]Capture screen image

Screen Reading

ScriptArgsDescription
get-screen.sh[-s serial]Dump UI accessibility tree

Input Actions

ScriptArgsDescription
tap.sh[-s serial] x yTap at coordinates
type-text.sh[-s serial] "text"Type text string
swipe.sh[-s serial] directionSwipe up/down/left/right
key.sh[-s serial] keynamePress key (home/back/enter/recent)

App Management

ScriptArgsDescription
launch-app.sh[-s serial] package_or_nameLaunch app by package or search by name
install-apk.sh[-s serial] path/to/file.apkInstall APK to device

Action Guidelines

When to tap

  • Target clickable elements
  • Always calculate center from bounds
  • Prefer elements with clickable="true"

When to type

  • After tapping a text input field
  • The field should have focused="true" or class="android.widget.EditText"
  • Clear existing text first if needed (select all + delete)

When to swipe

  • To scroll lists or pages
  • To navigate between screens (e.g., swipe left/right for tabs)
  • Directions: up (scroll down), down (scroll up), left, right

When to use keys

  • home - Return to home screen
  • back - Go back / close dialogs
  • enter - Submit forms / confirm
  • recent - Open recent apps

When to take screenshots

  • For visual debugging when XML doesn't capture enough info
  • To verify visual state (colors, images, etc.)
  • When the task requires visual confirmation

When to wake the device

  • Before starting any task (device may have gone to sleep)
  • If get-screen.sh returns empty or minimal XML
  • If actions don't seem to be working (screen may be off)
  • Note: Won't bypass PIN/pattern/password - user must unlock manually

Common Patterns

Opening an app

# By package name (fastest)
scripts/launch-app.sh com.android.chrome

# By app name (searches installed apps)
scripts/launch-app.sh "Chrome"

Tapping a button

  1. Get screen: scripts/get-screen.sh
  2. Find element with matching text/content-desc
  3. Calculate center from bounds
  4. Tap: scripts/tap.sh 540 289

Entering text in a field

  1. Tap the text field to focus it
  2. Wait for keyboard
  3. Type: scripts/type-text.sh "your text here"
  4. Press enter if needed: scripts/key.sh enter

Scrolling to find content

  1. Get screen to check if target is visible
  2. If not found, swipe: scripts/swipe.sh up
  3. Get screen again, repeat until found or reached end

Handling dialogs/popups

  • Look for elements with text like "OK", "Allow", "Accept", "Cancel"
  • Tap the appropriate button
  • Or press back to dismiss: scripts/key.sh back

Error Handling

No device connected

  • Check USB connection
  • Verify USB debugging is enabled
  • Run adb devices manually to troubleshoot

Element not found

  • The UI may have changed - get fresh screen dump
  • Try scrolling to find the element
  • Element might be in a different screen/state

Action didn't work

  • Wait longer between actions (UI might be slow)
  • Verify coordinates are correct
  • Check if a popup/dialog appeared

App not responding

  • Press home and reopen the app
  • Or force close and restart

Example Sessions

Single Device

User request: "Open Chrome and search for weather"

1. scripts/check-device.sh
   → Device connected: Pixel 6
   → Serial: 1A051FDF6007PA
   → Type: Physical

2. scripts/launch-app.sh com.android.chrome
   → Chrome launched

3. scripts/get-screen.sh
   → [Read XML, find search/URL bar]
   → Found: bounds="[0,141][1080,228]" resource-id="com.android.chrome:id/url_bar"
   → Center: x=540, y=184

4. scripts/tap.sh 540 184
   → Tapped URL bar

5. scripts/get-screen.sh
   → [Verify keyboard appeared and field is focused]

6. scripts/type-text.sh "weather"
   → Typed "weather"

7. scripts/key.sh enter
   → Pressed enter to search

8. scripts/get-screen.sh
   → [Verify search results loaded]
   → Task complete!

Multiple Devices

User request: "Open Settings on my phone" (with emulator also running)

1. scripts/check-device.sh
   → Multiple devices connected (2):
   →   [PHYSICAL] 1A051FDF6007PA - Pixel 6
   →   [EMULATOR] emulator-5554 - sdk_gphone64_arm64

   User said "my phone" → target the PHYSICAL device
   Serial to use: 1A051FDF6007PA

2. scripts/check-device.sh -s 1A051FDF6007PA
   → Device connected: Pixel 6
   → Serial: 1A051FDF6007PA
   → Type: Physical
   → Status: Ready

3. scripts/launch-app.sh -s 1A051FDF6007PA settings
   → Resolved 'settings' to package: com.android.settings
   → Launched: com.android.settings

4. scripts/get-screen.sh -s 1A051FDF6007PA
   → [Read XML, verify Settings app is open]
   → Task complete!

Tips

  • Be patient - Android UI can be slow, wait between actions
  • Read carefully - The XML tells you exactly what's on screen
  • Check your work - Get screen after each action to verify state
  • Use screenshots - When XML doesn't give enough context
  • Start simple - Break complex tasks into small steps
  • Multi-device - Always check for multiple devices first; ask user if target is unclear
  • Consistent serial - Once you pick a device, use -s <serial> on ALL commands

平台分布

Codex

38.94%
按下载量换算231

Claude

29.88%
按下载量换算177

Cursor

19.08%
按下载量换算113

Gemini CLI

9.69%
按下载量换算58

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills