mobile-agent: Skill for Windsurf

.windsurf/skills/mobile-automation/SKILL.md

mobile-automation is a skill for Windsurf from congwa/mobile-agent. It costs 0 tokens per session (3,922 once invoked), scanned A, original, Apache-2.0.

A mobile testing skill that combines a phone-control tool with Feishu, a Chinese collaboration platform, to manage test cases and operate Android or iOS apps.

In plain words
What is it for?
Use it to read and update Feishu test cases, launch apps, tap controls, enter text, and run batches of mobile app tests.
Why use it?
It connects test-case tracking with actions on a real mobile device, including recording results and handling batches of tests.

Skill for Windsurf

Written for Windsurf: installed under .windsurf/.

This is congwa/mobile-agent's own configuration. It tells Windsurf how to work on mobile-agent itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mobile-agent configures →

Reuse

Borrowing it

Nothing to install: this file belongs to congwa/mobile-agent. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/congwa/mobile-agent/master/.windsurf/skills/mobile-automation/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/congwa/mobile-agent

Made for: Windsurf.

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 mobile-automation

README.md
[![agentmods](https://agentmods.dev/badge/skills/congwa/mobile-agent/mobile-automation/github.svg)](https://agentmods.dev/skills/congwa/mobile-agent/mobile-automation)
Your own site
<a href="https://agentmods.dev/skills/congwa/mobile-agent/mobile-automation"><img src="https://agentmods.dev/badge/skills/congwa/mobile-agent/mobile-automation/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 mobile-automation

Your own site · 80×15
<a href="https://agentmods.dev/skills/congwa/mobile-agent/mobile-automation"><img src="https://agentmods.dev/badge/skills/congwa/mobile-agent/mobile-automation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,922 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.
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.00000 $0.03922
Opus 5.5 $0.00000 $0.01569
Sonnet 5.5 $0.00000 $0.00784
Haiku 4.5 $0.00000 $0.00392

Measured 1mo ago against content hash 76a291b72a4b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mobile-automation 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 1mo 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.

.windsurf/skills/mobile-automation/SKILL.md · 461 lines

How it starts

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

mobile-automation

Mobile MCP + 飞书 MCP 双协作自动化测试专家。

核心能力:

  • 飞书多维表格用例管理(读取、执行、回写结果)
  • Mobile MCP 移动端自动化(Android/iOS)
  • 智能重试与降级策略
  • 每10条用例自动分批,打开新会话继续
  • Token 优化策略(减少 80% 的截图消耗)

触发关键词:手机自动化、移动端测试、App 测试、mobile_mcp、点击手机、操作手机、执行飞书用例、批量执行、多维表格


🔗 双MCP协作架构

┌─────────────────────────────────────────────────────────────┐
│                     AI(Windsurf)                           │
│                                                             │
│   ┌──────────────┐              ┌──────────────┐           │
│   │  飞书 MCP    │              │  Mobile MCP  │           │
│   │              │              │              │           │
│   │ • 读取用例   │              │ • 启动App    │           │
│   │ • 写入结果   │              │ • 点击元素   │           │
│   │ • 更新状态   │              │ • 输入文本   │           │
│   └──────┬───────┘              └──────┬───────┘           │
│          │                             │                    │
│          ▼                             ▼                    │
│   ┌──────────────┐              ┌──────────────┐           │
│   │ 飞书多维表格 │              │   手机设备   │           │
│   └──────────────┘              └──────────────┘           │
└─────────────────────────────────────────────────────────────┘

🎯 核心原则

1. Token 优化(最重要)

永远优先使用 list_elements,而不是截图!

方式 Token 消耗 使用场景
list_elements ~500 ✅ 确认页面状态、查找元素
take_screenshot ~2000 ❌ 只在需要视觉分析时使用
❌ 错误流程:截图 → 分析 → 点击 → 截图确认
✅ 正确流程:list_elements → 点击 → list_elements 确认

2. 工具选择优先级

点击元素时,按以下优先级选择工具:

1️⃣ click_by_text(最稳定,跨设备兼容)
   ↓ 找不到文本?
2️⃣ click_by_id(需要 resource-id)
   ↓ 没有 id?
3️⃣ click_by_percent(百分比坐标,跨分辨率)
   ↓ 复杂场景?
4️⃣ click_at_coords(兜底,需要截图获取坐标)

3. 验证策略

使用 verify 参数减少额外调用:

# ❌ 低效(3次调用)
list_elements()
click_by_text("登录")
list_elements()  # 确认

# ✅ 高效(2次调用)
list_elements()
click_by_text("登录", verify="首页")  # 自动验证"首页"出现

📱 常见场景

场景 1:启动 App 并处理弹窗

# 标准流程
1. launch_app("com.example.app")
2. wait(2)  # 等待启动
3. close_popup()  # 自动检测并关闭弹窗(无需先截图)
4. list_elements()  # 确认主页面

Read the full file on GitHub · 461 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. 1mo ago First seen · 461 lines · 0 tokens per session scan A 76a291b72a4b

Subscribe to this mod's changes

mobile-automation is a skill published in the GitHub repository congwa/mobile-agent (51 stars, last pushed 8mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 3,922 tokens. 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

Other skills, from other repositories

android-ui-journey-testing

XML-specified Android UI journey testing, interactive step execution, assertion verification, and JSON outcome reporting.

sickn33/agentic-awesome-skills · 27 tokens

android_ui_verification

Automated end-to-end UI testing and verification on an Android Emulator using ADB.

sickn33/agentic-awesome-skills · 22 tokens

solopi-ai

A command-line framework for testing Android apps and devices with SoloPi, including on-device or cloud AI decision models. It manages devices, test cases, recorded interactions, replays, performance history, and evidence.

alipay/SoloPi · 82 tokens

dogfood

Systematically explore and test a mobile app on iOS/Android with agent-device to find bugs, UX issues, and other problems. Use when asked to dogfood, QA, exploratory test, find issues, bug hunt, or test this app on mobile.

callstack/agent-device · 55 tokens

eas-simulator

Run and control a user's app on a remote iOS/Android simulator hosted on EAS cloud. Read before running any eas simulator: commands - it has the current syntax for this experimental API. Use whenever the user needs a simulator they can't run locally - 'run my app on a cloud simulator', 'use eas simulator to…

expo/skills · 243 tokens

mobile-automation

Control Android and iOS devices, emulators and simulators — launch apps, tap, swipe, type, take screenshots, read the accessibility tree. Use when a task involves a mobile device or app, mobile UI testing, or reproducing a bug on a phone.

mobile-next/mobile-mcp · 58 tokens