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.
npx skills add SunflowersLwtech/sunkit --skill phone-usegit clone --depth 1 https://github.com/SunflowersLwtech/sunkitWrote 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.
[](https://agentmods.dev/skills/sunflowerslwtech/sunkit/phone-use)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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`。 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 才是真在出声。 - 亮屏本身不算证据:很多设备充电时常亮。
- 最近触摸看
- 动手前先看一眼:屏幕是否点亮、前台是什么 App
(
- 真机上别装包,也别用会动剪贴板/输入法的输入路径。
adb install在不少机型上会弹生物识别确认,要机主本人通过;没人在旁边就一直卡住。- uiautomator2 的
send_keys:AdbKeyboard 没装时,它把文字写进剪贴板再粘贴,会覆盖 机主的剪贴板;装了时,它把默认输入法切成 AdbKeyboard 且不切回来。 - 真机上往输入框填中文,改用元素的
set_text:底层是 jsonrpcsetText,不经过上 一条的输入法/剪贴板代码。结束后可核对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 模拟器:两个模拟器一起启动能把负载 顶到数十倍。
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.
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.
- 19d ago First seen · 218 lines · 112 tokens per session scan A e573d70c3105
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.
phone-use compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| phone-useSunflowersLwtech/sunkit | Skill | 15 | yesterday | Apache-2.0 | A | 112 | Claude Code |
| platform-conventionsOwl-Listener/designer-skills | Skill | 3.6k | yesterday | MIT | A | 55 | Claude Code, Codex |
| ios-developmentAnastasiyaW/codex-claude-code-config | Skill | 218 | 4d ago | MIT | A | 188 | Claude Code |
| higroedyrustam/vibes-plug | Skill | 130 | 4d ago | MIT | A | 57 | Cursor |
| apple-ecosystem-expertroedyrustam/vibes-plug | Skill | 130 | 4d ago | MIT | A | 42 | Cursor |
| tauri-expertroedyrustam/vibes-plug | Skill | 130 | 4d ago | MIT | A | 44 | Cursor |
| mobile-expo-expertroedyrustam/vibes-plug | Skill | 130 | 4d ago | MIT | A | 32 | Cursor |