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/docs/wiki.md ADDED
@@ -0,0 +1,615 @@
1
+ # Mobile Dev Skill Agents — Wiki
2
+
3
+ > Complete reference for using, understanding, and contributing to the toolkit.
4
+
5
+ ---
6
+
7
+ ## Table of Contents
8
+
9
+ 1. [What Is This Repo?](#1-what-is-this-repo)
10
+ 2. [Installation](#2-installation)
11
+ 3. [Three Resource Types](#3-three-resource-types)
12
+ 4. [How to Use an Agent](#4-how-to-use-an-agent)
13
+ 5. [Tool-by-Tool Guides](#5-tool-by-tool-guides)
14
+ 6. [Platform-by-Platform Agent Guide](#6-platform-by-platform-agent-guide)
15
+ 7. [How Skills Work](#7-how-skills-work)
16
+ 8. [How Prompts Work](#8-how-prompts-work)
17
+ 9. [Input Format Reference](#9-input-format-reference)
18
+ 10. [Output Format Reference](#10-output-format-reference)
19
+ 11. [Contributing a New Agent](#11-contributing-a-new-agent)
20
+ 12. [FAQ](#12-faq)
21
+
22
+ ---
23
+
24
+ ## 1. What Is This Repo?
25
+
26
+ **Mobile Dev Skill Agents** is a toolkit of ready-to-use AI instructions for mobile and game developers. It is not a library, not a framework, and not a SaaS product. It is a collection of carefully written text files that tell an AI assistant exactly how to help you.
27
+
28
+ **The three core ideas:**
29
+
30
+ - **Agents** — Full analysis tools. You paste code or data in a defined format; you get structured, typed output back. Every agent has a purpose, an input format, an output format, and a tested example.
31
+ - **Skills** — Lightweight modules. Paste a skill into any session to add one focused analysis capability. Compose multiple skills together.
32
+ - **Prompts** — One-shot helpers. Single-purpose prompts for common tasks — unit test generation, migration guides, widget creation.
33
+
34
+ **Supported AI tools:** Claude Code, Cursor, ChatGPT, GitHub Copilot, Windsurf, or any instruction-following LLM.
35
+
36
+ ---
37
+
38
+ ## 2. Installation
39
+
40
+ For first-time setup, use the dedicated [Installation Guide](installation.md). It explains which command to run for Claude Code, Cursor, Windsurf, GitHub Copilot, and Codex.
41
+
42
+ Fast path:
43
+
44
+ ```bash
45
+ npx mobile-ai-agents install
46
+ ```
47
+
48
+ Common installs:
49
+
50
+ | I use... | Run this |
51
+ |---|---|
52
+ | Claude Code | `npx mobile-ai-agents install` |
53
+ | Cursor | `npx mobile-ai-agents install --tool cursor` |
54
+ | Windsurf | `npx mobile-ai-agents install --tool windsurf` |
55
+ | GitHub Copilot | `npx mobile-ai-agents install --tool copilot` |
56
+ | Codex / OpenAI | `npx mobile-ai-agents install --tool codex` |
57
+
58
+ ---
59
+
60
+ ## 3. Three Resource Types
61
+
62
+ ### Agents (`agents/`)
63
+
64
+ A full specification with:
65
+ - `README.md` — purpose, quick start, input format preview, links to examples
66
+ - `agent.md` — the complete spec: input format, output format, system prompt
67
+ - `example-input.md` — a real, paste-ready input with variations
68
+ - `example-output.md` — the verified output the agent produces on that input
69
+
70
+ **When to use:** You want a structured, repeatable analysis with typed output — code review, crash report, performance audit, screen generation.
71
+
72
+ ### Skills (`skills/`)
73
+
74
+ A single `.md` file containing a focused prompt module:
75
+ - Purpose and when to use
76
+ - The skill prompt text (paste into any session)
77
+ - One concrete example
78
+ - Notes on composing with other skills
79
+
80
+ **When to use:** You want to add one specific capability to a session without the full agent structure. Skills are composable — paste multiple together for broader coverage.
81
+
82
+ ### Prompts (`prompts/`)
83
+
84
+ A single `.md` file for a one-shot task:
85
+ - The raw prompt text with a `[PASTE YOUR CODE HERE]` placeholder
86
+ - One worked example
87
+ - Variations for related use cases
88
+
89
+ **When to use:** Quick, single-purpose tasks — "generate a unit test for this class", "explain this Flow chain", "generate a Compose layout".
90
+
91
+ ---
92
+
93
+ ## 4. How to Use an Agent
94
+
95
+ ### Step 1 — Choose the right agent
96
+
97
+ | I want to... | Use this agent |
98
+ |---|---|
99
+ | Review a Kotlin/Compose file | `agents/android/code-reviewer` |
100
+ | Debug an Android crash log | `agents/android/android-crash-analyzer` |
101
+ | Generate an Android Compose screen | `agents/android/compose-screen-builder` |
102
+ | Review Compose recomposition / state | `agents/android/compose-ui-reviewer` |
103
+ | Review a Swift/SwiftUI file | `agents/ios/swift-reviewer` |
104
+ | Debug an iOS crash report | `agents/ios/crash-analyzer` |
105
+ | Generate a Flutter widget | `agents/flutter/widget-generator` |
106
+ | Build a full Flutter BLoC feature | `agents/flutter/bloc-feature-builder` |
107
+ | Audit React Native performance | `agents/react-native/performance-optimizer` |
108
+ | Generate a Unity shader | `agents/unity/shader-generator` |
109
+ | Review an Unreal Blueprint | `agents/unreal/blueprint-advisor` |
110
+ | Scan code for security vulnerabilities | `agents/cross-platform/security-scanner` |
111
+ | Audit a UI for accessibility | `agents/cross-platform/accessibility-auditor` |
112
+ | Write release notes from git log | `agents/cross-platform/release-notes-generator` |
113
+ | Generate a CI/CD pipeline | `agents/cross-platform/ci-cd-generator` |
114
+ | Write App Store / Play Store copy | `agents/cross-platform/store-listing-writer` |
115
+
116
+ ### Step 2 — Open the agent folder
117
+
118
+ Every agent folder has four files. Start with `README.md` for the quick start. Open `agent.md` for the full system prompt and input format.
119
+
120
+ ### Step 3 — Apply the system prompt
121
+
122
+ Copy the text inside the `## System Prompt` code block in `agent.md`. This is what you paste into your AI tool of choice before submitting your code.
123
+
124
+ ### Step 4 — Prepare your input
125
+
126
+ Use the `## Input Format` table in `agent.md` to structure your input. Most agents follow this pattern:
127
+
128
+ ```
129
+ PLATFORM: <value>
130
+ VERSION: <value>
131
+ FILE_PATH: <relative path>
132
+ CODE:
133
+ <paste the code here>
134
+ ```
135
+
136
+ Fields marked **Required** must be filled. Optional fields improve the output but can be omitted.
137
+
138
+ ### Step 5 — Review the output
139
+
140
+ The agent returns output in the exact structure defined by `## Output Format`. Every section is labelled. Copy-paste the corrected code snippets directly into your editor.
141
+
142
+ ---
143
+
144
+ ## 5. Tool-by-Tool Guides
145
+
146
+ ### Claude Code
147
+
148
+ **How agents load:** `CLAUDE.md` at the repo root is read automatically whenever Claude Code is opened in this directory. It contains the agent index and platform conventions.
149
+
150
+ **How to run an agent:**
151
+ ```
152
+ # In the Claude Code chat:
153
+ Use the agent at agents/android/android-crash-analyzer/agent.md to analyze this crash:
154
+ [paste crash log]
155
+ ```
156
+
157
+ Or reference the example file:
158
+ ```
159
+ Use the agent at agents/android/code-reviewer/agent.md to review this file:
160
+ @examples/android/ProfileViewModel.kt
161
+ ```
162
+
163
+ Full guide: [`docs/getting-started.md`](getting-started.md)
164
+
165
+ ---
166
+
167
+ ### Cursor
168
+
169
+ **How agents load:** `.cursorrules` at the repo root is read automatically. It contains the full agent index, severity level definitions, and platform conventions. Every Cursor Chat session in this repo already knows the agents.
170
+
171
+ **Cursor Chat (single file):**
172
+ ```
173
+ @agents/android/code-reviewer/agent.md
174
+ Review this ViewModel for Clean Architecture violations: [paste code]
175
+ ```
176
+
177
+ **Cursor Composer (apply fixes):**
178
+ ```
179
+ @agents/android/android-crash-analyzer/agent.md @crash.txt
180
+ Analyze this crash and apply the fix to the relevant file.
181
+ ```
182
+
183
+ **Multi-file review:**
184
+ ```
185
+ @ProfileViewModel.kt @ProfileRepository.kt @ProfileUseCase.kt
186
+ Review the full data flow for Clean Architecture violations using the code-reviewer agent.
187
+ ```
188
+
189
+ Full guide: [`docs/cursor-integration.md`](cursor-integration.md)
190
+
191
+ ---
192
+
193
+ ### ChatGPT
194
+
195
+ **Method 1 — Manual paste (any tier):**
196
+ 1. Open `agents/<platform>/<name>/agent.md`
197
+ 2. Copy the `## System Prompt` block
198
+ 3. Paste as your first message in a new chat
199
+ 4. Follow with your code using the input format
200
+
201
+ **Method 2 — Custom GPT (recommended for teams):**
202
+ A ready-made Custom GPT system prompt is in `docs/chatgpt-integration.md`. It routes to the right agent automatically based on what you describe. One GPT covers all 17 agents.
203
+
204
+ **Method 3 — Assistants API:**
205
+ ```python
206
+ import openai
207
+ client = openai.OpenAI()
208
+ assistant = client.beta.assistants.create(
209
+ name="Android Code Reviewer",
210
+ instructions=open("agents/android/code-reviewer/agent.md").read(),
211
+ model="gpt-4o",
212
+ )
213
+ ```
214
+
215
+ Full guide: [`docs/chatgpt-integration.md`](chatgpt-integration.md)
216
+
217
+ ---
218
+
219
+ ### GitHub Copilot (VS Code)
220
+
221
+ **How agents load:** `.github/copilot-instructions.md` is read when you use `@workspace` in Copilot Chat. It contains all agent rules in a condensed format.
222
+
223
+ **Usage:**
224
+ ```
225
+ @workspace Review this file using the Android Code Reviewer rules:
226
+ #file:ProfileViewModel.kt
227
+ ```
228
+
229
+ **Copilot Edits (apply inline):**
230
+ Select the problematic code → Cmd+I → describe the fix using agent terminology:
231
+ ```
232
+ Fix the GlobalScope leak and remove the direct UserRepository instantiation
233
+ ```
234
+
235
+ Full guide: [`docs/vscode-copilot-integration.md`](vscode-copilot-integration.md)
236
+
237
+ ---
238
+
239
+ ## 6. Platform-by-Platform Agent Guide
240
+
241
+ ### Android
242
+
243
+ #### Android Crash Analyzer (`agents/android/android-crash-analyzer/`)
244
+
245
+ **Paste:** Full logcat output, Firebase Crashlytics export, ANR trace, or LeakCanary report.
246
+
247
+ **Best practice:** Always fill `USER_ACTION` — it is the single most useful field for lifecycle crashes ("User tapped Back while the photo was uploading" narrows the root cause immediately).
248
+
249
+ **Supported crash types:** NullPointerException, IllegalStateException, GlobalScope coroutine crashes, Fragment lifecycle crashes (requireContext after detach), RecyclerView position errors, OOM, ANR, LeakCanary memory leak chains.
250
+
251
+ **Output:** 9 sections — Crash Summary, Root Cause, Why This Happens, Risk Level, Recommended Fix, Updated Code, Edge Cases, Testing Checklist, Prevention Tips.
252
+
253
+ ---
254
+
255
+ #### Android Code Reviewer (`agents/android/code-reviewer/`)
256
+
257
+ **Paste:** A complete Kotlin class — ViewModel, Repository, UseCase, Composable, Fragment, or Activity.
258
+
259
+ **Best practice:** Set `FILE_PATH` accurately — the agent infers the architectural layer from the path (a file in `.../viewmodel/` is reviewed as a ViewModel; `.../data/repository/` is reviewed as a Repository).
260
+
261
+ **Reviews:** Clean Architecture layer boundaries, `GlobalScope` usage, LiveData vs StateFlow, dependency injection, `!!` force-unwrap, Compose recomposition, coroutine exception handling, testability.
262
+
263
+ ---
264
+
265
+ #### Android Compose Screen Builder (`agents/android/compose-screen-builder/`)
266
+
267
+ **Paste:** A plain-English screen description — what it displays, what the user can do, what data it receives, navigation.
268
+
269
+ **Output:** Three complete Kotlin files — `UiState.kt`, `ViewModel.kt`, `Screen.kt` — plus NavHost registration snippet and Gradle dependencies.
270
+
271
+ **Design principles enforced:** Single sealed `UiState`, `collectAsStateWithLifecycle`, Material 3 theming, accessible semantics, `@Preview` for light + dark.
272
+
273
+ ---
274
+
275
+ #### NAVIGATOR — Android Compose Navigation Architect (`agents/android/compose-navigation/`)
276
+
277
+ **Use it for:** Generating or reviewing type-safe Navigation Compose routes, nested feature graphs, bottom navigation, deep links, authentication redirects, and back-stack behavior.
278
+
279
+ **Output:** Route types, graph-builder code, explicit back-stack rules, deep-link rules, navigation tests, and severity-ranked findings in review mode.
280
+
281
+ **Design principles enforced:** `@Serializable` routes on Navigation 2.8+, stable ID arguments, screen callbacks instead of passing `NavController`, saved tab state, and documented `popUpTo` behavior.
282
+
283
+ ---
284
+
285
+ #### Android Compose UI Reviewer (`agents/android/compose-ui-reviewer/`)
286
+
287
+ **Use this instead of the Code Reviewer when:** The screen is slow to scroll, there's visual flickering, or you're seeing unexpected recompositions in React DevTools Profiler.
288
+
289
+ **Reviews:** `SimpleDateFormat` in `items { }`, missing `key` on `LazyColumn`, `remember` keys, `derivedStateOf` vs `remember`, state hoisting correctness, `LaunchedEffect` key correctness.
290
+
291
+ ---
292
+
293
+ ### iOS
294
+
295
+ #### iOS Crash Analyzer (`agents/ios/crash-analyzer/`)
296
+
297
+ **Requirement:** The crash report must be **symbolicated**. Unsymbolicated reports show hex addresses that cannot be analyzed. Symbolicate first in Xcode Organizer, or using `symbolicatecrash` in Terminal.
298
+
299
+ **Supported crashes:** `EXC_BAD_ACCESS` (SIGSEGV/SIGBUS), force-unwrap nil, `SIGABRT`, watchdog termination (0x8badf00d), Main Thread Checker violations, SwiftUI state crashes.
300
+
301
+ **Output:** Same 9-section format as the Android Crash Analyzer.
302
+
303
+ ---
304
+
305
+ #### Swift Code Reviewer (`agents/ios/swift-reviewer/`)
306
+
307
+ **Set `SWIFT_VERSION: 6.0`** to enable strict concurrency checks (Sendable, actor isolation errors).
308
+
309
+ **Reviews:** `[weak self]` vs `[unowned self]` in escaping closures, `@Published` mutation off Main thread, force-unwrap removal, async/await migration candidates, `@StateObject` vs `@ObservedObject` correctness, protocol-based testability.
310
+
311
+ ---
312
+
313
+ ### Flutter
314
+
315
+ #### Flutter BLoC Feature Builder (`agents/flutter/bloc-feature-builder/`)
316
+
317
+ **Choose `PATTERN: cubit`** for 90% of features. Use `PATTERN: bloc` only when you need event history, event transformations (`throttle`/`debounce`), or event replay.
318
+
319
+ **What gets generated:** Domain entities, repository interface + implementation, Dio data source with `DioException` handling, `Either<Failure, T>` error propagation, Cubit or BLoC with sealed state classes, page with `BlocBuilder`, `bloc_test` stubs, `get_it` DI registration, `pubspec.yaml` additions.
320
+
321
+ ---
322
+
323
+ #### Flutter Widget Generator (`agents/flutter/widget-generator/`)
324
+
325
+ **Be specific in `DESCRIPTION`.** "A list of orders" → mediocre output. "A paginated LazyColumn of order cards showing order ID, status badge (color-coded Delivered/Processing/Cancelled), total amount, and date" → excellent output.
326
+
327
+ **Guarantees:** Null-safe Dart 3.x, `const` constructors, `Theme.of(context)` for all colors/styles, `Semantics` for accessibility, `AnimationController` disposed in `dispose()`.
328
+
329
+ ---
330
+
331
+ ### React Native
332
+
333
+ #### RN Performance Optimizer (`agents/react-native/performance-optimizer/`)
334
+
335
+ **Set `ARCH: new`** for apps running React Native 0.74+ New Architecture (JSI/Fabric). Set `ARCH: old` for Bridge-based apps.
336
+
337
+ **Tip:** Include `PROFILER_DATA` (React DevTools or Flipper output) to rank findings by measured render time instead of heuristic estimates.
338
+
339
+ **Finds:** Inline functions/objects in JSX, missing `useCallback`/`useMemo`/`React.memo`, FlatList missing `keyExtractor`/`getItemLayout`, animations on JS thread, bridge calls in render paths.
340
+
341
+ ---
342
+
343
+ ### Unity
344
+
345
+ #### Unity Shader Generator (`agents/unity/shader-generator/`)
346
+
347
+ **Always specify `RENDER_PIPELINE`** — URP, HDRP, and Built-in use completely different include paths and APIs. A URP shader will not compile in a Built-in pipeline project.
348
+
349
+ **Set `TARGET_PLATFORM: mobile`** to enforce: ≤2 texture samples per fragment, `half` precision throughout, no dynamic branching.
350
+
351
+ **Output:** A complete `Shader "Custom/..."` file with `Properties` block, `SubShader`, vertex + fragment stages, and a Material Setup guide for the Inspector.
352
+
353
+ ---
354
+
355
+ ### Unreal Engine
356
+
357
+ #### Unreal Blueprint Advisor (`agents/unreal/blueprint-advisor/`)
358
+
359
+ **Describe the Blueprint in steps** — list what each event graph node does in plain English. The agent cannot read node graph images.
360
+
361
+ **Tick is the #1 issue.** Any logic in Event Tick that runs every frame for many actors is expensive. The agent flags this and provides timer-based and event-driven alternatives.
362
+
363
+ **C++ output:** The agent generates a complete `.h` + `.cpp` pair for the highest-priority migration candidates, using UE5 API conventions (`TObjectPtr`, `UPROPERTY`, `UFUNCTION`, `FTimerHandle`).
364
+
365
+ ---
366
+
367
+ ### Cross-Platform
368
+
369
+ #### Mobile Security Scanner (`agents/cross-platform/security-scanner/`)
370
+
371
+ **Use `SECURITY_FOCUS: all`** for a full OWASP scan. Use a specific focus (`secrets`, `storage`, `network`, `webview`, `permissions`, `crypto`) to narrow the scan to one area.
372
+
373
+ **Run on:** API client files, auth/session managers, any file that touches `SharedPreferences`, `UserDefaults`, `WebView`, or cryptographic operations.
374
+
375
+ **Rotate any secret found immediately** — assume it is already compromised if it was in version control history.
376
+
377
+ ---
378
+
379
+ #### Accessibility Auditor (`agents/cross-platform/accessibility-auditor/`)
380
+
381
+ **Always test with real assistive technology** on a physical device — TalkBack (Android) and VoiceOver (iOS) — after applying fixes. Emulator behavior differs.
382
+
383
+ **Specify the exact platform:** `Android-Compose`, `Android-XML`, `iOS-SwiftUI`, `iOS-UIKit`, `Flutter`, or `React-Native`. The fixes differ significantly between frameworks.
384
+
385
+ ---
386
+
387
+ ## 7. How Skills Work
388
+
389
+ A skill is a focused prompt module — shorter than a full agent, covering one concern, composable with others.
390
+
391
+ ### Using a skill standalone
392
+
393
+ ```
394
+ # 1. Open the skill file
395
+ skills/ios/swift-review.md
396
+
397
+ # 2. Copy the ## Skill Prompt section
398
+
399
+ # 3. Paste it into any LLM session as the first message
400
+
401
+ # 4. Paste your code and ask for a review
402
+ ```
403
+
404
+ ### Composing multiple skills
405
+
406
+ ```
407
+ [paste skills/ios/swift-review.md skill prompt]
408
+ [paste skills/ios/swiftui-state.md skill prompt]
409
+
410
+ Now review this SwiftUI ViewModel: [paste code]
411
+ ```
412
+
413
+ The LLM applies both skill sets simultaneously — ARC + memory rules plus SwiftUI state rules.
414
+
415
+ ### Skills vs. Agents
416
+
417
+ | | Skills | Agents |
418
+ |---|---|---|
419
+ | Output format | Flexible — whatever the LLM produces | Structured — typed sections, verdict |
420
+ | Setup | Paste one block | Paste system prompt + follow input format |
421
+ | Best for | Quick inline review, composing capabilities | Structured analysis, repeatable output, team workflows |
422
+
423
+ ---
424
+
425
+ ## 8. How Prompts Work
426
+
427
+ Prompts are the simplest resource type — a complete, ready-to-paste prompt with a `[PASTE YOUR CODE HERE]` slot.
428
+
429
+ ```
430
+ # Example usage:
431
+ # 1. Open prompts/android/generate-unit-test.md
432
+ # 2. Copy the entire ## Prompt section
433
+ # 3. Replace [PASTE YOUR CLASS HERE] with your Kotlin class
434
+ # 4. Paste the whole thing into any LLM
435
+ ```
436
+
437
+ Prompts are one-shot — they don't require a system prompt, don't require a structured input format, and don't produce a structured output format. Use them when you want a quick result without setup.
438
+
439
+ ---
440
+
441
+ ## 9. Input Format Reference
442
+
443
+ Most agents use a consistent key-value input format:
444
+
445
+ ```
446
+ FIELD_NAME: value
447
+ MULTI_LINE_FIELD:
448
+ <content starts on the next line and can span many lines>
449
+ ```
450
+
451
+ **Common fields:**
452
+
453
+ | Field | Used In | Notes |
454
+ |---|---|---|
455
+ | `PLATFORM` | Android, iOS agents | Always required |
456
+ | `KOTLIN_VERSION` | Android agents | Affects Kotlin 2.0 K2 compiler rules |
457
+ | `SWIFT_VERSION` | iOS agents | `6.0` enables strict concurrency |
458
+ | `COMPOSE_VERSION` | Android Compose agents | Set to `none` for View-based UI |
459
+ | `FILE_PATH` | All code review agents | Required — agent infers architectural layer from path |
460
+ | `CODE` / `CRASH_LOG` / `GIT_LOG` | Varies | The main content block; always last |
461
+ | `USER_ACTION` | Crash analyzers | Highly recommended — critical for lifecycle crashes |
462
+ | `RELATED_CODE` | Crash analyzers | Optional but significantly improves output |
463
+
464
+ ---
465
+
466
+ ## 10. Output Format Reference
467
+
468
+ ### Code Review Agents (Android, iOS)
469
+
470
+ ```
471
+ REVIEW SUMMARY
472
+ ==============
473
+ File: <path> Layer: <inferred layer> Issues Found: N
474
+ Critical: N Warning: N Info: N
475
+
476
+ FINDINGS
477
+ --------
478
+ [CRITICAL] Line N — <title>
479
+ Problem : <why this is wrong>
480
+ Fix : <corrected code snippet>
481
+
482
+ [WARNING] / [INFO] ...
483
+
484
+ OVERALL VERDICT: PASS / NEEDS WORK / REWRITE
485
+ ```
486
+
487
+ ### Crash Analyzer Agents (Android, iOS)
488
+
489
+ ```
490
+ ## Crash Summary
491
+ ## Root Cause
492
+ ## Why This Happens
493
+ ## Risk Level
494
+ ## Recommended Fix
495
+ ## Updated Code
496
+ ## Edge Cases
497
+ ## Testing Checklist
498
+ ## Prevention Tips
499
+ ```
500
+
501
+ ### Performance Optimizer (React Native)
502
+
503
+ ```
504
+ PERFORMANCE AUDIT
505
+ =================
506
+ Issues Found: N High: N Medium: N Low: N
507
+
508
+ [HIGH] <title>
509
+ Impact : <estimated re-renders or FPS impact>
510
+ Problem : <root cause>
511
+ Refactored : <corrected TypeScript>
512
+
513
+ ESTIMATED IMPROVEMENT
514
+ Before: N re-renders After: N re-renders
515
+ ```
516
+
517
+ ### Generator Agents (Widget Generator, Screen Builder, Shader Generator, BLoC Feature Builder)
518
+
519
+ Each produces complete, compilable code organized by file with usage examples and notes.
520
+
521
+ ### Accessibility Auditor
522
+
523
+ ```
524
+ ACCESSIBILITY AUDIT
525
+ ===================
526
+ Issues Found: N Critical: N High: N Medium: N Low: N
527
+
528
+ [CRITICAL] <title>
529
+ Element : <component>
530
+ TalkBack/VoiceOver announces: <current>
531
+ Should announce: <correct>
532
+ WCAG : <criterion>
533
+ Fix : <corrected code>
534
+
535
+ OVERALL VERDICT: PASS / NEEDS WORK / INACCESSIBLE
536
+ ```
537
+
538
+ ---
539
+
540
+ ## 11. Contributing a New Agent
541
+
542
+ ### Before you start
543
+
544
+ 1. Check `agents/` — make sure the agent doesn't already exist
545
+ 2. Open a GitHub issue using the [New Agent template](../.github/ISSUE_TEMPLATE/new_agent.md)
546
+ 3. Get a thumbs-up before building — avoid duplicate work
547
+
548
+ ### File structure
549
+
550
+ Every new agent must have all four files:
551
+
552
+ ```
553
+ agents/<platform>/<your-agent-name>/
554
+ ├── README.md ← Quick start, supported cases, related agents
555
+ ├── agent.md ← Full spec: purpose, input, output, system prompt
556
+ ├── example-input.md ← Real input with 2–3 variations
557
+ └── example-output.md ← Verified output from the real input above
558
+ ```
559
+
560
+ ### Templates
561
+
562
+ ```bash
563
+ cp templates/agent-template.md agents/<platform>/<name>/agent.md
564
+ ```
565
+
566
+ ### Quality bar
567
+
568
+ An agent is rejected if:
569
+ - `example-output.md` contains placeholder text like `<output here>` — it must be the real output from testing the agent
570
+ - The system prompt is over 600 tokens — too long for constrained sessions
571
+ - The output format is not deterministic — if two runs of the same input produce structurally different output, it's not consistent enough
572
+
573
+ An agent is accepted if:
574
+ - It solves a problem developers actually hit
575
+ - The input format is clear enough that a first-time user can fill it correctly
576
+ - The output is structured enough to be machine-parseable
577
+
578
+ ### Testing your agent
579
+
580
+ 1. Copy the system prompt into Claude Sonnet 4.6 or GPT-4o
581
+ 2. Use your `example-input.md` as the input
582
+ 3. Paste the output into `example-output.md`
583
+ 4. Run it again with a different input to verify consistency
584
+
585
+ ---
586
+
587
+ ## 12. FAQ
588
+
589
+ **Q: Which LLM works best?**
590
+ A: Claude Sonnet 4.6 and GPT-4o both produce high-quality structured output for all agents. Smaller models (GPT-4o-mini, Claude Haiku) work for simpler agents (prompts, skills) but may produce less consistent structured output for complex agents (BLoC Feature Builder, CI/CD Generator).
591
+
592
+ **Q: Can I use these agents with the API?**
593
+ A: Yes. Copy the `## System Prompt` text as the `system` parameter in any OpenAI or Anthropic API call. See `docs/chatgpt-integration.md` for a working Python example.
594
+
595
+ **Q: My crash log isn't symbolicated — can the agent still help?**
596
+ A: For Android: yes — logcat and Firebase Crashlytics exports are already symbolicated. For iOS: no — the iOS Crash Analyzer requires a symbolicated `.crash` file. Symbolicate in Xcode Organizer first.
597
+
598
+ **Q: Can I run an agent on multiple files at once?**
599
+ A: Paste them sequentially with `--- FILE: path ---` separators. The agent will analyze each file. For cross-file architecture review, the `agents/android/code-reviewer/` agent can infer layer violations if you paste two related files and ask it to check the boundaries between them.
600
+
601
+ **Q: The agent output doesn't match the example-output.md exactly. Is that a problem?**
602
+ A: No — LLMs are non-deterministic. The structure (section names, severity labels, format) should match. The specific findings and code snippets will vary based on what the model focuses on. If the structure is consistently wrong, open a bug report.
603
+
604
+ **Q: How do I add these to my team's workflow?**
605
+ A: Three options — (1) clone the repo and open it in Cursor/Claude Code, (2) copy the Custom GPT instructions from `docs/chatgpt-integration.md` and share the GPT link with your team, (3) add the relevant agent system prompts to your team's `.cursorrules` or Copilot instructions file.
606
+
607
+ **Q: The agent missed a bug I know is there. What should I do?**
608
+ A: Paste more context — include the full class, not a snippet. Paste related files. If the agent still misses it consistently, open a GitHub issue and we'll improve the system prompt.
609
+
610
+ **Q: Can I use these commercially?**
611
+ A: Yes. The repo is MIT licensed — free to use, modify, and incorporate into commercial products. Attribution is appreciated but not required.
612
+
613
+ ---
614
+
615
+ *Last updated: v1.0.0 — May 2026*