mirror of
https://github.com/fromchat-messenger/app.git
synced 2026-09-22 19:15:05 +03:00
2.5 KiB
2.5 KiB
name, description
| name | description |
|---|---|
| post-complete | Build the Android debug APK, reinstall it on all available connected devices (real first, otherwise emulator), and launch the app. Use after a request is completed or when the user asks to verify changes on devices. |
Post-Complete
When to use
Use this skill after a request was completed and the user wants to verify the result on real devices (if available) and emulators.
Rules
- Do NOT use subagents in this skill.
- If Mobile MCP install fails because the APK file does not exist, investigate the build outputs directory structure, find the correct APK path, update the skill path, and retry.
- Don't ask questions unless you can't complete the task because my attention is needed. If something fails, try to investigate yourself.
Instructions
- In parallel:
- Build a fresh Android debug APK:
- Run:
./gradlew app:android:assembleDebugfrom the Android project root. - Do not try to execute this command multiple times or add additional options like
--no-daemon.
- Run:
- List available devices:
- Tool:
mobile_list_available_devices - Parameters:
{}(no params)
- Tool:
- Build a fresh Android debug APK:
- Select the devices to install the app to:
- If at least one device is a physical Android device, install+launch on those devices.
- Otherwise, install+launch on emulators.
- If working with calls, install+launch on at least 2 devices (pick more devices from the available list).
- Do not ask the user to choose devices unless they explicitly say what device to use.
- In parallel:
- For each chosen device, run
mobile_install_appwith:device: string (useidfrommobile_list_available_devices)path: string (app/android/build/outputs/apk/debug/android-debug.apkconverted to absolute path)package: string (ru.fromchat.beta)
- For each chosen device, run
mobile_launch_appwith:device: string (useidfrommobile_list_available_devices)packageName: string (ru.fromchat.beta)
- Use exactly ONE parallel tool execution batch for everything:
- include every
mobile_install_appcall for every chosen device - include every
mobile_launch_appcall for every chosen device
- include every
- Do NOT split into multiple parallel batches and do NOT run installs/launches in separate tool batches.
- For each chosen device, run
- Completion:
- Only after every chosen device has successful results for ALL tool calls the agent should tell the user the task is completed.
- If any device fails any tool call, investigate and try again until they succeed.