phone-use

phone-use is a skill for Claude Code, Codex from niki914/zafiro. It costs 26 tokens per session (848 once invoked), scanned A, original, MIT.

A skill for reading and controlling an Android phone through its on-screen interface. It uses accessibility information to find controls and perform actions such as tapping, typing, scrolling, and navigation.

In plain words
What is it for?
Use it to launch apps, inspect screens, find controls, enter text, tap buttons, scroll, swipe, and use Android navigation keys.
Why use it?
It provides the defined method for operating apps when the task involves visible phone content. It also specifies a fallback for coordinate-based actions and limits retries when an app does not expose usable screen information.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to launch apps, inspect screens, find controls, enter text, tap buttons, scroll, swipe, and use Android navigation keys.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/niki914/zafiro/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 niki914/zafiro --skill phone-use
Clone the repo
git clone --depth 1 https://github.com/niki914/zafiro

Made for: Claude Code, Codex.

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/niki914/zafiro/phone-use/github.svg)](https://agentmods.dev/skills/niki914/zafiro/phone-use)
Your own site
<a href="https://agentmods.dev/skills/niki914/zafiro/phone-use"><img src="https://agentmods.dev/badge/skills/niki914/zafiro/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/niki914/zafiro/phone-use"><img src="https://agentmods.dev/badge/skills/niki914/zafiro/phone-use.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 848 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00026 $0.00848
Opus 5.5 $0.00010 $0.00339
Sonnet 5.5 $0.00005 $0.00170
Haiku 4.5 $0.00003 $0.00085

Measured 10d ago against content hash ea31eb43d5d2, 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 0 findings 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 10d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

app/src/main/assets/skills/phone-use/SKILL.md · 56 lines

How it starts

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

Overview

You interact with Android screens (vd-* or phone) across two layers:

  • Semantic tree: Inspect hierarchy, search text, and tap/type/scroll by node token.
  • Visual pixels: Capture screenshots when the tree is unavailable, then tap or swipe by coordinates.

Write actions automatically settle the UI and return the refreshed tree with a new version token — never issue a redundant read immediately after an action.

Screen Policy: Virtual First

Always prioritize non-intrusive execution:

  1. Default to virtual display (vd-*):
    • Open or reuse a virtual display using screens. It runs the app in the background and displays a floating preview card so the user can observe without interruption.
    • Launch the target app onto the virtual display with open after find_installed_apps returns its package name.
    • Keep alive: Leave the virtual display open when the task finishes so subsequent turns or user actions can continue on it. Only release it via screens if the user explicitly asks to close it.
  2. Fallback to physical screen (phone):
    • Use the main screen only when the user explicitly requests it or when virtual display creation fails.

Interaction Strategy

1. Semantic Tree vs. Visual Coordinates

  • Tree-first: Prefer targeting nodes by token ({version}_{index}). The framework automatically handles node clicks and gesture fallbacks.
  • Dense trees: Use search with keywords rather than scanning huge hierarchy dumps.
  • Custom-drawn apps (Canvas / Flutter / Unity): If the tree is empty or root-only, switch to visual mode immediately: capture a screenshot and act via physical coordinates.
  • Coordinate scaling: Screenshots may be downscaled. Screen dimensions are in the tree header (screen: [w, h]) or screens list. Always scale image coordinates to screen pixels: $$\text{screen_x} = \text{image_x} \times \frac{\text{screen_w}}{\text{image_w}}$$ $$\text{screen_y} = \text{image_y} \times \frac{\text{screen_h}}{\text{image_h}}$$

Read the full file on GitHub · 56 lines

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. 10d ago Changed ea31eb43d5d2
  2. 14d ago Changed · -2 lines · -38 tokens per session 0b76796e4fa9
  3. 15d ago Changed · -2 lines · -12 tokens per session a790d9208680
  4. 1mo ago Changed · -118 lines 0ef0514af3c9
  5. 3mo ago First seen · 178 lines · 76 tokens per session scan A 74de1bde9c27

Subscribe to this mod's changes

phone-use is a skill published in the GitHub repository niki914/zafiro (406 stars, last pushed 3d ago), licensed MIT. It adds 26 tokens to every session and 848 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

phone-use compared with skills from other repositories

phone-use next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
phone-useniki914/zafiroSkill4063d agoMITA26Claude Code, Codex
kotlin-expertpersonamanagmentlayer/pclSkill461mo agoApache-2.0A55Claude Code
dagger-hilt-expertJosephSanjaya/skillsSkill51mo agoMITA145Claude Code, Codex
android-startup-optimizerJosephSanjaya/skillsSkill51mo agoMITA128Claude Code, Codex
android-amplitude-sdk-expertJosephSanjaya/skillsSkill51mo agoMITA170Claude Code, Codex
android-leak-expertJosephSanjaya/skillsSkill51mo agoMITA123Claude Code, Codex
compose-component-expertJosephSanjaya/skillsSkill51mo agoMITA96Claude Code, Codex