mobile-ai-agents 1.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (194) hide show
  1. package/AGENTS.md +228 -0
  2. package/CLAUDE.md +236 -0
  3. package/LICENSE +21 -0
  4. package/README.md +652 -0
  5. package/agents/android/android-crash-analyzer/README.md +134 -0
  6. package/agents/android/android-crash-analyzer/agent.md +206 -0
  7. package/agents/android/android-crash-analyzer/example-input.md +138 -0
  8. package/agents/android/android-crash-analyzer/example-output.md +225 -0
  9. package/agents/android/anr-investigation/README.md +78 -0
  10. package/agents/android/anr-investigation/agent.md +117 -0
  11. package/agents/android/anr-investigation/example-input.md +62 -0
  12. package/agents/android/anr-investigation/example-output.md +103 -0
  13. package/agents/android/axiom/agent.md +197 -0
  14. package/agents/android/code-reviewer/README.md +108 -0
  15. package/agents/android/code-reviewer/agent.md +210 -0
  16. package/agents/android/code-reviewer/example-input.md +116 -0
  17. package/agents/android/code-reviewer/example-output.md +115 -0
  18. package/agents/android/compose-navigation/README.md +76 -0
  19. package/agents/android/compose-navigation/agent.md +121 -0
  20. package/agents/android/compose-navigation/example-input.md +49 -0
  21. package/agents/android/compose-navigation/example-output.md +325 -0
  22. package/agents/android/compose-screen-builder/README.md +95 -0
  23. package/agents/android/compose-screen-builder/agent.md +170 -0
  24. package/agents/android/compose-screen-builder/example-input.md +40 -0
  25. package/agents/android/compose-screen-builder/example-output.md +568 -0
  26. package/agents/android/compose-ui-reviewer/README.md +73 -0
  27. package/agents/android/compose-ui-reviewer/agent.md +253 -0
  28. package/agents/android/compose-ui-reviewer/example-input.md +84 -0
  29. package/agents/android/compose-ui-reviewer/example-output.md +102 -0
  30. package/agents/android/crash-analyzer/README.md +53 -0
  31. package/agents/android/crash-analyzer/agent.md +295 -0
  32. package/agents/android/memory-leak-analyzer/README.md +79 -0
  33. package/agents/android/memory-leak-analyzer/agent.md +116 -0
  34. package/agents/android/memory-leak-analyzer/example-input.md +78 -0
  35. package/agents/android/memory-leak-analyzer/example-output.md +128 -0
  36. package/agents/cross-platform/accessibility-auditor/README.md +47 -0
  37. package/agents/cross-platform/accessibility-auditor/agent.md +268 -0
  38. package/agents/cross-platform/accessibility-auditor/example-input.md +84 -0
  39. package/agents/cross-platform/accessibility-auditor/example-output.md +132 -0
  40. package/agents/cross-platform/appforge/agent.md +303 -0
  41. package/agents/cross-platform/ci-cd-generator/README.md +65 -0
  42. package/agents/cross-platform/ci-cd-generator/agent.md +422 -0
  43. package/agents/cross-platform/ci-cd-generator/example-input.md +69 -0
  44. package/agents/cross-platform/ci-cd-generator/example-output.md +261 -0
  45. package/agents/cross-platform/crasher/agent.md +221 -0
  46. package/agents/cross-platform/figma/agent.md +247 -0
  47. package/agents/cross-platform/launchpad/agent.md +330 -0
  48. package/agents/cross-platform/mobile-harness/agent.md +422 -0
  49. package/agents/cross-platform/mobile-memory/agent.md +429 -0
  50. package/agents/cross-platform/perf/agent.md +261 -0
  51. package/agents/cross-platform/pipeline/agent.md +288 -0
  52. package/agents/cross-platform/release-notes-generator/README.md +63 -0
  53. package/agents/cross-platform/release-notes-generator/agent.md +218 -0
  54. package/agents/cross-platform/release-notes-generator/example-input.md +71 -0
  55. package/agents/cross-platform/release-notes-generator/example-output.md +96 -0
  56. package/agents/cross-platform/scribe/agent.md +180 -0
  57. package/agents/cross-platform/security-scanner/README.md +61 -0
  58. package/agents/cross-platform/security-scanner/agent.md +287 -0
  59. package/agents/cross-platform/security-scanner/example-input.md +77 -0
  60. package/agents/cross-platform/security-scanner/example-output.md +141 -0
  61. package/agents/cross-platform/sentinel/agent.md +217 -0
  62. package/agents/cross-platform/store-listing-writer/README.md +58 -0
  63. package/agents/cross-platform/store-listing-writer/agent.md +380 -0
  64. package/agents/cross-platform/store-listing-writer/example-input.md +67 -0
  65. package/agents/cross-platform/store-listing-writer/example-output.md +131 -0
  66. package/agents/flutter/bloc-feature-builder/README.md +101 -0
  67. package/agents/flutter/bloc-feature-builder/agent.md +225 -0
  68. package/agents/flutter/bloc-feature-builder/example-input.md +47 -0
  69. package/agents/flutter/bloc-feature-builder/example-output.md +838 -0
  70. package/agents/flutter/dart/agent.md +223 -0
  71. package/agents/flutter/widget-generator/README.md +66 -0
  72. package/agents/flutter/widget-generator/agent.md +264 -0
  73. package/agents/flutter/widget-generator/example-input.md +71 -0
  74. package/agents/flutter/widget-generator/example-output.md +163 -0
  75. package/agents/gaming/forge/agent.md +197 -0
  76. package/agents/gaming/unreal/agent.md +200 -0
  77. package/agents/ios/crash-analyzer/README.md +69 -0
  78. package/agents/ios/crash-analyzer/agent.md +300 -0
  79. package/agents/ios/crash-analyzer/example-input.md +83 -0
  80. package/agents/ios/crash-analyzer/example-output.md +126 -0
  81. package/agents/ios/swift/agent.md +206 -0
  82. package/agents/ios/swift-reviewer/README.md +68 -0
  83. package/agents/ios/swift-reviewer/agent.md +231 -0
  84. package/agents/ios/swift-reviewer/example-input.md +100 -0
  85. package/agents/ios/swift-reviewer/example-output.md +127 -0
  86. package/agents/react-native/bridge/agent.md +212 -0
  87. package/agents/react-native/performance-optimizer/README.md +81 -0
  88. package/agents/react-native/performance-optimizer/agent.md +284 -0
  89. package/agents/react-native/performance-optimizer/example-input.md +104 -0
  90. package/agents/react-native/performance-optimizer/example-output.md +132 -0
  91. package/agents/unity/shader-generator/README.md +77 -0
  92. package/agents/unity/shader-generator/agent.md +270 -0
  93. package/agents/unity/shader-generator/example-input.md +70 -0
  94. package/agents/unity/shader-generator/example-output.md +160 -0
  95. package/agents/unreal/blueprint-advisor/README.md +71 -0
  96. package/agents/unreal/blueprint-advisor/agent.md +311 -0
  97. package/agents/unreal/blueprint-advisor/example-input.md +73 -0
  98. package/agents/unreal/blueprint-advisor/example-output.md +217 -0
  99. package/cli/index.js +1091 -0
  100. package/docs/agent-guide.md +138 -0
  101. package/docs/chatgpt-integration.md +219 -0
  102. package/docs/core-loops.md +143 -0
  103. package/docs/cursor-integration.md +143 -0
  104. package/docs/getting-started.md +132 -0
  105. package/docs/index.html +711 -0
  106. package/docs/installation.md +271 -0
  107. package/docs/mobile-harness.md +160 -0
  108. package/docs/mobile-mcp.md +172 -0
  109. package/docs/mobile-memory.md +349 -0
  110. package/docs/release-process.md +85 -0
  111. package/docs/releases/release-v1.0.0.md +165 -0
  112. package/docs/roadmap/github-issues.md +239 -0
  113. package/docs/skill-categories.md +125 -0
  114. package/docs/vscode-copilot-integration.md +104 -0
  115. package/docs/wiki.md +615 -0
  116. package/install.sh +507 -0
  117. package/mobile-karpathy.md +79 -0
  118. package/package.json +57 -0
  119. package/skills/android/README.md +31 -0
  120. package/skills/android/android-tdd.md +89 -0
  121. package/skills/android/anr-investigation.md +251 -0
  122. package/skills/android/code-review.md +98 -0
  123. package/skills/android/compose-migration.md +48 -0
  124. package/skills/android/compose-review.md +78 -0
  125. package/skills/android/kotlin-modernize.md +51 -0
  126. package/skills/android/memory-leak-investigation.md +256 -0
  127. package/skills/android/proguard-rules.md +48 -0
  128. package/skills/cross-platform/accessibility-audit.md +63 -0
  129. package/skills/cross-platform/api-versioning.md +59 -0
  130. package/skills/cross-platform/clean-code-audit.md +239 -0
  131. package/skills/cross-platform/crash-triage.md +53 -0
  132. package/skills/cross-platform/deeplink-debug.md +57 -0
  133. package/skills/cross-platform/feature-slice.md +48 -0
  134. package/skills/cross-platform/grill-mobile.md +64 -0
  135. package/skills/cross-platform/mobile-mcp-qa.md +193 -0
  136. package/skills/cross-platform/mobile-memory-graph.md +179 -0
  137. package/skills/cross-platform/mobile-memory-save.md +210 -0
  138. package/skills/cross-platform/mobile-memory-search.md +154 -0
  139. package/skills/cross-platform/perf-audit.md +61 -0
  140. package/skills/cross-platform/prd-verification.md +324 -0
  141. package/skills/cross-platform/release-prep.md +64 -0
  142. package/skills/cross-platform/security-audit.md +281 -0
  143. package/skills/cross-platform/store-listing.md +75 -0
  144. package/skills/flutter/README.md +32 -0
  145. package/skills/flutter/dart-modernize.md +47 -0
  146. package/skills/flutter/flutter-review.md +59 -0
  147. package/skills/flutter/flutter-tdd.md +73 -0
  148. package/skills/flutter/widget-extract.md +41 -0
  149. package/skills/flutter/widget-gen.md +131 -0
  150. package/skills/gaming/blueprint-to-cpp.md +51 -0
  151. package/skills/gaming/game-perf.md +54 -0
  152. package/skills/gaming/shader-gen.md +44 -0
  153. package/skills/gaming/unity-tdd.md +85 -0
  154. package/skills/ios/README.md +45 -0
  155. package/skills/ios/data-persistence.md +151 -0
  156. package/skills/ios/ios-tdd.md +90 -0
  157. package/skills/ios/networking.md +139 -0
  158. package/skills/ios/performance.md +122 -0
  159. package/skills/ios/swift-concurrency.md +57 -0
  160. package/skills/ios/swift-review.md +124 -0
  161. package/skills/ios/swiftui-review.md +49 -0
  162. package/skills/ios/swiftui-state.md +122 -0
  163. package/skills/ios/unit-testing.md +144 -0
  164. package/skills/ios/xcode-warnings.md +37 -0
  165. package/skills/react-native/README.md +42 -0
  166. package/skills/react-native/bridge-audit.md +104 -0
  167. package/skills/react-native/expo-optimize.md +55 -0
  168. package/skills/react-native/new-arch-migrate.md +53 -0
  169. package/skills/react-native/performance.md +124 -0
  170. package/skills/react-native/rn-review.md +53 -0
  171. package/skills/react-native/rn-tdd.md +76 -0
  172. package/skills/shared/README.md +46 -0
  173. package/skills/shared/accessibility-audit.md +132 -0
  174. package/skills/shared/crash-analysis.md +110 -0
  175. package/skills/shared/security-scan.md +149 -0
  176. package/skills/unity/README.md +31 -0
  177. package/skills/unity/shader-review.md +110 -0
  178. package/templates/agent-template.md +88 -0
  179. package/templates/prompt-template.md +50 -0
  180. package/templates/skill-template.md +64 -0
  181. package/templates/workflow-template.md +48 -0
  182. package/workflows/app-launch.md +66 -0
  183. package/workflows/appforge-workflow.md +232 -0
  184. package/workflows/ci-setup.md +77 -0
  185. package/workflows/crash-to-fix.md +71 -0
  186. package/workflows/feature-ship.md +61 -0
  187. package/workflows/game-level.md +72 -0
  188. package/workflows/mobile-harness.md +319 -0
  189. package/workflows/mobile-mcp-qa.md +228 -0
  190. package/workflows/mobile-memory-workflow.md +243 -0
  191. package/workflows/new-project-setup.md +93 -0
  192. package/workflows/new-screen.md +68 -0
  193. package/workflows/perf-sprint.md +78 -0
  194. package/workflows/release-cycle.md +71 -0
@@ -0,0 +1,271 @@
1
+ # Installation Guide
2
+
3
+ This guide is for first-time users who want Mobile AI Agents installed in their AI coding tool without needing to understand the repo structure first.
4
+
5
+ ---
6
+
7
+ ## Quick Start
8
+
9
+ If you are not sure what to choose, use the default install:
10
+
11
+ ```bash
12
+ npx mobile-ai-agents install
13
+ ```
14
+
15
+ This installs Mobile AI Agents for Claude Code. It adds agents, skills, and workflows as slash commands in:
16
+
17
+ ```text
18
+ ~/.claude/commands/
19
+ ~/.claude/agents/
20
+ ```
21
+
22
+ After install, open Claude Code in your app project and try:
23
+
24
+ ```text
25
+ /flutter-review
26
+ /android-tdd
27
+ /crasher
28
+ ```
29
+
30
+ ---
31
+
32
+ ## Before You Install
33
+
34
+ You need:
35
+
36
+ 1. Node.js 18 or newer
37
+ 2. An AI coding tool such as Claude Code, Cursor, Windsurf, GitHub Copilot, or Codex
38
+ 3. A terminal opened in the project where you want the rules installed
39
+
40
+ Check Node.js:
41
+
42
+ ```bash
43
+ node --version
44
+ ```
45
+
46
+ If this prints a version like `v18.x`, `v20.x`, or newer, you are ready.
47
+
48
+ ---
49
+
50
+ ## Step 1: Pick Your AI Tool
51
+
52
+ Choose the tool you use most often:
53
+
54
+ | I use... | Run this |
55
+ |---|---|
56
+ | Claude Code | `npx mobile-ai-agents install` |
57
+ | Cursor | `npx mobile-ai-agents install --tool cursor` |
58
+ | Windsurf | `npx mobile-ai-agents install --tool windsurf` |
59
+ | GitHub Copilot | `npx mobile-ai-agents install --tool copilot` |
60
+ | Codex / OpenAI | `npx mobile-ai-agents install --tool codex` |
61
+ | More than one tool | `npx mobile-ai-agents install --tool all` |
62
+
63
+ If you do not know which one to pick, start with the command for your editor. For example, Cursor users should use `--tool cursor`.
64
+
65
+ ---
66
+
67
+ ## Step 2: Run the Command From Your App Project
68
+
69
+ Open a terminal inside your mobile app project, not inside Mobile AI Agents.
70
+
71
+ Example:
72
+
73
+ ```bash
74
+ cd ~/Code/my-flutter-app
75
+ npx mobile-ai-agents install --tool cursor
76
+ ```
77
+
78
+ Why this matters:
79
+
80
+ - Cursor installs files into your current project under `.cursor/rules/`
81
+ - Windsurf installs `.windsurfrules` into your current project
82
+ - Copilot installs `.github/copilot-instructions.md` into your current project
83
+ - Codex installs `AGENTS.md` into your current project
84
+ - Claude Code installs globally into `~/.claude/`
85
+
86
+ ---
87
+
88
+ ## Step 3: Optionally Limit by Platform
89
+
90
+ By default, Mobile AI Agents installs all platforms:
91
+
92
+ - Android
93
+ - iOS
94
+ - Flutter
95
+ - React Native
96
+ - Unity / Unreal
97
+ - Cross-platform workflows
98
+
99
+ For a smaller install, choose one platform:
100
+
101
+ ```bash
102
+ npx mobile-ai-agents install --platform android
103
+ npx mobile-ai-agents install --platform ios
104
+ npx mobile-ai-agents install --platform flutter
105
+ npx mobile-ai-agents install --platform rn
106
+ npx mobile-ai-agents install --platform gaming
107
+ ```
108
+
109
+ You can combine platform and tool:
110
+
111
+ ```bash
112
+ npx mobile-ai-agents install --platform flutter --tool cursor
113
+ npx mobile-ai-agents install --platform android --tool codex
114
+ npx mobile-ai-agents install --platform rn --tool all
115
+ ```
116
+
117
+ ---
118
+
119
+ ## What Gets Installed
120
+
121
+ | Tool | Files created |
122
+ |---|---|
123
+ | Claude Code | `~/.claude/agents/*.md` and `~/.claude/commands/*.md` |
124
+ | Cursor | `.cursor/rules/*.mdc` |
125
+ | Windsurf | `.windsurfrules` |
126
+ | GitHub Copilot | `.github/copilot-instructions.md` |
127
+ | Codex / OpenAI | `AGENTS.md` |
128
+
129
+ The install command does not change your application source code. It only adds instruction files for your AI coding tool.
130
+
131
+ ---
132
+
133
+ ## Examples by Tool
134
+
135
+ ### Claude Code
136
+
137
+ ```bash
138
+ npx mobile-ai-agents install
139
+ ```
140
+
141
+ Then open Claude Code and run a slash command:
142
+
143
+ ```text
144
+ /crasher
145
+ ```
146
+
147
+ Paste a crash log and ask for the root cause.
148
+
149
+ ### Cursor
150
+
151
+ ```bash
152
+ npx mobile-ai-agents install --tool cursor
153
+ ```
154
+
155
+ Then use Cursor Chat:
156
+
157
+ ```text
158
+ @axiom review this ViewModel
159
+ @flutter-review review this widget
160
+ ```
161
+
162
+ ### Windsurf
163
+
164
+ ```bash
165
+ npx mobile-ai-agents install --tool windsurf
166
+ ```
167
+
168
+ Windsurf reads `.windsurfrules` from your project. After install, ask Windsurf to use the relevant Mobile AI Agents agent or skill.
169
+
170
+ ### GitHub Copilot
171
+
172
+ ```bash
173
+ npx mobile-ai-agents install --tool copilot
174
+ ```
175
+
176
+ Then use Copilot Chat with workspace context:
177
+
178
+ ```text
179
+ @workspace Review this file using the Android code reviewer rules.
180
+ ```
181
+
182
+ ### Codex / OpenAI
183
+
184
+ ```bash
185
+ npx mobile-ai-agents install --tool codex
186
+ ```
187
+
188
+ This creates `AGENTS.md` in your project. Codex reads that file as project instructions when working in the repo.
189
+
190
+ ---
191
+
192
+ ## Local Clone Install
193
+
194
+ Use this if you cloned the Mobile AI Agents repo and want to install from local files instead of npm:
195
+
196
+ ```bash
197
+ git clone https://github.com/salmanashraf/mobile-agency
198
+ cd mobile-agency
199
+ ./install.sh --platform android
200
+ ./install.sh --platform flutter --tool cursor
201
+ ./install.sh --tool all
202
+ ```
203
+
204
+ For most users, `npx mobile-ai-agents install` is simpler.
205
+
206
+ ---
207
+
208
+ ## Troubleshooting
209
+
210
+ ### `npx: command not found`
211
+
212
+ Install Node.js from [nodejs.org](https://nodejs.org/) and reopen your terminal.
213
+
214
+ ### `mobile-ai-agents: command not found`
215
+
216
+ Use the full `npx` command:
217
+
218
+ ```bash
219
+ npx mobile-ai-agents install
220
+ ```
221
+
222
+ ### Cursor does not see the rules
223
+
224
+ Make sure the command created files under:
225
+
226
+ ```text
227
+ .cursor/rules/
228
+ ```
229
+
230
+ Then restart Cursor or reload the window.
231
+
232
+ ### Codex does not follow the instructions
233
+
234
+ Make sure `AGENTS.md` exists at the root of the project you opened in Codex.
235
+
236
+ ### I installed the wrong platform
237
+
238
+ Run the install command again with the platform you want:
239
+
240
+ ```bash
241
+ npx mobile-ai-agents install --platform flutter --tool cursor
242
+ ```
243
+
244
+ ---
245
+
246
+ ## Recommended First Commands
247
+
248
+ | Project type | Try first |
249
+ |---|---|
250
+ | Android | `/axiom` or `/compose-review` |
251
+ | iOS | `/swift-review` |
252
+ | Flutter | `/flutter-review` |
253
+ | React Native | `/rn-review` or `/perf-audit` |
254
+ | Unity / Unreal | `/game-perf` or `/blueprint-to-cpp` |
255
+ | Any app | `/crasher`, `/release-prep`, `/store-listing` |
256
+
257
+ ---
258
+
259
+ ## Wiki Version
260
+
261
+ If you maintain the GitHub Wiki, copy this page into a wiki page named:
262
+
263
+ ```text
264
+ Installation
265
+ ```
266
+
267
+ Suggested wiki URL:
268
+
269
+ ```text
270
+ https://github.com/salmanashraf/mobile-agency/wiki/Installation
271
+ ```
@@ -0,0 +1,160 @@
1
+ # Mobile Harness
2
+
3
+ Mobile Harness is the top-level orchestrator for Mobile AI Agents. It can start from a rough idea or an existing codebase, then coordinate planning, implementation, tests, UI verification, device QA, memory, and launch preparation.
4
+
5
+ Use it when you want one AI system to manage the full mobile delivery loop with as little human effort as safely possible, while still using specialized agents and skills underneath.
6
+
7
+ ---
8
+
9
+ ## Mental Model
10
+
11
+ ```text
12
+ MOBILE-HARNESS
13
+ ├── APPFORGE → idea, PRD, design, tasks, roadmap
14
+ ├── Mobile Memory → long-term memory across days/weeks
15
+ ├── AXIOM/SWIFT/DART/BRIDGE → platform code review
16
+ ├── /mobile-mcp-qa → emulator/device UI verification
17
+ ├── /accessibility-audit → accessibility verification
18
+ ├── /perf-audit or PERF → performance verification
19
+ ├── CRASHER → crash/debug investigation
20
+ ├── LAUNCHPAD → Play Store listing
21
+ ├── SCRIBE → release notes
22
+ └── PIPELINE → CI/CD and build/release automation
23
+ ```
24
+
25
+ APPFORGE plans. Mobile Memory remembers. Mobile Harness orchestrates execution and evidence.
26
+
27
+ ---
28
+
29
+ ## Autonomy Contract
30
+
31
+ Mobile Harness should do the work, not assign work back to the user.
32
+
33
+ It should autonomously:
34
+
35
+ - Create missing `PRD.md`, `DESIGN.md`, `TASKS.md`, `DEPENDENCIES.md`, `ROADMAP.md`, `MOBILE_MEMORY.md`, QA reports, and launch docs.
36
+ - Pick practical MVP defaults when the user gives a rough idea.
37
+ - Implement one approved task at a time.
38
+ - Run tests, builds, platform review, PRD checks, UI checks, and Mobile MCP QA when available.
39
+ - Fix failures inside the current task scope.
40
+ - Preserve context so the project can continue across days or weeks.
41
+
42
+ It should ask the user only for decisions or access it cannot safely infer:
43
+
44
+ - Business decisions, monetization choices, launch date changes, and MVP scope changes.
45
+ - API keys, certificates, app store access, billing, and credentials.
46
+ - Paid actions, destructive actions, public releases, and legal/privacy policy ownership.
47
+ - Approval before code implementation starts, unless the user has already approved autonomous execution.
48
+
49
+ ---
50
+
51
+ ## Source of Truth
52
+
53
+ Mobile Harness verifies against docs, not memory:
54
+
55
+ | Artifact | Required | Used For |
56
+ |---|---|---|
57
+ | `MOBILE_MEMORY.md` | Required for multi-session work | Current context, decisions, next action |
58
+ | `PRD.md` | Required before implementation | Behavior and requirements |
59
+ | `DESIGN.md` or design plan | Required before UI work | Layout, states, visual target |
60
+ | `TASKS.md` | Required before implementation | Task scope and acceptance criteria |
61
+ | `DEPENDENCIES.md` | Required before implementation | Libraries, APIs, env vars |
62
+ | `MOBILE_HARNESS_REPORT.md` | Required after each cycle | Evidence and pass/fail state |
63
+
64
+ If these docs are missing, Mobile Harness routes to APPFORGE first.
65
+
66
+ ---
67
+
68
+ ## Basic Prompts
69
+
70
+ Start a new app:
71
+
72
+ ```text
73
+ Use MOBILE-HARNESS.
74
+ Start from a new app idea and orchestrate APPFORGE, Mobile Memory, implementation, QA, and launch prep.
75
+ ```
76
+
77
+ Resume a long-running project:
78
+
79
+ ```text
80
+ Use MOBILE-HARNESS.
81
+ Read MOBILE_MEMORY.md, PRD.md, DESIGN.md, TASKS.md, and DEPENDENCIES.md.
82
+ Continue from NEXT ACTION.
83
+ ```
84
+
85
+ Run one approved task:
86
+
87
+ ```text
88
+ @MOBILE-HARNESS
89
+ MODE: FEATURE_EXECUTION
90
+ PLATFORM: Android
91
+ STACK: Kotlin, Compose, Hilt, Room
92
+ TASK: Implement TASKS.md Task 4, invoice creation form.
93
+ TEST_COMMAND: ./gradlew testDebugUnitTest
94
+ APP_ID: com.example.invoice
95
+ DONE_CRITERIA:
96
+ - User can enter client, amount, due date, notes.
97
+ - Save button disabled until required fields are valid.
98
+ - Saved invoice appears on dashboard after app restart.
99
+ - UI matches design within 90%.
100
+ ```
101
+
102
+ ---
103
+
104
+ ## Report Format
105
+
106
+ Every run produces:
107
+
108
+ ```text
109
+ MOBILE HARNESS REPORT
110
+ =====================
111
+ Platform:
112
+ Task:
113
+ Status: PASS | FAIL | BLOCKED
114
+ Mode:
115
+ Artifacts Read:
116
+ Orchestration State:
117
+ Implementation Summary:
118
+ Code Review:
119
+ Tests:
120
+ PRD Verification:
121
+ UI Match:
122
+ Mobile MCP QA:
123
+ Acceptance Criteria:
124
+ Memory Update:
125
+ Remaining Issues:
126
+ NEXT ACTION:
127
+ ```
128
+
129
+ ---
130
+
131
+ ## Pass Criteria
132
+
133
+ A task is done only when:
134
+
135
+ - Acceptance criteria pass
136
+ - Tests pass, or skipped tests are explicitly justified
137
+ - PRD verification passes with source references
138
+ - `/prd-verification` proves implementation, UI evidence, tests, and reports match `PRD.md`, `DESIGN.md`, and `TASKS.md`
139
+ - UI match reaches the agreed threshold, default 90%
140
+ - Mobile MCP QA passes, or device QA is explicitly unavailable
141
+ - No CRITICAL platform-review findings remain
142
+ - `MOBILE_MEMORY.md` is updated
143
+ - The report contains one concrete `NEXT ACTION`
144
+
145
+ ---
146
+
147
+ ## Video Demo Script
148
+
149
+ 1. Show `MOBILE-HARNESS` in the README.
150
+ 2. Start with: `Use MOBILE-HARNESS. Build this app idea end to end with autonomous execution.`
151
+ 3. Show the harness creating or loading `MOBILE_MEMORY.md`.
152
+ 4. Show it creating `PRD.md`, `DESIGN.md`, `TASKS.md`, and `DEPENDENCIES.md` instead of asking the user to write them.
153
+ 5. Approve the plan once.
154
+ 6. Show the harness selecting one task.
155
+ 7. Show the harness reading artifacts before editing.
156
+ 8. Show one small code change.
157
+ 9. Show tests running.
158
+ 10. Show PRD verification and UI match review.
159
+ 11. Show `/mobile-mcp-qa` device flow.
160
+ 12. End on `MOBILE HARNESS REPORT` and updated `MOBILE_MEMORY.md`.
@@ -0,0 +1,172 @@
1
+ # Mobile MCP Integration
2
+
3
+ Mobile MCP is an MCP server for mobile automation across iOS and Android simulators, emulators, and real devices. It gives AI agents a platform-agnostic way to inspect screens, interact with apps, and run scripted QA flows.
4
+
5
+ Use it in Mobile AI Agents as the device automation layer for APPFORGE, QA, accessibility checks, and launch readiness.
6
+
7
+ ---
8
+
9
+ ## What Mobile MCP Provides
10
+
11
+ Mobile MCP supports:
12
+
13
+ - iOS real devices
14
+ - iOS simulators
15
+ - Android real devices
16
+ - Android emulators
17
+
18
+ It exposes tools for:
19
+
20
+ - Listing available devices
21
+ - Reading screen size and orientation
22
+ - Setting orientation
23
+ - Listing installed apps
24
+ - Installing, launching, terminating, and uninstalling apps
25
+ - Taking and saving screenshots
26
+ - Listing UI elements on screen
27
+ - Tapping, double tapping, long pressing, and swiping
28
+ - Typing text
29
+ - Pressing device buttons
30
+ - Opening URLs
31
+
32
+ ---
33
+
34
+ ## Install
35
+
36
+ Standard MCP config:
37
+
38
+ ```json
39
+ {
40
+ "mcpServers": {
41
+ "mobile-mcp": {
42
+ "command": "npx",
43
+ "args": ["-y", "@mobilenext/mobile-mcp@latest"]
44
+ }
45
+ }
46
+ }
47
+ ```
48
+
49
+ Claude Code:
50
+
51
+ ```bash
52
+ claude mcp add mobile-mcp -- npx -y @mobilenext/mobile-mcp@latest
53
+ ```
54
+
55
+ Codex:
56
+
57
+ ```bash
58
+ codex mcp add mobile-mcp npx "@mobilenext/mobile-mcp@latest"
59
+ ```
60
+
61
+ Cursor:
62
+
63
+ Go to Cursor Settings -> MCP -> Add new MCP Server. Use command type:
64
+
65
+ ```bash
66
+ npx -y @mobilenext/mobile-mcp@latest
67
+ ```
68
+
69
+ Windsurf:
70
+
71
+ Add a new MCP server using command type:
72
+
73
+ ```bash
74
+ npx @mobilenext/mobile-mcp@latest
75
+ ```
76
+
77
+ ---
78
+
79
+ ## Mobile AI Agents Usage
80
+
81
+ ### APPFORGE
82
+
83
+ Use Mobile MCP in APPFORGE Stage 7 Full QA:
84
+
85
+ ```text
86
+ /mobile-mcp-qa
87
+ ```
88
+
89
+ Then provide:
90
+
91
+ - Platform
92
+ - App package name or bundle ID
93
+ - Build path if needed
94
+ - Flow to test
95
+ - Expected result
96
+ - Edge cases
97
+
98
+ ### UI Match Review
99
+
100
+ Use screenshots and element lists to compare implementation against the approved design:
101
+
102
+ - Layout
103
+ - Spacing
104
+ - Text
105
+ - Empty states
106
+ - Loading states
107
+ - Error states
108
+ - Accessibility labels
109
+
110
+ ### Launch QA
111
+
112
+ Before store submission, use Mobile MCP to verify:
113
+
114
+ - First launch
115
+ - Main flow
116
+ - Offline behavior
117
+ - App restart
118
+ - Rotation
119
+ - Permission denial
120
+ - Crash-prone paths
121
+ - Store screenshot screens
122
+
123
+ ---
124
+
125
+ ## Example Prompt
126
+
127
+ ```text
128
+ /mobile-mcp-qa
129
+ PLATFORM: Android
130
+ APP_ID: com.example.invoice
131
+ BUILD_PATH: app/build/outputs/apk/debug/app-debug.apk
132
+ FLOW:
133
+ 1. Launch app.
134
+ 2. Create a new invoice.
135
+ 3. Save it.
136
+ 4. Restart app.
137
+ 5. Confirm invoice persists.
138
+ EXPECTED:
139
+ Invoice remains visible after restart with correct client, amount, due date, and status.
140
+ EDGE_CASES:
141
+ Rotate dashboard, enter invalid amount, deny notification permission.
142
+ ```
143
+
144
+ ---
145
+
146
+ ## Recommended QA Evidence
147
+
148
+ For every important flow, save:
149
+
150
+ - Initial screen screenshot
151
+ - Form filled screenshot
152
+ - Success state screenshot
153
+ - Error state screenshot
154
+ - Restart or rotation screenshot
155
+ - Accessibility element list
156
+ - Bugs with exact repro steps
157
+
158
+ ---
159
+
160
+ ## Safety Rules
161
+
162
+ - Do not automate actions in third-party apps unless the user explicitly asks and owns the account/session.
163
+ - Do not submit real payments, ratings, reviews, or irreversible actions during QA.
164
+ - Prefer test accounts and sandbox builds.
165
+ - Record package names, device names, and build versions in every report.
166
+
167
+ ---
168
+
169
+ ## References
170
+
171
+ - Mobile MCP GitHub: https://github.com/mobile-next/mobile-mcp
172
+ - Mobile MCP package: https://www.npmjs.com/package/@mobilenext/mobile-mcp