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
package/AGENTS.md ADDED
@@ -0,0 +1,228 @@
1
+ # AGENTS.md — Mobile AI Agents
2
+
3
+ > This file is read automatically by Codex when the repo is opened.
4
+ > It tells Codex how to navigate, use, and contribute to this toolkit.
5
+
6
+ ---
7
+
8
+ ## What This Repo Is
9
+
10
+ A curated toolkit of AI agents, skill prompts, and reusable workflows for
11
+ Android, iOS, Flutter, React Native, Unity, and Unreal Engine developers.
12
+
13
+ Each agent is self-contained: it has a purpose, an input format, an output
14
+ format, and a real worked example. Drop any agent into Codex as a
15
+ system prompt and it works immediately.
16
+
17
+ ---
18
+
19
+ ## Repo Map
20
+
21
+ ```
22
+ mobile-ai-agents/
23
+ ├── agents/ ← Self-contained AI agents (start here)
24
+ │ ├── android/
25
+ │ ├── ios/
26
+ │ ├── flutter/
27
+ │ ├── react-native/
28
+ │ ├── unity/
29
+ │ ├── unreal/
30
+ │ └── cross-platform/
31
+ ├── skills/ ← Reusable skill modules (compose into agents)
32
+ ├── prompts/ ← Standalone one-shot prompts
33
+ ├── templates/ ← Scaffold for new agents / skills / prompts
34
+ ├── examples/ ← Real code samples for agents to operate on
35
+ └── docs/ ← Extended guides
36
+ ```
37
+
38
+ ---
39
+
40
+ ## How to Use an Agent
41
+
42
+ ### Option A — Paste into Codex chat
43
+
44
+ 1. Open any `agents/<platform>/<name>/agent.md`
45
+ 2. Copy the **System Prompt** section
46
+ 3. Paste it at the start of your Codex session
47
+ 4. Follow the **Input Format** to send your code
48
+
49
+ ### Option B — Load via slash command (recommended)
50
+
51
+ If you have this repo cloned locally, add to your Codex config:
52
+
53
+ ```json
54
+ {
55
+ "mcpServers": {},
56
+ "customSlashCommands": [
57
+ {
58
+ "name": "android-review",
59
+ "description": "Android Kotlin code reviewer",
60
+ "prompt": "$(cat agents/android/code-reviewer/agent.md)"
61
+ },
62
+ {
63
+ "name": "crash-analyze",
64
+ "description": "Parse crash logs and suggest fixes",
65
+ "prompt": "$(cat agents/android/crash-analyzer/agent.md)"
66
+ }
67
+ ]
68
+ }
69
+ ```
70
+
71
+ Then type `/android-review` in any session to activate the agent.
72
+
73
+ ### Option C — Reference directly in Codex
74
+
75
+ With this repo open as your working directory, Codex can read agents
76
+ on demand. Just say:
77
+
78
+ ```
79
+ Use the agent at agents/android/code-reviewer/agent.md to review this file:
80
+ [paste your code]
81
+ ```
82
+
83
+ ---
84
+
85
+ ## Agent Index
86
+
87
+ | Agent | Path | Platform | What It Does |
88
+ |---|---|---|---|
89
+ | Android ANR Investigation Agent | `agents/android/anr-investigation/` | Android | ANR traces, Play Console clusters, and thread dumps → root cause, fix, and verification |
90
+ | Android Code Reviewer | `agents/android/code-reviewer/` | Android | Reviews Kotlin/Compose for Clean Architecture, leaks, anti-patterns |
91
+ | Compose Navigation Architect | `agents/android/compose-navigation/` | Android | Generates and reviews type-safe routes, nested graphs, deep links, and back-stack behavior |
92
+ | Android Memory Leak Analyzer | `agents/android/memory-leak-analyzer/` | Android | LeakCanary traces and heap-retention reports → root cause, fix, and verification |
93
+ | Crash Log Analyzer | `agents/android/crash-analyzer/` | Android / iOS | Parses crash logs → root cause + fix |
94
+ | Swift Code Reviewer | `agents/ios/swift-reviewer/` | iOS | Reviews Swift/SwiftUI for memory safety and idiomatic patterns |
95
+ | Flutter Widget Generator | `agents/flutter/widget-generator/` | Flutter | Generates Dart widget code from plain English |
96
+ | RN Performance Optimizer | `agents/react-native/performance-optimizer/` | React Native | Finds re-render bottlenecks and bridge overhead |
97
+ | Unity Shader Generator | `agents/unity/shader-generator/` | Unity | Produces HLSL/ShaderLab shaders from a visual description |
98
+ | Unreal Blueprint Advisor | `agents/unreal/blueprint-advisor/` | Unreal | Blueprint → C++ migration and logic advice |
99
+ | AppForge | `agents/cross-platform/appforge/` | All | Rough app idea → PRD → tasks → QA → Play Store launch prep |
100
+ | Mobile Memory | `agents/cross-platform/mobile-memory/` | All | Mobile knowledge graph + context preservation across AI tools |
101
+ | Release Notes Generator | `agents/cross-platform/release-notes-generator/` | All | Git commits → user-facing release notes |
102
+ | CI/CD Pipeline Generator | `agents/cross-platform/ci-cd-generator/` | All | Generates GitHub Actions / Bitrise / Fastlane configs |
103
+ | Store Listing Writer | `agents/cross-platform/store-listing-writer/` | All | Play Store / App Store descriptions optimised for ASO |
104
+ | Mobile Harness | `agents/cross-platform/mobile-harness/` | All | Build, test, verify UI, and run Mobile MCP QA for approved tasks |
105
+
106
+ ---
107
+
108
+ ## Mobile MCP QA
109
+
110
+ Use `skills/cross-platform/mobile-mcp-qa.md` and `workflows/mobile-mcp-qa.md` when a user wants device, emulator, or simulator QA through Mobile MCP. This belongs after implementation, during APPFORGE UI match review, full QA, launch readiness, or screenshot validation.
111
+
112
+ ## Android ANR Investigation
113
+
114
+ Use `skills/android/anr-investigation.md` when a user provides an Android ANR trace, Play Console cluster, Crashlytics ANR, `ApplicationExitInfo`, or related source code. The skill requires evidence-based thread, lock, binder, and timeout analysis before recommending a fix.
115
+
116
+ Use `agents/android/anr-investigation/agent.md` when a full Android ANR investigation is needed, including deterministic report output, corrected code, and verification steps.
117
+
118
+ ## Android Memory Leak Investigation
119
+
120
+ Use `skills/android/memory-leak-investigation.md` when a user provides a LeakCanary trace, heap-retention report, memory-growth reproduction, or lifecycle-related code. Follow the strong-reference path from the GC root and identify the first app-controlled reference with incorrect lifetime.
121
+
122
+ Use `agents/android/memory-leak-analyzer/agent.md` when a full Android memory leak investigation is needed, including deterministic report output, corrected code, and verification steps.
123
+
124
+ ## Clean Code and Security Gates
125
+
126
+ Use `skills/cross-platform/clean-code-audit.md` when a user asks for app structure, clean code, model separation, architecture boundary, or maintainability review across a feature or full app.
127
+
128
+ Use `skills/cross-platform/security-audit.md` for complete app security audits before release, especially when auth, payments, storage, deep links, WebViews, permissions, or sensitive data are involved. Use `skills/shared/security-scan.md` only for quick inline scans.
129
+
130
+ Use `skills/cross-platform/prd-verification.md` when a user asks whether an implementation matches the approved PRD, design plan, task acceptance criteria, tests, screenshots, or Mobile MCP evidence. Use it inside Mobile Harness and APPFORGE before marking a task complete.
131
+
132
+ Use `skills/cross-platform/mobile-memory-search.md` when a user needs to resume from local Mobile AI Agents memory, search project history, or inject relevant context from `.mobile-ai-agents/memory/`. When using Mobile Harness for multi-session work, capture durable decisions and next actions with `npx mobile-ai-agents memory capture` when terminal access is available.
133
+
134
+ ## Release Process
135
+
136
+ For npm releases, follow `docs/release-process.md`. Do not run `npm publish` manually. Update `package.json`, commit, create a local `vX.Y.Z` tag, push `main`, then push the tag so GitHub Actions publishes npm.
137
+
138
+ ---
139
+
140
+ ## How to Create a New Agent
141
+
142
+ 1. Copy `templates/agent-template.md` into `agents/<platform>/<your-agent-name>/agent.md`
143
+ 2. Fill in every section — **do not leave placeholders**
144
+ 3. The **Example** section is mandatory: one real input → one real output
145
+ 4. Open a GitHub issue using the `New Agent` template before large work
146
+ 5. Submit a PR — see `CONTRIBUTING.md`
147
+
148
+ **Minimum bar for a merged agent:**
149
+ - System prompt is under 600 tokens (keeps it usable in constrained sessions)
150
+ - Output format is deterministic and parseable
151
+ - Example is real code, not toy pseudocode
152
+
153
+ ---
154
+
155
+ ## How to Create a New Skill
156
+
157
+ Skills are smaller than agents — they are reusable prompt modules that can
158
+ be composed together or embedded inside agents.
159
+
160
+ 1. Copy `templates/skill-template.md` into `skills/<platform>/<skill-name>.md`
161
+ 2. A skill has: purpose, inputs, the prompt module itself, and usage notes
162
+ 3. Keep skills focused on one concern (e.g., "detect coroutine scope leaks",
163
+ not "review entire file")
164
+
165
+ ---
166
+
167
+ ## Conventions Codex Should Follow in This Repo
168
+
169
+ When Codex is helping with this repo, follow these rules:
170
+
171
+ **Naming**
172
+ - Agent folders: `kebab-case` (e.g., `code-reviewer`, `crash-analyzer`)
173
+ - Agent file: always named `agent.md`
174
+ - Skill files: `kebab-case.md`
175
+ - Prompt files: `kebab-case.md`
176
+
177
+ **System prompts**
178
+ - Written in second person ("You are a senior Android engineer…")
179
+ - State the exact output format the agent must produce
180
+ - Never exceed 600 tokens for the system prompt section alone
181
+ - End with: "Output MUST follow the exact format specified. Do not add extra sections or omit any section."
182
+
183
+ **Severity levels (for review agents)**
184
+ - `CRITICAL` — causes crashes, memory leaks, data loss, security issues
185
+ - `WARNING` — technical debt, bad practice, will cause pain at scale
186
+ - `INFO` — minor improvement, style, optional enhancement
187
+
188
+ **Tested with**
189
+ - Always note which model(s) the agent was validated on (e.g., Codex Sonnet 4.6)
190
+ - If an agent degrades on smaller models, note it
191
+
192
+ ---
193
+
194
+ ## Platform-Specific Notes
195
+
196
+ ### Android
197
+ - Assume MVVM + Clean Architecture unless the agent specifies otherwise
198
+ - Prefer `StateFlow` + `collectAsStateWithLifecycle` over `LiveData` in new agents
199
+ - Flag `GlobalScope`, direct `!!` assertions, and repository-in-ViewModel as CRITICAL
200
+ - Compose agents: check `remember`, `LaunchedEffect`, `derivedStateOf` usage
201
+
202
+ ### iOS
203
+ - Assume Swift 5.9+ and SwiftUI unless specified
204
+ - Flag retain cycles, force unwraps, and MainActor misuse
205
+
206
+ ### Flutter
207
+ - Assume Dart 3.x, null safety enabled
208
+ - Flag `setState` in large widgets, missing `const` constructors
209
+
210
+ ### React Native
211
+ - Flag bridge calls in hot paths, missing `useMemo`/`useCallback`
212
+
213
+ ---
214
+
215
+ ## Contributing
216
+
217
+ See `CONTRIBUTING.md` for the full guide.
218
+
219
+ Short version:
220
+ - Every agent needs a working example — no placeholders
221
+ - Run your agent against at least 2 real files before submitting
222
+ - If you are updating an existing agent, note which model you tested on
223
+
224
+ ---
225
+
226
+ ## Questions / Discussion
227
+
228
+ Open a GitHub Discussion or Issue. PRs are always welcome.
package/CLAUDE.md ADDED
@@ -0,0 +1,236 @@
1
+ # CLAUDE.md — Mobile AI Agents
2
+
3
+ > This file is read automatically by Claude Code when the repo is opened.
4
+ > It tells Claude how to navigate, use, and contribute to this toolkit.
5
+
6
+ ---
7
+
8
+ ## What This Repo Is
9
+
10
+ The complete AI dev team for mobile engineers. 19 personality-driven agents, 35 composable
11
+ skills, and 13 end-to-end workflows for Android, iOS, Flutter, React Native, Unity, and Unreal.
12
+
13
+ Each agent has a name, a personality, a mission, and a real worked example. Drop any agent
14
+ into Claude Code as a system prompt and it works immediately.
15
+
16
+ ---
17
+
18
+ ## Quick Start
19
+
20
+ ```bash
21
+ # Install everything
22
+ ./install.sh
23
+
24
+ # Install by platform
25
+ ./install.sh android
26
+ ./install.sh ios
27
+ ./install.sh flutter
28
+ ```
29
+
30
+ ---
31
+
32
+ ## Repo Map
33
+
34
+ ```
35
+ mobile-ai-agents/
36
+ ├── agents/ ← 19 personality-driven agents
37
+ │ ├── android/axiom/ ← AXIOM (Android architect)
38
+ │ ├── android/anr-investigation/ ← FREEZE (ANR investigator)
39
+ │ ├── android/compose-navigation/ ← NAVIGATOR (Compose navigation)
40
+ │ ├── android/memory-leak-analyzer/ ← RETAINER (memory leaks)
41
+ │ ├── ios/swift/ ← SWIFT (iOS engineer)
42
+ │ ├── flutter/dart/ ← DART (Flutter specialist)
43
+ │ ├── react-native/bridge/ ← BRIDGE (RN optimizer)
44
+ │ ├── gaming/
45
+ │ │ ├── forge/ ← FORGE (Unity architect)
46
+ │ │ └── unreal/ ← UNREAL (Unreal specialist)
47
+ │ └── cross-platform/
48
+ │ ├── appforge/ ← APPFORGE (idea-to-store)
49
+ │ ├── crasher/ ← CRASHER (crash investigator)
50
+ │ ├── sentinel/ ← SENTINEL (security auditor)
51
+ │ ├── launchpad/ ← LAUNCHPAD (ASO writer)
52
+ │ ├── mobile-harness/ ← MOBILE-HARNESS (build/test/verify)
53
+ │ ├── mobile-memory/ ← Mobile Memory (context preservation)
54
+ │ ├── pipeline/ ← PIPELINE (CI/CD)
55
+ │ ├── perf/ ← PERF (performance)
56
+ │ ├── scribe/ ← SCRIBE (release notes)
57
+ │ └── figma/ ← FIGMA (design-to-code)
58
+ ├── skills/ ← 35 composable skill modules
59
+ │ ├── android/ ← ANR, memory leak, TDD, Compose review, ...
60
+ │ ├── ios/ ← ios-tdd, swiftui-review, swift-concurrency, ...
61
+ │ ├── flutter/ ← flutter-tdd, flutter-review, widget-extract, ...
62
+ │ ├── react-native/ ← rn-tdd, rn-review, new-arch-migrate, ...
63
+ │ ├── gaming/ ← unity-tdd, shader-gen, game-perf, blueprint-to-cpp
64
+ │ └── cross-platform/ ← grill-mobile, crash-triage, perf-audit, ...
65
+ ├── workflows/ ← 13 end-to-end process guides
66
+ ├── mobile-karpathy.md ← 4 rules that prevent AI mobile mistakes (standalone)
67
+ ├── examples/ ← Real input/output pairs for each agent
68
+ ├── templates/ ← Scaffold for new agents / skills / workflows
69
+ ├── scripts/ ← install-claude.sh, install-cursor.sh, ...
70
+ └── docs/ ← Extended guides
71
+ ```
72
+
73
+ ---
74
+
75
+ ## Agent Roster
76
+
77
+ | Agent | Path | Platform | Mission |
78
+ |---|---|---|---|
79
+ | **AXIOM** | `agents/android/axiom/` | Android | Clean Architecture + Kotlin + Compose review |
80
+ | **FREEZE** | `agents/android/anr-investigation/` | Android | ANR traces + thread dumps + main-thread blocking fixes |
81
+ | **NAVIGATOR** | `agents/android/compose-navigation/` | Android | Type-safe Compose routes, graphs, deep links, and back stack |
82
+ | **RETAINER** | `agents/android/memory-leak-analyzer/` | Android | LeakCanary traces + heap retention + lifecycle leak fixes |
83
+ | **SWIFT** | `agents/ios/swift/` | iOS | Memory safety + SwiftUI + async/await review |
84
+ | **DART** | `agents/flutter/dart/` | Flutter | Widget tree efficiency + state management review |
85
+ | **BRIDGE** | `agents/react-native/bridge/` | React Native | Bridge calls + re-renders + New Architecture |
86
+ | **FORGE** | `agents/gaming/forge/` | Unity | C# performance + frame budget + architecture |
87
+ | **UNREAL** | `agents/gaming/unreal/` | Unreal | Blueprint → C++ + performance + GC safety |
88
+ | **APPFORGE** | `agents/cross-platform/appforge/` | All | Rough app idea → PRD → tasks → QA → Play Store |
89
+ | **MOBILE-HARNESS** | `agents/cross-platform/mobile-harness/` | All | Build, test, verify UI, and run Mobile MCP QA |
90
+ | **CRASHER** | `agents/cross-platform/crasher/` | All | Crash log → root cause → fix |
91
+ | **SENTINEL** | `agents/cross-platform/sentinel/` | All | OWASP Mobile Top 10 security audit |
92
+ | **Mobile Memory** | `agents/cross-platform/mobile-memory/` | All | Mobile knowledge graph + context preservation |
93
+ | **LAUNCHPAD** | `agents/cross-platform/launchpad/` | All | Play Store + App Store ASO-optimized copy |
94
+ | **PIPELINE** | `agents/cross-platform/pipeline/` | All | GitHub Actions / Bitrise / Fastlane generation |
95
+ | **PERF** | `agents/cross-platform/perf/` | All | Frame budget + profiling + optimization |
96
+ | **SCRIBE** | `agents/cross-platform/scribe/` | All | Git log → polished release notes |
97
+ | **FIGMA** | `agents/cross-platform/figma/` | All | Figma spec → Compose / SwiftUI / Flutter / RN |
98
+
99
+ ---
100
+
101
+ ## How to Use an Agent
102
+
103
+ ### Option A — Paste the System Prompt
104
+
105
+ 1. Open any `agents/<platform>/<name>/agent.md`
106
+ 2. Copy the **System Prompt** block
107
+ 3. Paste it at the start of your Claude Code session
108
+ 4. Follow the **Input Format**
109
+
110
+ ### Option B — Install and reference
111
+
112
+ ```bash
113
+ ./install.sh # copies agents to ~/.claude/agents/
114
+ ```
115
+
116
+ Then in any session: "Use the AXIOM agent to review this file: [paste code]"
117
+
118
+ ### Option C — Slash command
119
+
120
+ Add to your Claude Code config (`~/.claude/settings.json`):
121
+
122
+ ```json
123
+ {
124
+ "customSlashCommands": [
125
+ {
126
+ "name": "axiom",
127
+ "description": "AXIOM — Android architect review",
128
+ "prompt": "$(cat agents/android/axiom/agent.md)"
129
+ },
130
+ {
131
+ "name": "crasher",
132
+ "description": "CRASHER — crash log investigation",
133
+ "prompt": "$(cat agents/cross-platform/crasher/agent.md)"
134
+ }
135
+ ]
136
+ }
137
+ ```
138
+
139
+ ---
140
+
141
+ ## How to Create a New Agent
142
+
143
+ 1. Copy `templates/agent-template.md` → `agents/<platform>/<name>/agent.md`
144
+ 2. Give the agent a **personality** — not just a function, but a character
145
+ 3. Fill every section — no placeholders
146
+ 4. The **Example** section is mandatory: one real input → one real output
147
+ 5. Submit a PR — see `CONTRIBUTING.md`
148
+
149
+ **Minimum bar for a merged agent:**
150
+ - System prompt ≤ 600 tokens
151
+ - Output format is deterministic and parseable
152
+ - Example uses real code, not toy pseudocode
153
+ - Personality is clear in the system prompt
154
+
155
+ ---
156
+
157
+ ## How to Create a New Skill
158
+
159
+ 1. Copy `templates/skill-template.md` → `skills/<platform>/<slug>.md`
160
+ 2. One skill = one concern (e.g., "detect recomposition issues", not "review entire file")
161
+ 3. Include a slash command name
162
+
163
+ ---
164
+
165
+ ## How to Create a New Workflow
166
+
167
+ 1. Copy `templates/workflow-template.md` → `workflows/<name>.md`
168
+ 2. List the agents and skills used
169
+ 3. Each step must reference a specific agent or skill
170
+
171
+ ---
172
+
173
+ ## Conventions
174
+
175
+ **Naming**
176
+ - Agent folders: personality code name, lowercase (`axiom`, `crasher`, `swift`)
177
+ - Agent file: always `agent.md`
178
+ - Skill files: `kebab-case.md` with a `/slash-command` name
179
+ - Workflow files: `kebab-case.md`
180
+
181
+ **Agent system prompts**
182
+ - Open with the agent's name and personality in first person
183
+ - State exact output format
184
+ - ≤ 600 tokens
185
+ - End: "Output MUST follow the exact format specified. Do not add extra sections or omit any section."
186
+
187
+ **Severity levels**
188
+ - `CRITICAL` — crashes, memory leaks, data loss, security vulnerabilities
189
+ - `WARNING` — technical debt, bad practice, will cause pain at scale
190
+ - `INFO` — minor improvement, style, optional enhancement
191
+
192
+ **Tested with**
193
+ - Note the model(s) validated on (e.g., Claude Sonnet 4.6)
194
+
195
+ ---
196
+
197
+ ## Platform Notes
198
+
199
+ ### Android
200
+ - MVVM + Clean Architecture by default
201
+ - StateFlow + collectAsStateWithLifecycle over LiveData in new code
202
+ - GlobalScope, !! operators, repository-in-ViewModel = CRITICAL findings
203
+
204
+ ### iOS
205
+ - Swift 5.9+, SwiftUI by default
206
+ - Retain cycles, force unwraps, MainActor misuse = CRITICAL findings
207
+
208
+ ### Flutter
209
+ - Dart 3.x, null safety enabled
210
+ - setState in large widgets, missing const constructors = WARNING findings
211
+
212
+ ### React Native
213
+ - Check New Architecture compatibility on all new code
214
+ - Bridge calls in hot paths = CRITICAL findings
215
+
216
+ ### Unity / Unreal
217
+ - Mobile = tight frame budget, measure everything
218
+ - Update() / Tick() logic that can be event-driven = WARNING findings
219
+
220
+ ---
221
+
222
+ ## The Viral Files
223
+
224
+ - `mobile-karpathy.md` — 4 rules that stop AI coding agents making mobile mistakes
225
+ Share this file independently. It has viral potential on its own.
226
+
227
+ ---
228
+
229
+ ## Questions / Contributing
230
+
231
+ Open a GitHub Discussion or Issue. PRs are always welcome.
232
+ See `CONTRIBUTING.md` for the full guide.
233
+
234
+ ## Release Process
235
+
236
+ For npm releases, follow `docs/release-process.md`. Do not run `npm publish` manually. Update `package.json`, commit, create a local `vX.Y.Z` tag, push `main`, then push the tag so GitHub Actions publishes npm.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Salman Ashraf
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.