phone-use

phone-use is a skill for Claude Code from SunflowersLwtech/sunkit. It costs 112 tokens per session (4,936 once invoked), scanned A, original, Apache-2.0.

A skill for operating Android and iOS phones, simulators, real devices, and cloud devices. It supports actions such as tapping interface elements, entering text, taking screenshots, recording screens, installing apps, and reading logs.

In plain words
What is it for?
Running mobile app tests, interacting with Android or iOS screens, installing app packages, using deep links, capturing screens, and inspecting device logs.
Why use it?
It gathers phone automation paths in one place while checking device ownership and avoiding accidental interaction with a person's private activity. It covers both simulated devices and some real-device workflows.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the cua plugin — 3 skills shipped together

Good fit Running mobile app tests, interacting with Android or iOS screens, installing app packages, using deep links, capturing screens, and inspecting device logs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sunflowerslwtech/sunkit/phone-use
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add SunflowersLwtech/sunkit --skill phone-use
Clone the repo
git clone --depth 1 https://github.com/SunflowersLwtech/sunkit

Made for: Claude Code.

Or install cua, the plugin that ships this one along with the rest of its 3 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for phone-use

README.md
[![agentmods](https://agentmods.dev/badge/skills/sunflowerslwtech/sunkit/phone-use/github.svg)](https://agentmods.dev/skills/sunflowerslwtech/sunkit/phone-use)
Your own site
<a href="https://agentmods.dev/skills/sunflowerslwtech/sunkit/phone-use"><img src="https://agentmods.dev/badge/skills/sunflowerslwtech/sunkit/phone-use/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for phone-use

Your own site · 80×15
<a href="https://agentmods.dev/skills/sunflowerslwtech/sunkit/phone-use"><img src="https://agentmods.dev/badge/skills/sunflowerslwtech/sunkit/phone-use.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 112 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,936 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00112 $0.04936
Opus 5.5 $0.00045 $0.01974
Sonnet 5.5 $0.00022 $0.00987
Haiku 4.5 $0.00011 $0.00494

Measured 19d ago against content hash e573d70c3105, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

phone-use scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 19d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/bs_probe.py, scripts/droid.py, scripts/ios-sim-paste.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

然后 `curl -s 127.0.0.1:9333/json` 拿每个标签页的 `title` 和 `url`。
plugins/cua/skills/phone-use/SKILL.md · 218 lines

How it starts

The opening of the file, as written. The whole thing — 218 lines — stays where its author put it; the contents beside it link to each section on GitHub.

phone-use — 手机和模拟器

下面的路径都相对本 SKILL.md 所在目录(记作 scripts/)。工具链: AXe(iOS 模拟器,brew 装)、 uiautomator2(安卓,经 uv run 免安装使用)、 Appium(真机与云)、adb / xcrun simctl。

0. 先确认设备是谁的、能不能动

这一步放最前面,因为点错一下就收不回来。

  • 别人的真机默认不碰。 拿到机主明确授权后,动手前仍要确认他此刻没在用;脚本 层面再设一道闸:PHONE_USE_REAL_DEVICE_OK=1 才允许操作真机(droid.py 强制检查, 物理设备不设就退出码 5)。
    • 动手前先看一眼:屏幕是否点亮、前台是什么 App (adb -s <id> shell dumpsys window | grep -E 'mCurrentFocus|mDreamingLockscreen')。 前台是聊天、相册这类私人 App,或 1 分钟内有人在操作,就等几分钟再来,别抢。
    • 只截自己要的 App 的画面;截到别的 App 的私人内容(聊天、邮件、相册)立刻删掉, 不外发、不写进笔记。读短信验证码可以,只读需要的那一条。
      • 每次截图都和前台检查写在同一条命令里:先读 topResumedActivity,包名不是 目标 App 就不截。机主随时会拿起手机切走;相机/人脸验证页开着前置摄像头,截图 会拍到机主的脸。付款、人脸这类环节交给机主本人时,用前台包名轮询等它结束, 别截图看进度。
    • 不改机主的设置(屏幕超时、通知、账号、安全);做完把前台恢复成接手时的样子, 关掉投屏窗口。
    • 锁屏了就停下来交给机主,不要尝试解锁。
    • 判断有没有人正在用(安卓上实测可靠的读法):
      • 最近触摸看 dumpsys power 的 lastUserActivityTime=… (N ms ago),直接取括号 里的数。别拿 /proc/uptime 去减,两个时钟差着几十秒。
      • 锁屏看 dumpsys window 的 isKeyguardShowing。
      • 出声看 dumpsys media.audio_flinger:各条 Tracks of which N are active 的 N 加起来大于 0 才是真在出声。
      • 亮屏本身不算证据:很多设备充电时常亮。
  • 真机上别装包,也别用会动剪贴板/输入法的输入路径。
    • adb install 在不少机型上会弹生物识别确认,要机主本人通过;没人在旁边就一直卡住。
    • uiautomator2 的 send_keys:AdbKeyboard 没装时,它把文字写进剪贴板再粘贴,会覆盖 机主的剪贴板;装了时,它把默认输入法切成 AdbKeyboard 且不切回来。
    • 真机上往输入框填中文,改用元素的 set_text:底层是 jsonrpc setText,不经过上 一条的输入法/剪贴板代码。结束后可核对 settings get secure default_input_method 没被换掉。
    • 网页(WebView)里的输入框,set_text 可能只改了原生控件、页面没收到:判据是填 完后出现了对应的联想词,再点搜索。按文字找「搜索」会先命中 text 同样是「搜索」 的 WebView 节点本身,要限定 class 是 Button。
    • 购物类 App 里只点带文字的元素,结束时数一次购物车。 按描述点行可能弹「删除」、 点无文字按钮可能误加购;看商品详情从搜索页进,不从购物车进;开始和结束各读一次 购物车件数对比。
    • 前台出现别人的账号安全页(两步验证、设备确认之类)就退开:这要机主本人批准—— 不看、不截、不点,也别用别的 App 盖住它;用前台包名轮询,等它离开前台再继续。
  • 多个 agent / 会话共用设备时先认领。 用「认领文件」排队:在共享的临时目录里 mkdir <锁目录>/<设备名>(成功才算拿到,失败隔一会儿重试),里面写上谁、什么 时候、要干什么;一段操作做完立刻删除释放。这管不住人,只管得住并发的自动化会话 ——所以真机在使用前仍要走上面的「确认没人在用」。
  • 每条命令都要指名设备。 adb 带 -s,droid.py 带 -s,axe 带 --udid, Appium 填 appium:udid。「只连着一台设备」从来不是安全假设——随时可能有别的 会话的模拟器、或机主的真机挂在上面。
    • droid.py 只接受 emulator-N 序列号。物理设备序列号会返回 exit 5(见 PHONE_USE_REAL_DEVICE_OK)。
  • 模拟器也可能是别的会话起的。 adb devices 或 xcrun simctl list devices booted 里不是你起的那台,就别动它。分清两类:
    • 共享常驻模拟器(机器上本来就开着的):借用跑测试,收尾不要 shutdown, 留给下一个任务热态复用——模拟器冷启动一次能吃掉一两分钟的高负载。
    • 自建临时模拟器:自己 xcrun simctl create phone-use-<任务名> 再 boot 的, 收尾 xcrun simctl shutdown <U> && xcrun simctl delete <U>。
    • 在已有人用这台机器跑构建/测试时,xcodebuild test 建议 -collect-diagnostics never: UI 测试失败时它默认自动拉起 simctl diagnose,能吃满好几个核。
  • 别在同一台已经很忙的机器上同时开安卓和 iOS 模拟器:两个模拟器一起启动能把负载 顶到数十倍。

Read the full file on GitHub · 218 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 19d ago First seen · 218 lines · 112 tokens per session scan A e573d70c3105

Subscribe to this mod's changes

phone-use is a skill published in the GitHub repository SunflowersLwtech/sunkit (15 stars, last pushed yesterday), licensed Apache-2.0. It adds 112 tokens to every session and 4,936 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-12.

Related

phone-use compared with skills from other repositories

phone-use next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
phone-useSunflowersLwtech/sunkitSkill15yesterdayApache-2.0A112Claude Code
platform-conventionsOwl-Listener/designer-skillsSkill3.6kyesterdayMITA55Claude Code, Codex
ios-developmentAnastasiyaW/codex-claude-code-configSkill2184d agoMITA188Claude Code
higroedyrustam/vibes-plugSkill1304d agoMITA57Cursor
apple-ecosystem-expertroedyrustam/vibes-plugSkill1304d agoMITA42Cursor
tauri-expertroedyrustam/vibes-plugSkill1304d agoMITA44Cursor
mobile-expo-expertroedyrustam/vibes-plugSkill1304d agoMITA32Cursor