agent-device
ما الذي تفعله
تشغّل هذه المهارة أداة agent-device لفتح تطبيق وقراءة شاشته والنقر عليها والكتابة فيها والتمرير. وهي موجهة للمطورين والمختبرين الذين يريدون من الذكاء الاصطناعي فحص سلوك تطبيقات الجوال.
متى تستخدمها
- ✓عندما تريد من وكيلك فتح تطبيق والمرور على شاشة على هاتف أو محاكٍ.
- ✓عندما تريد التحقق من تغيير في تطبيق جوال باستخدامه على جهاز.
- ✓عندما تريد لقطات شاشة أو تفاصيل لخطأ في تطبيق جوال.
رابط المهارة
https://github.com/callstack/agent-device/blob/main/skills/agent-device/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“افتح تطبيقي في محاكي iOS، وسجّل الدخول بحساب الاختبار، وأخبرني هل تُحمّل شاشة الإعدادات.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يفتح الوكيل التطبيق، ويقرأ شاشته كقائمة أهداف، ويتصرف عليها. وبعد كل خطوة يقرأ التغيير ويتحقق من النتيجة التي طلبتها.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
agent-device
For a normal app-driving task, start immediately. Do not probe first with --help, --version, devices, appstate, snapshot, or screenshot:
agent-device open <app> --foreground
That starts the session and returns the initial interactive snapshot with @refs.
Loop: act with press|click|fill|longpress <target> ... --settle, scroll <direction> --settle, or back --settle; continue from the printed diff, verify the named expectation (wait text "...", is, get, or find), then run agent-device close, or agent-device close --shutdown if your session booted a local simulator or emulator, unless the user asks to keep it running.
Reaching an off-screen target is one command, not a scroll-and-check loop: scroll down --until <selector> scrolls until that element is on screen, and scroll bottom runs to the end of the content. Repeated bare scroll down calls are the slow way to find something.
Copy refs byte-for-byte: @e12, @e12~s4 — keep the @ and any ~sN. Prefer current refs, then id/label/role selectors; coordinates are a last resort. If snapshot reports sparse/AX-unavailable, its refs and selectors are invalid: run agent-device screenshot, inspect the image, use coordinates, then retry snapshot -i after navigating. Otherwise run snapshot -i only when the diff lacks the next target.
Error output includes corrective hints; follow them instead of re-planning. Only when the task is specialized (for example gestures, scripting, TV, macOS, remote, or debugging) or a command shape is unclear, run agent-device help <topic>. agent-device --help lists topics, but is not a startup step.
To capture network traffic on a Limrun session, see agent-device help remote or the Limrun docs.
الأسئلة الشائعة
هل يحتاج الوكيل إلى أداة مثبتة أولًا؟
نعم. تثبّت أداة agent-device بنفسك قبل أن يستخدمها الوكيل.
هل تعمل مع تطبيقات التلفاز أيضًا؟
تغطي المهارة أجهزة التحكم في التلفاز وتطبيقات Android TV وFire TV وتطبيقات Amazon Vega OS TV.
هل تغلق المحاكي بعد الاختبار؟
إذا كانت الجلسة قد شغّلت المحاكي أو المحاكي الافتراضي، يغلقه في النهاية إلا إذا طلبت إبقاءه شغالًا.
التفاصيل
الوصف الأصلي من المؤلف
Automates Apple-platform apps (iOS, tvOS, macOS), Android devices (including Android TV and Fire TV on Fire OS), and Amazon Vega OS TV apps in Vega Virtual Devices. Use when navigating apps, taking snapshots/screenshots where supported, driving TV remotes, tapping, typing, scrolling, extracting UI info, collecting evidence, or planning agent-device CLI commands.
repo: callstack/agent-device
الشعبية
- نجوم GitHub
- 5.2k
- الترتيب
- #15026
- الترخيص
- MIT
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
android-emulator
5.2kتساعد وكيلك على فتح تطبيق Android في محاكٍ، وفحص شاشته، والمرور على سير عمل بالنقر، وجمع الأدلة عندما يتعطل شيء.
dogfood
5.2kتتيح لوكيلك استكشاف تطبيق جوال على iOS أو Android كمختبر، يبحث عن الأخطاء والنقاط الخشنة، ويحفظ أدلة لكل مشكلة.
ios-simulator
5.2kتساعد وكيلك على فتح تطبيق iPhone أو iPad في محاكي Apple، وفحص شاشته، والمرور على خطوات لاختبار تغيير.
مهارات مشابهة
android-clean-architecture
280kينظّم وكيلك مشاريع أندرويد بكفاءة، ويبني الشيفرة بطريقة تجعل الصيانة وإضافة الميزات الجديدة أسهل.
compose-multiplatform-patterns
280kيساعد وكيلك على استعمال أنماط Compose Multiplatform وJetpack Compose في مشاريع KMP، وتشمل الحالة والتنقل والتصميم والأداء.
dart-flutter-patterns
280kيساعد وكيلك على كتابة شيفرة تطبيقات Dart وFlutter، باستعمال أنماط حديثة لبناء تطبيقات متينة وسهلة الإدارة.