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,138 @@
1
+ # Agent Guide
2
+
3
+ How agents in this repository are structured, why they are structured that way, and how to get the most out of them.
4
+
5
+ ---
6
+
7
+ ## What Is an Agent?
8
+
9
+ In this repo, an **agent** is a self-contained Markdown file that specifies:
10
+
11
+ 1. A **system prompt** — the LLM instructions
12
+ 2. An **input format** — the exact schema the developer fills in
13
+ 3. An **output format** — the exact schema the LLM must produce
14
+ 4. A **worked example** — real input → real output, tested
15
+
16
+ Agents are LLM-agnostic. They work with Claude, GPT-4, Gemini, and any instruction-following model. The quality of output scales with the quality of the model.
17
+
18
+ ---
19
+
20
+ ## Why Structured Input/Output?
21
+
22
+ Unstructured prompts produce inconsistent output. A structured input format means:
23
+ - The developer knows exactly what to provide
24
+ - The LLM has all the context it needs
25
+ - The output is predictable and parseable
26
+
27
+ Structured output means:
28
+ - You can pipe output into scripts
29
+ - You can track issues in a spreadsheet
30
+ - You can compare reviews across multiple files consistently
31
+
32
+ ---
33
+
34
+ ## Agent Anatomy
35
+
36
+ ```
37
+ ## Purpose — one sentence, answers "what does this do?"
38
+ ## Input Format — the schema with field descriptions
39
+ ## Output Format — the exact output template
40
+ ## System Prompt — the LLM instructions (paste this into your session)
41
+ ## Example — a real, tested input/output pair
42
+ ## Notes — limitations and compatibility
43
+ ```
44
+
45
+ Every section is required. Agents with empty or placeholder sections are rejected in review.
46
+
47
+ ---
48
+
49
+ ## Input Format Conventions
50
+
51
+ - Field names are UPPER_SNAKE_CASE
52
+ - Multi-line content fields (CODE, CRASH_LOG, GIT_LOG) always go last
53
+ - Boolean fields use `true | false`
54
+ - Enum fields show all valid values separated by `|`
55
+ - Optional fields are marked in the Fields table
56
+
57
+ ---
58
+
59
+ ## Output Format Conventions
60
+
61
+ - Section headings use `===` (level 1) or `---` (level 2)
62
+ - Verdict/summary lines are capitalized: `OVERALL VERDICT: PASS`
63
+ - Findings use `[CRITICAL]`, `[WARNING]`, `[INFO]` prefixes
64
+ - Line references: `Line N` (not `line N` or `L.N`)
65
+ - Code snippets in output use triple backtick blocks
66
+
67
+ ---
68
+
69
+ ## Severity Levels
70
+
71
+ | Level | When to Use |
72
+ |---|---|
73
+ | CRITICAL | Bug, crash, data loss, security issue, or performance problem that will affect users |
74
+ | WARNING | Bad practice, technical debt, anti-pattern, or scalability issue |
75
+ | INFO | Style, minor improvement, or optional suggestion |
76
+
77
+ ---
78
+
79
+ ## Choosing Between Agent, Skill, and Prompt
80
+
81
+ | Use | When... |
82
+ |---|---|
83
+ | **Agent** | You want a full structured analysis with typed fields, a complete output format, and a verdict |
84
+ | **Skill** | You want to add a focused capability to a session without the full agent structure |
85
+ | **Prompt** | You want a quick, one-shot result for a narrow task with minimal setup |
86
+
87
+ ---
88
+
89
+ ## Running Multiple Agents on the Same File
90
+
91
+ To review a file from multiple angles:
92
+
93
+ 1. Run Agent 01 (Android Code Reviewer) for quality issues
94
+ 2. Run Agent 05 (RN Performance Optimizer) equivalent for perf — or combine:
95
+ 3. Prepend multiple skill prompts before a single session
96
+
97
+ Or use Claude Code's multi-turn sessions: apply one agent, fix the issues, then apply the next.
98
+
99
+ ---
100
+
101
+ ## Automation
102
+
103
+ Agents can be run programmatically using the Anthropic API:
104
+
105
+ ```python
106
+ import anthropic
107
+
108
+ client = anthropic.Anthropic()
109
+
110
+ system_prompt = open("agents/android/code-reviewer/agent.md").read()
111
+ # Extract just the ## System Prompt section
112
+
113
+ user_input = f"""
114
+ PLATFORM: Android
115
+ KOTLIN_VERSION: 2.0
116
+ COMPOSE_VERSION: none
117
+ FILE_PATH: {file_path}
118
+ CODE:
119
+ {code_content}
120
+ """
121
+
122
+ message = client.messages.create(
123
+ model="claude-sonnet-4-6",
124
+ max_tokens=4096,
125
+ system=system_prompt,
126
+ messages=[{"role": "user", "content": user_input}]
127
+ )
128
+
129
+ print(message.content[0].text)
130
+ ```
131
+
132
+ ---
133
+
134
+ ## Contributing a New Agent
135
+
136
+ See [CONTRIBUTING.md](../CONTRIBUTING.md) and use [templates/agent-template.md](../templates/agent-template.md).
137
+
138
+ The most common rejection reason: the example output is placeholder text, not a real tested result. Always test your agent on your example input before submitting.
@@ -0,0 +1,219 @@
1
+ # Using Mobile Dev Skill Agents with ChatGPT
2
+
3
+ This guide covers three ways to use this toolkit with ChatGPT: manual paste, a Custom GPT that routes to the right agent automatically, and the Assistants API for programmatic use.
4
+
5
+ ---
6
+
7
+ ## Method 1 — Manual Paste (Quickest)
8
+
9
+ Works in any ChatGPT tier, no setup required.
10
+
11
+ 1. Open the agent file for your task. Example: `agents/android/code-reviewer/agent.md`
12
+ 2. Find the `## System Prompt` section and copy the text inside the code block.
13
+ 3. Start a new ChatGPT chat.
14
+ 4. Paste the system prompt as your **first message** and send it. ChatGPT will acknowledge the role.
15
+ 5. In your next message, use the agent's **Input Format** to send your code.
16
+
17
+ **Tip:** For GPT-4o and above, you can paste the entire `agent.md` file and say:
18
+ > "Use the system prompt and output format defined in this file to review the code I'll paste next."
19
+
20
+ ---
21
+
22
+ ## Method 2 — Custom GPT (Recommended for Teams)
23
+
24
+ Build one Custom GPT that covers all platforms. It reads the right agent based on what you describe.
25
+
26
+ ### Step 1 — Open GPT Builder
27
+
28
+ Go to [chatgpt.com](https://chatgpt.com) → your profile → **My GPTs** → **Create a GPT** → **Configure** tab.
29
+
30
+ ### Step 2 — Paste this as the System Prompt
31
+
32
+ ```
33
+ You are a Mobile Dev Skill Agent — an AI productivity assistant for Android, iOS,
34
+ Flutter, React Native, Unity, and Unreal Engine developers.
35
+
36
+ When the developer describes their task, identify which agent applies and apply
37
+ that agent's system prompt and output format automatically.
38
+
39
+ AGENT ROUTING TABLE:
40
+
41
+ | Task | Platform | Agent to Apply |
42
+ |---|---|---|
43
+ | Review Kotlin/Compose code, Clean Architecture | Android | Android Code Reviewer |
44
+ | Analyze Android crash log, stack trace, ANR | Android | Android Crash Analyzer |
45
+ | Review Swift/SwiftUI code | iOS | Swift Code Reviewer |
46
+ | Analyze iOS crash log | iOS | iOS Crash Analyzer |
47
+ | Generate Flutter widget from description | Flutter | Flutter Widget Generator |
48
+ | React Native performance, re-renders | React Native | RN Performance Optimizer |
49
+ | Generate Unity shader | Unity | Unity Shader Generator |
50
+ | Review Unreal Blueprint, C++ migration | Unreal | Unreal Blueprint Advisor |
51
+ | Release notes from git commits | Any | Release Notes Generator |
52
+ | CI/CD pipeline config | Any | CI/CD Pipeline Generator |
53
+ | App Store / Play Store listing | Any | Store Listing Writer |
54
+ | Security vulnerabilities in mobile code | Any | Security Scanner |
55
+ | Accessibility audit of UI code | Any | Accessibility Auditor |
56
+
57
+ AGENT SYSTEM PROMPTS:
58
+
59
+ --- ANDROID CODE REVIEWER ---
60
+ You are a senior Android engineer with deep expertise in Kotlin, Jetpack Compose,
61
+ Clean Architecture, and Android performance. Review Android Kotlin source files for:
62
+ 1. Clean Architecture violations (layer boundary crossing, Android imports in domain)
63
+ 2. Kotlin idioms (prefer StateFlow over LiveData, sealed class for state, avoid !!)
64
+ 3. Coroutine safety (no GlobalScope, viewModelScope usage, exception handling)
65
+ 4. Jetpack Compose misuse (remember, LaunchedEffect, derivedStateOf, recomposition)
66
+ 5. Dependency injection (no direct instantiation of repositories in ViewModels)
67
+ 6. Testability (injectable dependencies, no hardcoded singletons)
68
+ For each finding: [CRITICAL/WARNING/INFO] Line N — Title / Problem / Fix
69
+ End with: COROUTINE SAFETY, CLEAN ARCHITECTURE ASSESSMENT, TESTABILITY SCORE 1-10, OVERALL VERDICT.
70
+
71
+ --- ANDROID CRASH ANALYZER ---
72
+ You are a senior Android crash debugging expert. Analyze crash logs and related code.
73
+ Return exactly these sections:
74
+ ## Crash Summary | ## Root Cause | ## Why This Happens | ## Risk Level (Critical/High/Medium/Low) |
75
+ ## Recommended Fix | ## Updated Code | ## Edge Cases | ## Testing Checklist | ## Prevention Tips
76
+ Rules: Prefer lifecycle-aware solutions. For Fragment/ViewModel issues, consider lifecycle
77
+ owner, repeated observers, configuration changes. For coroutines, check scope, dispatcher,
78
+ cancellation, exception handling. For RecyclerView, check adapter state and async updates.
79
+
80
+ --- SWIFT CODE REVIEWER ---
81
+ You are a senior iOS engineer. Review Swift/SwiftUI source for:
82
+ 1. Memory safety (retain cycles, [weak self], unowned misuse)
83
+ 2. Concurrency (@MainActor, async/await, Sendable, actor isolation)
84
+ 3. SwiftUI state (@State/@StateObject/@ObservedObject misuse, expensive body)
85
+ 4. Force unwrap (!) removal, safe alternatives
86
+ 5. Testability (protocol-based dependencies, no singletons)
87
+ For each finding: [CRITICAL/WARNING/INFO] Line N — Title / Problem / Fix
88
+ End with: MEMORY SAFETY, CONCURRENCY, TESTABILITY SCORE 1-10, OVERALL VERDICT.
89
+
90
+ --- FLUTTER WIDGET GENERATOR ---
91
+ You are a senior Flutter engineer. Generate production-ready Flutter/Dart widget code.
92
+ Rules: null-safe Dart 3.x, const constructors, Theme.of(context) for all colors/styles,
93
+ Semantics for accessibility, responsive layout (no hardcoded widths), dispose all controllers.
94
+ Output: widget code + usage example + accessibility notes + theming notes + limitations.
95
+
96
+ --- RN PERFORMANCE OPTIMIZER ---
97
+ You are a senior React Native performance engineer. Analyze components for:
98
+ re-renders (missing useCallback/useMemo/React.memo), FlatList config (keyExtractor,
99
+ getItemLayout, windowSize), inline objects in JSX, bridge overhead, animation thread.
100
+ For each finding: [HIGH/MEDIUM/LOW] impact + problem + refactored code snippet.
101
+ End with: BRIDGE OVERHEAD, ANIMATION SAFETY, FLATLIST AUDIT, ESTIMATED IMPROVEMENT.
102
+
103
+ --- UNITY SHADER GENERATOR ---
104
+ You are a senior Unity graphics engineer. Generate complete .shader files (not snippets).
105
+ Match the pipeline (Built-in: CGPROGRAM, URP: HLSLPROGRAM with URP includes, HDRP: HDRP includes).
106
+ Mobile: ≤2 texture samples, half precision, no dynamic branching.
107
+ Output: full ShaderLab file + properties reference + material setup guide + performance notes.
108
+
109
+ --- UNREAL BLUEPRINT ADVISOR ---
110
+ You are a senior Unreal Engine engineer. Analyze Blueprint logic for:
111
+ Tick misuse (move to timers/events), Cast chains in hot paths, polling vs event-driven,
112
+ interface usage, component responsibility, replication issues.
113
+ Output: findings + TICK AUDIT + C++ MIGRATION CANDIDATES + C++ equivalent for HIGH items.
114
+
115
+ --- RELEASE NOTES GENERATOR ---
116
+ You are a technical writer for mobile teams. Convert git commit logs to release notes.
117
+ Filter noise (merge commits, CI, typo fixes). Group by: Features, Fixes, Performance, Internal.
118
+ Output three sections: USER-FACING (App Store copy ≤4000 chars), DEVELOPER CHANGELOG, QA NOTES.
119
+
120
+ --- CI/CD PIPELINE GENERATOR ---
121
+ You are a mobile DevOps engineer. Generate complete, working pipeline YAML or Ruby.
122
+ Use env vars for all secrets. Add caching. PR check: lint+test only. Staging: build+sign+distribute.
123
+ Production: full pipeline + GitHub Release + store upload.
124
+
125
+ --- STORE LISTING WRITER ---
126
+ You are an ASO specialist. Write App Store (title 30, subtitle 30, description 4000, keywords 100)
127
+ and Play Store (title 30, short desc 80, full desc 4000) listings. No superlatives.
128
+ Lead with strongest benefit. Keyword in title if natural. Report character counts.
129
+
130
+ --- SECURITY SCANNER ---
131
+ You are a mobile security engineer. Review code for OWASP Mobile Top 10:
132
+ hardcoded secrets, insecure storage, unvalidated deep links, missing certificate pinning,
133
+ excessive permissions, insecure network config, weak cryptography.
134
+ Severity: CRITICAL (exploitable now), HIGH (exploitable with effort), MEDIUM, LOW.
135
+
136
+ --- ACCESSIBILITY AUDITOR ---
137
+ You are a mobile accessibility specialist. Review UI code for:
138
+ missing content descriptions/labels, touch targets <48dp, color contrast via theme tokens,
139
+ missing screen reader announcements, focus order, keyboard navigation.
140
+ Severity: CRITICAL (blocks access), HIGH (degrades access), MEDIUM, LOW.
141
+
142
+ ROUTING INSTRUCTIONS:
143
+ 1. Read the developer's message. Identify platform and task type.
144
+ 2. Silently select the matching agent from the routing table.
145
+ 3. Apply that agent's system prompt to produce structured output.
146
+ 4. If the task is ambiguous, ask ONE clarifying question before proceeding.
147
+ 5. Never tell the developer which agent you're using — just apply it and output the result.
148
+ ```
149
+
150
+ ### Step 3 — Configure GPT Settings
151
+
152
+ - **Name:** Mobile Dev Agent
153
+ - **Description:** AI productivity toolkit for Android, iOS, Flutter, React Native, Unity, and Unreal developers
154
+ - **Instructions:** (the system prompt above)
155
+ - **Capabilities:** Enable Code Interpreter if you want file upload support for crash logs
156
+
157
+ ### Step 4 — Example Session
158
+
159
+ After saving the GPT, a developer can just say:
160
+
161
+ > "Review this Android ViewModel for me: [paste code]"
162
+
163
+ The GPT automatically applies the Android Code Reviewer agent and returns a structured CRITICAL/WARNING/INFO report.
164
+
165
+ ---
166
+
167
+ ## Method 3 — OpenAI Assistants API
168
+
169
+ Use any agent's system prompt directly as an Assistant's instructions.
170
+
171
+ ```python
172
+ import openai
173
+
174
+ client = openai.OpenAI()
175
+
176
+ # Read the system prompt from the agent file (the ## System Prompt section content)
177
+ system_prompt = """
178
+ You are a senior Android engineer with deep expertise in Kotlin, Jetpack Compose...
179
+ [paste full system prompt here]
180
+ """
181
+
182
+ assistant = client.beta.assistants.create(
183
+ name="Android Code Reviewer",
184
+ instructions=system_prompt,
185
+ model="gpt-4o",
186
+ )
187
+
188
+ thread = client.beta.threads.create()
189
+
190
+ client.beta.threads.messages.create(
191
+ thread_id=thread.id,
192
+ role="user",
193
+ content="""
194
+ PLATFORM: Android
195
+ KOTLIN_VERSION: 2.0
196
+ COMPOSE_VERSION: 1.7
197
+ FILE_PATH: app/src/main/java/com/example/ProfileViewModel.kt
198
+ CODE:
199
+ [your Kotlin code here]
200
+ """
201
+ )
202
+
203
+ run = client.beta.threads.runs.create_and_poll(
204
+ thread_id=thread.id,
205
+ assistant_id=assistant.id,
206
+ )
207
+
208
+ messages = client.beta.threads.messages.list(thread_id=thread.id)
209
+ print(messages.data[0].content[0].text.value)
210
+ ```
211
+
212
+ ---
213
+
214
+ ## Tips for Best Results
215
+
216
+ - **GPT-4o** gives the best structured output; GPT-4o-mini works for simpler agents.
217
+ - For crash analysis, paste the **full** stack trace — truncated traces miss the first app frame.
218
+ - For code review, paste the **complete** class, not a snippet — missing context leads to false positives.
219
+ - The Custom GPT method scales well for teams: one shared GPT, all agents available.
@@ -0,0 +1,143 @@
1
+ # Core Loops and Platform Plugins
2
+
3
+ Mobile AI Agents is organized as a mobile engineering system, not a prompt list.
4
+
5
+ The simple model:
6
+
7
+ ```text
8
+ Mobile AI Agents
9
+
10
+ Core Loops
11
+ - Planning
12
+ - Architecture
13
+ - Development
14
+ - Performance
15
+ - Security
16
+ - Testing
17
+ - Release
18
+ - Growth
19
+ - Maintenance
20
+
21
+ Platform Plugins
22
+ - Android
23
+ - iOS
24
+ - Flutter
25
+ - React Native
26
+ - Kotlin Multiplatform
27
+ - Unity
28
+ - Unreal
29
+ ```
30
+
31
+ Core loops describe the repeatable work every mobile team has to do. Platform plugins add the exact Android, iOS, Flutter, React Native, Kotlin Multiplatform, Unity, or Unreal expertise needed for that loop.
32
+
33
+ ## Why This Matters
34
+
35
+ Most AI coding resources start with prompts. Mobile teams start with outcomes:
36
+
37
+ - What are we building?
38
+ - Is the architecture same?
39
+ - Does it perform on real devices?
40
+ - Is it secure enough to ship?
41
+ - Does the UI match the design?
42
+ - Did tests and device QA prove it works?
43
+ - Can another session continue the work later?
44
+
45
+ Mobile AI Agents turns those questions into loops that can be run, audited, and repeated.
46
+
47
+ ## Loop Engineering
48
+
49
+ Loop Engineering means defining the goal once, then letting the system move through the next engineering steps with evidence:
50
+
51
+ ```text
52
+ Goal
53
+ -> Plan
54
+ -> Build
55
+ -> Audit
56
+ -> Test
57
+ -> Verify on device
58
+ -> Report
59
+ -> Save context
60
+ -> Continue
61
+ ```
62
+
63
+ The user should not have to manually prompt every stage. The system should stop only for product decisions, credentials, destructive actions, paid services, legal/store ownership, release approval, or blockers it cannot safely resolve.
64
+
65
+ ## Core Loops
66
+
67
+ | Loop | Purpose | Agents and Skills |
68
+ |---|---|---|
69
+ | Planning | Turn rough ideas into PRDs, roadmaps, and task slices. | `@APPFORGE`, `/grill-mobile`, `/feature-slice` |
70
+ | Architecture | Review system design, module boundaries, model separation, and clean code. | `@AXIOM`, `/clean-code-audit`, platform reviewers |
71
+ | Development | Implement one feature slice at a time and keep code scoped. | `@MOBILE-HARNESS`, `@FIGMA`, screen builders, code reviewers |
72
+ | Performance | Find and fix startup, ANR, memory, frame, battery, network, and size issues. | `@PERF`, `@FREEZE`, `@RETAINER`, `/perf-audit`, `/anr-investigation` |
73
+ | Security | Audit OWASP risks, secrets, auth, storage, deep links, WebViews, permissions, logs, and release hardening. | `@SENTINEL`, `security-scanner`, `/security-audit`, `/security-scan` |
74
+ | Testing | Add unit/UI tests, run device QA, check accessibility, and verify PRD/design match. | TDD skills, `/prd-verification`, `/mobile-mcp-qa`, `/accessibility-audit` |
75
+ | Release | Prepare CI/CD, signing, release notes, rollout, and store submission. | `@PIPELINE`, `@SCRIBE`, `/release-prep` |
76
+ | Growth | Improve store listing, ASO, screenshots, conversion, and monetization copy. | `@LAUNCHPAD`, `/store-listing` |
77
+ | Maintenance | Triage crashes, preserve context, plan issue work, and prevent regressions. | `@CRASHER`, Mobile Memory, crash triage, issue-to-agent workflow |
78
+
79
+ ## Platform Plugins
80
+
81
+ | Plugin | Current Coverage |
82
+ |---|---|
83
+ | Android | Kotlin, Java, Compose, Navigation, ANR, memory leaks, crash analysis, TDD, performance, security, release |
84
+ | iOS | Swift, SwiftUI, concurrency, networking, persistence, performance, testing, crash analysis |
85
+ | Flutter | Dart, widgets, Bloc feature building, review, TDD, modernization |
86
+ | React Native | Bridge performance, New Architecture, Expo optimization, review, TDD |
87
+ | Kotlin Multiplatform | Target platform plugin for shared Kotlin architecture, model boundaries, persistence, and API strategy |
88
+ | Unity | C#, shaders, frame budget, test loop, game performance |
89
+ | Unreal | Blueprint advice, C++ migration, performance, game architecture |
90
+
91
+ ## How To Choose
92
+
93
+ Choose by stage first:
94
+
95
+ | If You Need To... | Start With |
96
+ |---|---|
97
+ | Figure out what to build | Planning |
98
+ | Decide how the app should be structured | Architecture |
99
+ | Build a feature | Development |
100
+ | Fix slowness, jank, ANRs, memory leaks, or app size | Performance |
101
+ | Prepare for production risk review | Security |
102
+ | Prove the app works | Testing |
103
+ | Ship to stores | Release |
104
+ | Improve downloads or conversion | Growth |
105
+ | Resume work later or handle production issues | Maintenance |
106
+
107
+ Then choose the platform plugin that matches the app.
108
+
109
+ Example:
110
+
111
+ ```text
112
+ Problem: Android app freezes during startup
113
+ Loop: Performance
114
+ Plugin: Android
115
+ Agents/skills: @FREEZE, @PERF, /anr-investigation
116
+ Evidence: Play Console ANR trace, startup code, device reproduction
117
+ Output: root cause, fix, verification plan, regression check
118
+ ```
119
+
120
+ ## Marketing Position
121
+
122
+ Use this sentence when explaining the repo:
123
+
124
+ > Mobile AI Agents gives every mobile team a repeatable loop for planning, building, auditing, testing, releasing, and maintaining apps, with security and performance checks built in.
125
+
126
+ Short version:
127
+
128
+ ```text
129
+ Core Loops: Plan -> Build -> Audit -> Test -> Release -> Monitor
130
+ Platform Plugins: Android · iOS · Flutter · React Native · Kotlin Multiplatform · Unity · Unreal
131
+ ```
132
+
133
+ ## Current Gaps
134
+
135
+ The model is intentionally ahead of the full implementation. The strongest next builds are:
136
+
137
+ - Loop Engineering automation to reduce manual prompting
138
+ - `/prd-verification` rollout into Mobile Harness and APPFORGE evidence gates
139
+ - Mobile Flight Recorder
140
+ - Device Proof Reports
141
+ - dedicated Performance Loop reports
142
+ - dedicated Security Audit Loop reports
143
+ - Kotlin Multiplatform plugin assets
@@ -0,0 +1,143 @@
1
+ # Using Mobile Dev Skill Agents with Cursor
2
+
3
+ Cursor reads `.cursorrules` from the repo root automatically. When you open this repo in Cursor, the AI already knows the agent index, platform conventions, and severity levels — no setup needed.
4
+
5
+ ---
6
+
7
+ ## How `.cursorrules` Is Loaded
8
+
9
+ Cursor loads `.cursorrules` at the start of every session in the workspace. It acts as a persistent system prompt for Cursor Chat and Composer. You can verify it's active by asking:
10
+
11
+ > "What agents are available in this repo?"
12
+
13
+ Cursor should list all agents from the agent index in `.cursorrules`.
14
+
15
+ ---
16
+
17
+ ## Workflow 1 — Cursor Chat (Single File Review)
18
+
19
+ **Use when:** You want to review or improve one file.
20
+
21
+ 1. Open the file you want to review (e.g., `ProfileViewModel.kt`)
22
+ 2. Open Cursor Chat (Cmd+L)
23
+ 3. Type:
24
+
25
+ ```
26
+ Review this file using the Android Code Reviewer agent at
27
+ agents/android/code-reviewer/agent.md
28
+ ```
29
+
30
+ Or more naturally:
31
+
32
+ ```
33
+ Review this ViewModel for Clean Architecture violations and coroutine safety.
34
+ ```
35
+
36
+ Cursor will read the agent rules from `.cursorrules` and produce a structured CRITICAL/WARNING/INFO report.
37
+
38
+ **With file reference:**
39
+
40
+ ```
41
+ @ProfileViewModel.kt
42
+ Review for Clean Architecture violations, GlobalScope usage, and Compose best practices.
43
+ ```
44
+
45
+ ---
46
+
47
+ ## Workflow 2 — Cursor Composer (Multi-File or Apply Fixes)
48
+
49
+ **Use when:** You want to review AND automatically apply fixes across one or more files.
50
+
51
+ 1. Open Composer (Cmd+I or Cmd+Shift+I)
52
+ 2. Reference the file(s) and the agent:
53
+
54
+ ```
55
+ @agents/android/code-reviewer/agent.md @ProfileViewModel.kt
56
+
57
+ Review ProfileViewModel.kt, then apply the CRITICAL and WARNING fixes directly to the file.
58
+ ```
59
+
60
+ Composer will:
61
+ - Run the agent review
62
+ - Show you a diff of every proposed change
63
+ - Let you accept or reject each change individually
64
+
65
+ **Multi-file example:**
66
+
67
+ ```
68
+ @agents/react-native/performance-optimizer/agent.md
69
+
70
+ Review every file in src/screens/ for performance issues and apply the HIGH-impact fixes.
71
+ ```
72
+
73
+ ---
74
+
75
+ ## Workflow 3 — Crash Log Analysis
76
+
77
+ 1. Open or paste the crash log into a new file (e.g., `crash.txt`)
78
+ 2. In Cursor Chat:
79
+
80
+ ```
81
+ @crash.txt @agents/android/crash-analyzer/agent.md
82
+
83
+ Analyze this crash log. The user was on Android 14 / Pixel 8 Pro.
84
+ ```
85
+
86
+ Cursor will return the full 9-section crash analysis: Summary, Root Cause, Why It Happens, Risk Level, Recommended Fix, Updated Code, Edge Cases, Testing Checklist, Prevention Tips.
87
+
88
+ ---
89
+
90
+ ## Workflow 4 — Generate Code from Description
91
+
92
+ **Flutter widget:**
93
+
94
+ ```
95
+ @agents/flutter/widget-generator/agent.md
96
+
97
+ Generate a Flutter widget for a swipeable onboarding screen with 3 pages,
98
+ a dot indicator, skip button, and a Get Started button on the last page.
99
+ Flutter 3.27, Dart 3.6, no state management package.
100
+ ```
101
+
102
+ **Unity shader:**
103
+
104
+ ```
105
+ @agents/unity/shader-generator/agent.md
106
+
107
+ Generate a URP unlit shader for a dissolve effect using a noise texture.
108
+ The dissolve threshold should be a tweakable property. Mobile-friendly.
109
+ ```
110
+
111
+ ---
112
+
113
+ ## Workflow 5 — CI/CD Pipeline Generation
114
+
115
+ ```
116
+ @agents/cross-platform/ci-cd-generator/agent.md
117
+
118
+ Generate a GitHub Actions pipeline for my Flutter app.
119
+ Platforms: Android + iOS.
120
+ Distribution: Firebase App Distribution (Android) + TestFlight (iOS).
121
+ Tests: flutter test.
122
+ Notify Slack on success/failure.
123
+ ```
124
+
125
+ ---
126
+
127
+ ## Tips
128
+
129
+ - **@codebase** in Cursor Chat gives the agent awareness of your entire project structure — useful for architecture-level questions.
130
+ - **Cursor Tab** (autocomplete) uses `.cursorrules` implicitly — it will suggest Kotlin idioms, avoid `!!`, and prefer `StateFlow` in Android files automatically.
131
+ - For agents with long output (CI/CD Generator, Store Listing Writer), use **Composer** rather than Chat — Composer handles long outputs better and can write directly to files.
132
+ - Combine multiple `@file` references to give the agent cross-file context:
133
+
134
+ ```
135
+ @ProfileViewModel.kt @ProfileRepository.kt @ProfileUseCase.kt
136
+ Review the full data flow for Clean Architecture violations.
137
+ ```
138
+
139
+ ---
140
+
141
+ ## Updating `.cursorrules`
142
+
143
+ When new agents are added to the repo, update the Agent Index table in `.cursorrules` so Cursor Chat can reference them. The table is at the top of the file.