Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问clear审计提醒

moai-domain-adb摩艾域 adb

Agent Skill

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

总安装

873

周安装

36

GitHub Stars

公开资料未说明

下载量

285
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/rdmptv/adbautoplayer --skill moai-domain-adb

简介

用于查找、检索和筛选相关信息,适合基于关键词定位内容。

  • 支持多轮交互和结果排序,便于 Agent 快速获取所需资料。
  • 通过 GitHub 安装,需确认是否触发联网或外部服务调用。
  • 权限和维护状态未明,建议在使用前测试小规模用例。
  • 适用于 Codex、Claude、Cursor 和 Gemini CLI,实际行为以仓库实现为准。

SKILL.md

moai-domain-adb: ADB Automation Domain Specialist

Tier 3 Modularized Skill for intelligent Android automation, game bot development, and real-time device orchestration.


🎯 Quick Reference

Core Competencies

DomainCapabilityModule
Device ControlADB connection, shell execution, property inspectionadb-fundamentals
Device ManagementMulti-device orchestration, state tracking, lifecycledevice-management
Game AutomationBot scripting, action sequences, timing controlgame-automation
Vision & DetectionTemplate matching, OCR, region-based detectioncomputer-vision
Tauri IntegrationUI-Python bridge, real-time communication, deploymenttauri-integration

Key Functions (Quick Access)

Device Operations

# Check device status
adb devices --list-long

# Execute shell command
adb shell input tap 540 960

# Get device property
adb shell getprop ro.build.version.sdk

# Install APK
adb install -r game.apk

Bot Control

# Start bot
adb shell am start -n com.game/.MainActivity

# Send input sequence
adb shell input tap x y && sleep 1 && adb shell input tap x2 y2

# Capture screenshot
adb shell screencap -p /sdcard/screen.png

Module Selection Guide

Use when you need to...

  • Understand ADB fundamentals: Load adb-fundamentals module

- Connection protocols, authentication, basic shell operations - Device discovery, property reading, system interaction

  • Manage multiple devices: Load device-management module

- Device state tracking, connection pooling, failover strategies - Batch operations, monitoring, lifecycle management

  • Develop game bots: Load game-automation module

- Click sequences, timing, OCR parsing, state detection - Custom routines, action templates, bot patterns

  • Use vision for detection: Load computer-vision module

- Template matching (OpenCV), OCR (Tesseract) - Region-based detection, image analysis, pattern recognition

  • Integrate with Tauri UI: Load tauri-integration module

- Real-time bot status updates, command queueing - UI ↔ Python communication, resource management


📚 Implementation Guide

Architecture Overview

moai-domain-adb follows a 5-module progressive disclosure pattern:

moai-domain-adb/
├── SKILL.md                    # This file (documentation hub)
├── modules/
│   ├── adb-fundamentals.md     # Level 1: Core ADB operations
│   ├── device-management.md    # Level 2: Multi-device orchestration
│   ├── game-automation.md      # Level 3: Bot development patterns
│   ├── computer-vision.md      # Level 4: Vision-based detection
│   └── tauri-integration.md    # Level 5: UI orchestration
└── scripts/                    # IndieDevDan UV scripts
    ├── adb_device_analyzer.py  # Analyze device capabilities
    ├── adb_bot_generator.py    # Generate bot skeletons
    ├── adb_template_creator.py # Create action templates
    ├── adb_performance_profiler.py  # Profile bot performance
    ├── adb_config_validator.py # Validate configurations
    ├── adb_game_tester.py      # Test bot on devices
    └── adb_deployment_helper.py # Deploy to production

Tier 3 Characteristics

Modularized: 5 independent modules (no cross-module imports) ✅ Production-Ready: 500+ line SKILL.md with comprehensive docs ✅ Scripted: 7 UV scripts following IndieDevDan 13 rules ✅ Delegatable: Works with expert-* and manager-* agents ✅ Reusable: Applicable to any Android automation project

Usage Pattern

# Pattern 1: Load skill for general ADB knowledge
Skill("moai-domain-adb")

# Pattern 2: Load specific module for targeted expertise
# In agent prompt: "Use moai-domain-adb:adb-fundamentals for device operations"

# Pattern 3: Reference UV script for automated tasks
# Command: uv run .claude/skills/moai-domain-adb/scripts/adb_device_analyzer.py --device emulator-5554

Integration Points

With Agents:

  • adb-bot-runner: Executes bots using game-automation patterns
  • adb-device-manager: Manages devices using device-management expertise
  • adb-game-tester: Tests bots using computer-vision and game-automation
  • adb-config-manager: Validates configs using config-validator script
  • adb-workflow-orchestrator: Coordinates all agents using tauri-integration patterns

With Commands:

  • /adb:init → Uses adb-fundamentals + adb_device_analyzer
  • /adb:bot → Uses game-automation + adb_bot_generator
  • /adb:test → Uses computer-vision + adb_game_tester
  • /adb:deploy → Uses tauri-integration + adb_deployment_helper

With UV Scripts: All 7 scripts are self-contained (zero dependencies on each other), follow PEP 723, and implement dual output (human-readable + JSON).

Progressive Disclosure Strategy

Level 1: Getting Started

  • Read: adb-fundamentals module
  • Run: adb_device_analyzer.py to list devices
  • Understand: Basic device connection and property reading

Level 2: Multi-Device Workflows

  • Read: device-management module
  • Understand: Connection pooling, state tracking, failover
  • Build: Scripts that manage 5+ devices simultaneously

Level 3: Game Bot Development

  • Read: game-automation module
  • Understand: Click sequences, timing control, OCR integration
  • Build: Custom routines for game-specific tasks

Level 4: Vision-Based Automation

  • Read: computer-vision module
  • Understand: Template matching, OCR parsing, region detection
  • Build: Bots that adapt to UI changes dynamically

Level 5: Production Orchestration

  • Read: tauri-integration module
  • Understand: Real-time UI updates, command queuing, resource management
  • Build: Enterprise workflows with Tauri UI control

🚀 Advanced Topics

Skill Composition Strategy

moai-domain-adb is designed for modular composition:

# Example 1: Simple device check
# Required: adb-fundamentals
agent = Task(
    subagent_type="expert-backend",
    prompt="Use moai-domain-adb:adb-fundamentals to list ADB devices"
)

# Example 2: Multi-device bot deployment
# Required: device-management + game-automation + tauri-integration
agent = Task(
    subagent_type="adb-workflow-orchestrator",
    prompt="Deploy game bot to 3 devices"
)

# Example 3: Vision-based testing
# Required: computer-vision + game-automation
agent = Task(
    subagent_type="adb-game-tester",
    prompt="Test bot with computer vision verification"
)

Performance Optimization

Device Batching:

  • Group commands by device to reduce round-trip latency
  • Use adb_performance_profiler.py to identify bottlenecks
  • Target: Execute 100 actions in <5 seconds

Caching Strategies:

  • Cache device properties (refreshed every 60s)
  • Cache template images (refreshed on detection failure)
  • Cache bot configurations (invalidated on user edit)

Concurrency:

  • Run multi-device operations with ThreadPoolExecutor
  • Limit to 5 concurrent ADB operations per host
  • Use queuing for >5 devices

Security Considerations

Authentication:

  • ADB uses RSA key exchange; validate device certificates
  • Never store unencrypted device pairing keys
  • Rotate pairing keys quarterly for production devices

Permissions:

  • Request minimal shell commands (avoid su unless necessary)
  • Use app-specific commands instead of root access
  • Audit bot actions for unintended side effects

Data Protection:

  • Never capture sensitive data in screenshots
  • Encrypt stored configurations containing API keys
  • Use secure storage for game credentials

Debugging & Troubleshooting

Common Issues:

IssueDiagnosisSolution
Device not foundadb_device_analyzer.py --check-connectionVerify USB connection, check ADB daemon
Slow bot executionadb_performance_profiler.py --device <id>Reduce click delays, batch operations
Template matching failsCheck image DPI/resolutionRun adb_template_creator.py --device <id>
OCR accuracy poorPreprocess image (contrast, threshold)See computer-vision module for tips
Tauri communication lagCheck Python process CPUReduce log verbosity, optimize render loop

Debug Mode:

# Enable verbose logging
export ADB_DEBUG=1
uv run .claude/skills/moai-domain-adb/scripts/adb_device_analyzer.py --verbose

# Trace ADB commands
adb logcat | grep "adb_bot_runner"

Testing Strategy (TRUST 5 Framework)

Test Coverage Target: ≥85%

  • Unit Tests: Individual module functions (py.test)
  • Integration Tests: Module interactions (device mock)
  • E2E Tests: Full workflow with real devices (optional)
  • Performance Tests: Execution time benchmarks
  • Security Tests: Input validation, permission checks

Test Execution:

# Run all tests
pytest tests/ -v --cov=.claude/skills/moai-domain-adb

# Run specific module tests
pytest tests/test_device_management.py -v

# Profile performance
pytest tests/ --benchmark-only

📖 Module Navigation

Each module builds upon previous knowledge but is independently usable:

- ADB architecture, connection protocols, device discovery - Shell execution, property reading, device interaction

- Multi-device orchestration, state tracking, connection pooling - Lifecycle management, monitoring, failover strategies

- Bot scripting patterns, click sequences, timing control - OCR integration, state detection, action templates

- Template matching (OpenCV), OCR (Tesseract) - Region detection, image preprocessing, pattern recognition

- Tauri-Python IPC, real-time updates, command queueing - Resource management, deployment strategies, monitoring


🛠️ Scripts & Tools

All scripts follow IndieDevDan 13 Rules (PEP 723, 9-section structure, dual output):

# Analyze device capabilities
uv run scripts/adb_device_analyzer.py --device emulator-5554 --json

# Generate bot skeleton
uv run scripts/adb_bot_generator.py --game "My Game" --output my_bot.py

# Create action template
uv run scripts/adb_template_creator.py --screenshot screen.png --region "0,0,1080,1920"

# Profile bot performance
uv run scripts/adb_performance_profiler.py --bot bot.py --iterations 100

# Validate configuration
uv run scripts/adb_config_validator.py --config config.yaml --strict

# Test bot on device
uv run scripts/adb_game_tester.py --bot bot.py --device emulator-5554

# Prepare deployment
uv run scripts/adb_deployment_helper.py --bot bot.py --target production

Complete Scripts Reference (36 scripts)

All scripts are located in scripts/ directory and organized by category. Each script supports:

  • --device/-d - Specify device ID (defaults to first connected)
  • --toon - Output in TOON/YAML format for automation
  • --verbose/-v - Enable verbose logging
  • --help - Show detailed help and usage examples

See scripts/README.md for comprehensive documentation with 150+ usage examples.

🔌 Connection (4 scripts)

Location: scripts/connection/

ScriptPurposeKey OptionsExample
adb_connect.pyConnect to device via IP:port--device (default: 127.0.0.1:5555)uv run scripts/connection/adb_connect.py
adb_disconnect.pyDisconnect device gracefully--deviceuv run scripts/connection/adb_disconnect.py
adb_restart_server.pyRestart ADB server--verboseuv run scripts/connection/adb_restart_server.py
adb_device_status.pyList all devices and status--toonuv run scripts/connection/adb_device_status.py

📱 Screen (6 scripts)

Location: scripts/screen/

ScriptPurposeKey OptionsExample
adb_screenshot.pyCapture screenshot--output FILEuv run scripts/screen/adb_screenshot.py --output capture.png
adb_tap.pyTap at coordinates--x X --y Y --count Nuv run scripts/screen/adb_tap.py --x 500 --y 1000
adb_swipe.pySwipe gesture--preset {up,down,left,right} or --start X,Y --end X,Yuv run scripts/screen/adb_swipe.py --preset up
adb_keyevent.pySend key event--key {back,home,menu,power,volume_up}uv run scripts/screen/adb_keyevent.py --key back
adb_text_input.pyType text--text TEXTuv run scripts/screen/adb_text_input.py --text "Hello"
adb_screenrecord.pyRecord screen video--output FILE --duration SECONDSuv run scripts/screen/adb_screenrecord.py --duration 60

📦 App (5 scripts)

Location: scripts/app/

ScriptPurposeKey OptionsExample
adb_app_list.pyList installed apps--filter TEXT, --system, --alluv run scripts/app/adb_app_list.py --filter afk
adb_app_start.pyStart app by package-p PACKAGE, --waituv run scripts/app/adb_app_start.py -p com.afk.journey
adb_app_stop.pyForce stop app-p PACKAGEuv run scripts/app/adb_app_stop.py -p com.afk.journey
adb_app_install.pyInstall APK--apk FILEuv run scripts/app/adb_app_install.py --apk game.apk
adb_app_uninstall.pyUninstall app-p PACKAGE, --keep-datauv run scripts/app/adb_app_uninstall.py -p com.example

ℹ️ Info (4 scripts)

Location: scripts/info/

ScriptPurposeKey OptionsExample
adb_device_info.pyDevice specifications--toonuv run scripts/info/adb_device_info.py
adb_display_info.pyDisplay resolution/DPI--toonuv run scripts/info/adb_display_info.py
adb_running_app.pyCurrent foreground app--toonuv run scripts/info/adb_running_app.py
adb_battery_info.pyBattery status--toonuv run scripts/info/adb_battery_info.py

⚡ Performance (3 scripts)

Location: scripts/performance/

ScriptPurposeKey OptionsExample
adb_cpu_monitor.pyReal-time CPU monitoring--duration SECONDS, --package PKGuv run scripts/performance/adb_cpu_monitor.py --duration 60
adb_memory_monitor.pyMemory usage monitoring--duration SECONDS, --package PKGuv run scripts/performance/adb_memory_monitor.py --duration 60
adb_logcat_filter.pyFilter logcat logs--tag TAG, --priority {V,D,I,W,E,F}, --followuv run scripts/performance/adb_logcat_filter.py --tag MyApp --priority E

🤖 Automation (4 scripts)

Location: scripts/automation/

ScriptPurposeKey OptionsExample
adb_game_loop.pyExecute repeating sequence-s FILE, -l LOOPS, --infiniteuv run scripts/automation/adb_game_loop.py -s daily.json -l 10
adb_wait_for_app.pyWait for app to start--package PKG, --timeout SECONDSuv run scripts/automation/adb_wait_for_app.py -p com.afk.journey
adb_click_sequence.pyExecute sequence once-s FILEuv run scripts/automation/adb_click_sequence.py -s tutorial.json
adb_screenshot_compare.pyCompare screenshots-b BEFORE -a AFTER, --threshold FLOATuv run scripts/automation/adb_screenshot_compare.py -b ref.png -a test.png

🛠️ Utils (3 scripts)

Location: scripts/utils/

ScriptPurposeKey OptionsExample
adb_shell.pyExecute shell commands-c COMMAND, --timeout SECONDSuv run scripts/utils/adb_shell.py -c "ls /sdcard"
adb_push.pyPush file to device-l LOCAL -r REMOTEuv run scripts/utils/adb_push.py -l file.txt -r /sdcard/
adb_pull.pyPull file from device-r REMOTE -l LOCALuv run scripts/utils/adb_pull.py -r /sdcard/screenshot.png -l.

🔧 Monitoring (7 scripts)

Location: scripts/ (root level)

ScriptPurposeKey OptionsExample
adb_bot_generator.pyGenerate bot scripts--template NAME, --output FILEuv run scripts/adb_bot_generator.py --template daily_quests
adb_config_validator.pyValidate configs--config FILE, --strictuv run scripts/adb_config_validator.py --config config.json
adb_deployment_helper.pyDeploy to devices--apk FILE, --all, --devices IDSuv run scripts/adb_deployment_helper.py --apk game.apk --all
adb_device_analyzer.pyAnalyze capabilities--aspects LIST, --output FILEuv run scripts/adb_device_analyzer.py --aspects performance,battery
adb_game_tester.pyTest game automation--test-suite FILE, --screenshotsuv run scripts/adb_game_tester.py --test-suite tests.json
adb_performance_profiler.pyProfile performance--package PKG, --duration SECONDSuv run scripts/adb_performance_profiler.py -p com.afk.journey
adb_template_creator.pyCreate templates--name NAME, --category CATuv run scripts/adb_template_creator.py --name my_automation

JSON Sequence Format (Automation Scripts)

For adb_game_loop.py and adb_click_sequence.py, use JSON format:

{
  "name": "Daily Quest Automation",
  "steps": [
    {"action": "tap", "x": 500, "y": 1000, "delay": 2},
    {"action": "swipe", "start": [500, 1500], "end": [500, 500], "duration": 300},
    {"action": "wait", "duration": 3},
    {"action": "screenshot", "output": "/tmp/check.png"},
    {"action": "keyevent", "key": "back"},
    {"action": "text_input", "text": "Hello World"}
  ]
}

Supported Actions: tap, swipe, wait, screenshot, keyevent, text_input

Common Utilities

All scripts use shared utilities from scripts/common/:

  • adb_utils.py - ADB device operations and connection management
  • cli_utils.py - Click decorators, Rich formatters, output helpers
  • error_handlers.py - Standardized error handling and exit codes (0, 2, 3, 4)
  • path_utils.py - Project root detection and path resolution

Exit Codes

All scripts use standardized exit codes:

  • 0 - Success
  • 2 - Device offline or not found
  • 3 - ADB command failed or execution error
  • 4 - Invalid argument or configuration

Output Formats

Text Output (default): Rich-formatted console output with colors and tables TOON Output (--toon): YAML/structured format for automation and parsing


📞 Support & References

Quick Links:

  • Modules: See individual module files in modules/
  • Scripts: See individual scripts in scripts/ with --help
  • Examples: See integration patterns in adb-* agents
  • Tests: See test suite in tests/

Context7 References:


Version: 1.0.0 Status: ✅ Production Ready (Phase 1 Foundation) Last Updated: 2025-12-01 Next Phase: Create 5 core modules + 7 UV scripts

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

32.14%
按下载量换算92

Antigravity

22.05%
按下载量换算63

Gemini CLI

19.98%
按下载量换算57

OpenCode

11.63%
按下载量换算33

Cursor

7.31%
按下载量换算21

windsurf

3.9%
按下载量换算11

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/rdmptv/adbautoplayer --skill moai-domain-adb;npx skills add rdmptv/adbautoplayer --skill "moai-domain-adb" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills