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,149 @@
1
+ # Skill — Mobile Security Scan
2
+
3
+ **Platform:** Cross-Platform (Android / iOS / Flutter / React Native)
4
+ **Category:** Code Quality / Security
5
+ **Composable With:** agents/cross-platform/security-scanner/agent.md
6
+
7
+ ---
8
+
9
+ ## Purpose
10
+
11
+ Reviews mobile source code for the most exploitable OWASP Mobile Top 10 vulnerabilities. Use as a pre-release security gate or as part of a code review for security-sensitive features (auth, payments, deep links).
12
+
13
+ ## When to Use
14
+
15
+ - Before any release that touches auth, payments, or data storage
16
+ - When reviewing code that handles user credentials or tokens
17
+ - When adding a new deep link or URL scheme handler
18
+
19
+ ---
20
+
21
+ ## Skill Prompt
22
+
23
+ ```
24
+ When scanning mobile code for security vulnerabilities, check for:
25
+
26
+ HARDCODED SECRETS (M9 — Insecure Authentication)
27
+ - API keys, tokens, passwords, or cryptographic keys hardcoded as string literals.
28
+ Common patterns: const val API_KEY = "sk-...", let apiKey = "Bearer ...", "password123"
29
+ - Android: check BuildConfig fields, string resources, and gradle.properties committed to git.
30
+ - iOS: check Info.plist, .xcconfig files, and Swift/ObjC string constants.
31
+ - Fix: use environment variables, secrets managers (AWS Secrets Manager, HashiCorp Vault),
32
+ or runtime fetching from a secure endpoint. Never commit secrets to git.
33
+ - Severity: CRITICAL
34
+
35
+ INSECURE DATA STORAGE (M2)
36
+ - Android SharedPreferences storing tokens, passwords, PII, or session IDs in clear text.
37
+ Fix: use EncryptedSharedPreferences (Jetpack Security Crypto).
38
+ - iOS NSUserDefaults storing tokens or credentials.
39
+ Fix: use the Keychain (KeychainAccess library, or Security framework directly).
40
+ - SQLite databases storing sensitive data without SQLCipher encryption.
41
+ - Files written to external storage (Environment.EXTERNAL_STORAGE_DIR) with sensitive content.
42
+ - React Native AsyncStorage storing tokens in clear text — AsyncStorage is unencrypted.
43
+ Fix: use react-native-keychain or expo-secure-store.
44
+ - Severity: CRITICAL for tokens/passwords, HIGH for PII
45
+
46
+ UNVALIDATED DEEP LINKS / URL SCHEMES (M10 — Insufficient Input/Output Validation)
47
+ - Deep link handlers that read query parameters and use them directly in navigation,
48
+ SQL queries, or web view URLs without validation or sanitization.
49
+ - Android intent-filter handlers that accept arbitrary schemes without host/path validation.
50
+ - iOS Universal Links and Custom URL Scheme handlers that don't validate the source or
51
+ whitelist allowed paths.
52
+ - Fix: whitelist allowed hosts and paths; sanitize all URL parameters before use;
53
+ never pass raw URL parameters to a WebView loadUrl() or SQL query.
54
+ - Severity: HIGH
55
+
56
+ MISSING CERTIFICATE PINNING (M3 — Insecure Communication)
57
+ - Apps that handle financial data, health data, or authentication without certificate pinning
58
+ are vulnerable to MitM attacks on hostile networks (coffee shops, corporate proxies).
59
+ - Android: check for TrustManager implementations that override checkServerTrusted() without
60
+ real validation — this defeats TLS entirely.
61
+ - iOS: check for NSAllowsArbitraryLoads: true in Info.plist — this disables ATS globally.
62
+ - Fix (Android): use OkHttp CertificatePinner or Network Security Config XML.
63
+ - Fix (iOS): implement URLSessionDelegate.urlSession(_:didReceive:completionHandler:) with
64
+ pinned certificate fingerprint validation.
65
+ - Severity: HIGH for auth/payment endpoints, MEDIUM otherwise
66
+
67
+ INSECURE WEBVIEW CONFIGURATION (M1 — Improper Platform Usage)
68
+ - Android WebView: setJavaScriptEnabled(true) with addJavascriptInterface() exposes a Java
69
+ bridge to any JS running in the WebView. If the WebView loads untrusted content, this is RCE.
70
+ - Android WebView: setAllowFileAccessFromFileURLs(true) allows file:// URLs to read other files.
71
+ - iOS WKWebView: evaluateJavaScript with user-controlled input is XSS.
72
+ - Fix: never load untrusted URLs in a WebView with JS enabled + native bridge.
73
+ Use a Content Security Policy. Whitelist allowed origins.
74
+ - Severity: CRITICAL if loading untrusted content, HIGH otherwise
75
+
76
+ EXCESSIVE PERMISSIONS (M1)
77
+ - Android manifest permissions that are not required by the app's features.
78
+ Common over-grants: READ_CONTACTS, ACCESS_FINE_LOCATION, RECORD_AUDIO, CAMERA
79
+ when the feature only needs ACCESS_COARSE_LOCATION or doesn't use the camera.
80
+ - iOS Info.plist usage description strings that are overly broad ("App needs location")
81
+ rather than specific and accurate.
82
+ - Fix: request only the minimum permission needed; use ACCESS_COARSE_LOCATION for maps,
83
+ ACCESS_FINE_LOCATION only for navigation.
84
+ - Severity: MEDIUM
85
+
86
+ WEAK OR MISSING CRYPTOGRAPHY (M5)
87
+ - MD5 or SHA-1 used for password hashing or token signing — these are broken for security.
88
+ Fix: use bcrypt, Argon2, or SHA-256+ for passwords; HMAC-SHA256 for HMAC.
89
+ - ECB mode AES encryption — deterministic, leaks patterns.
90
+ Fix: use AES-GCM or AES-CBC with a random IV.
91
+ - Hardcoded encryption keys (covered under HARDCODED SECRETS, but call out if it's a crypto key specifically).
92
+ - Severity: CRITICAL for auth/payment, HIGH otherwise
93
+
94
+ For each issue: identify the file/line, assign severity (CRITICAL / HIGH / MEDIUM / LOW),
95
+ explain why it's exploitable, and give the concrete fix.
96
+ ```
97
+
98
+ ---
99
+
100
+ ## Example
101
+
102
+ **Input:**
103
+ ```kotlin
104
+ // Android — ProfileRepository.kt
105
+ object ProfileRepository {
106
+ private val prefs = App.context.getSharedPreferences("profile", Context.MODE_PRIVATE)
107
+
108
+ fun saveToken(token: String) {
109
+ prefs.edit().putString("auth_token", token).apply()
110
+ }
111
+ }
112
+ ```
113
+
114
+ **Output:**
115
+ ```
116
+ CRITICAL — Auth token stored in plaintext SharedPreferences
117
+ Problem: SharedPreferences files are stored at /data/data/<package>/shared_prefs/ and are
118
+ accessible to any app with root access or via ADB on a debug/unlocked device.
119
+ Storing auth tokens in plaintext means an attacker with device access can steal
120
+ session tokens without knowing the user's password.
121
+ Fix:
122
+ // Use EncryptedSharedPreferences (requires androidx.security:security-crypto)
123
+ val masterKey = MasterKey.Builder(context)
124
+ .setKeyScheme(MasterKey.KeyScheme.AES256_GCM)
125
+ .build()
126
+ val encryptedPrefs = EncryptedSharedPreferences.create(
127
+ context, "profile_secure", masterKey,
128
+ EncryptedSharedPreferences.PrefKeyEncryptionScheme.AES256_SIV,
129
+ EncryptedSharedPreferences.PrefValueEncryptionScheme.AES256_GCM
130
+ )
131
+ encryptedPrefs.edit().putString("auth_token", token).apply()
132
+ ```
133
+
134
+ ---
135
+
136
+ ## Composition Example
137
+
138
+ ```
139
+ Prepend this skill to any code review that touches auth, storage, deep links, or WebViews.
140
+ For a full structured security audit across an entire codebase with OWASP references
141
+ and a severity-ranked findings report, run agents/cross-platform/security-scanner/agent.md.
142
+ ```
143
+
144
+ ---
145
+
146
+ ## Notes
147
+
148
+ - This skill covers code-level vulnerabilities only. Network-level (TLS configuration, certificate validity), server-side, and binary-level vulnerabilities require dedicated tooling (MobSF, Frida, Burp Suite).
149
+ - Static analysis tools (Android Lint security checks, SwiftLint, Semgrep mobile rules) can automate some of these checks — this skill is for the gaps they miss.
@@ -0,0 +1,31 @@
1
+ # Unity Skills
2
+
3
+ Reusable skill prompt modules for Unity (HLSL / ShaderLab / URP / HDRP) shader review and game development.
4
+
5
+ ## Index
6
+
7
+ | Skill | File | When to Use |
8
+ |---|---|---|
9
+ | Unity Shader Review | [shader-review.md](shader-review.md) | Pre-submission mobile shader audit — texture budget, precision, render pipeline correctness |
10
+
11
+ ## Usage
12
+
13
+ ```
14
+ # Review a shader before committing to a mobile build
15
+ [paste skill prompt from shader-review.md]
16
+
17
+ Review this shader: [paste .shader file content]
18
+ ```
19
+
20
+ ## Composable With
21
+
22
+ - [`agents/unity/shader-generator`](../../agents/unity/shader-generator/) — generate shaders that already follow these rules
23
+
24
+ ## Contributing
25
+
26
+ High-value skills to add:
27
+ - `unity-c-sharp-patterns.md` — MonoBehaviour patterns, coroutine safety, `Update` vs `FixedUpdate`
28
+ - `mobile-performance.md` — draw call budget, batching, texture atlas, LOD
29
+ - `addressables.md` — Addressable Asset System patterns for mobile memory management
30
+
31
+ Copy `templates/skill-template.md`.
@@ -0,0 +1,110 @@
1
+ # Skill — Unity Shader Review
2
+
3
+ **Platform:** Unity (HLSL / ShaderLab)
4
+ **Category:** Game Development / Performance
5
+ **Composable With:** agents/unity/shader-generator/agent.md
6
+
7
+ ---
8
+
9
+ ## Purpose
10
+
11
+ Reviews Unity shader code for mobile performance budget violations, API correctness for the target render pipeline, and common authoring mistakes. Use before shipping a shader to a mobile build.
12
+
13
+ ## When to Use
14
+
15
+ - Before committing a new shader to a project targeting mobile (iOS/Android)
16
+ - When reviewing a shader generated by an LLM or written by a non-graphics developer
17
+ - When profiling shows GPU overdraw or high fragment shader cost
18
+
19
+ ---
20
+
21
+ ## Skill Prompt
22
+
23
+ ```
24
+ When reviewing a Unity HLSL/ShaderLab shader, check for:
25
+
26
+ MOBILE PERFORMANCE BUDGET
27
+ - Texture samples: flag if >2 texture samples per fragment on a mobile-targeted shader.
28
+ Each sample adds GPU latency; 3+ samples per fragment will cause frame budget overruns
29
+ on Mali/Adreno GPUs at 1080p.
30
+ - Precision: all fragment shader calculations should use half (16-bit) unless the precision
31
+ is mathematically required to be float (32-bit). Flag any float declaration in the fragment
32
+ shader that could be half.
33
+ - Dynamic branching: flag any if/else or switch in the fragment shader that depends on a
34
+ uniform or interpolated value. Dynamic branches cause warp divergence on mobile GPUs.
35
+ Exception: compile-time branches (#if / #ifdef / shader_feature) are free.
36
+ - pow() and sin(): these are expensive on some GPUs. In the fragment shader, prefer
37
+ approximations or precomputed lookup textures for non-interactive effects.
38
+ - Discard / clip(): transparent shaders that use discard prevent early-Z culling on mobile.
39
+ Use alpha blending instead of alpha test where possible.
40
+
41
+ RENDER PIPELINE CORRECTNESS
42
+ - Built-in Pipeline: must use CGPROGRAM / ENDCG and #include "UnityCG.cginc".
43
+ Flag any HLSLPROGRAM / URP/HDRP includes in a Built-in shader.
44
+ - URP: must use HLSLPROGRAM / ENDHLSL and include the correct URP ShaderLibrary headers.
45
+ Flag any CGPROGRAM in a URP shader — it will not compile correctly.
46
+ - HDRP: must use HDRP ShaderLibrary headers and the HDRP attribute struct conventions.
47
+ - Cross-pipeline: if the shader is intended to be pipeline-agnostic, it must use
48
+ shader_feature or multi_compile to select the correct includes.
49
+
50
+ COMMON MISTAKES
51
+ - CBUFFER_START(UnityPerMaterial): all material properties that are modified per-material
52
+ must be inside this constant buffer (URP). Properties outside CBUFFER are GPU-uploaded
53
+ per-draw-call, which is expensive for batching.
54
+ - Missing FallBack: for Built-in shaders, a FallBack ensures low-end devices render something
55
+ reasonable. Flag shaders with no FallBack "Diffuse" or FallBack Off without justification.
56
+ - _Time usage: use _Time.y (seconds) for animation. Never use Unity C# Time.deltaTime or
57
+ Time.time from a shader — these values cannot be passed without a script.
58
+ - ZWrite Off for transparent shaders: additive or alpha-blended shaders must have ZWrite Off
59
+ to avoid writing to the depth buffer and causing incorrect sorting.
60
+
61
+ For each issue: identify the line or block, explain the GPU cost or correctness problem,
62
+ and provide the corrected HLSL/ShaderLab snippet.
63
+ ```
64
+
65
+ ---
66
+
67
+ ## Example
68
+
69
+ **Input:**
70
+ ```hlsl
71
+ half4 frag(Varyings IN) : SV_Target
72
+ {
73
+ float4 col = SAMPLE_TEXTURE2D(_MainTex, sampler_MainTex, IN.uv);
74
+ float4 mask = SAMPLE_TEXTURE2D(_MaskTex, sampler_MaskTex, IN.uv);
75
+ float4 detail = SAMPLE_TEXTURE2D(_DetailTex, sampler_DetailTex, IN.uv);
76
+ float brightness = 1.0;
77
+ if (col.a > 0.5) brightness = 2.0;
78
+ return col * mask * detail * brightness;
79
+ }
80
+ ```
81
+
82
+ **Output:**
83
+ ```
84
+ 3 texture samples per fragment — WARNING for mobile
85
+ Problem: _MainTex, _MaskTex, and _DetailTex are all sampled in the same fragment shader.
86
+ This hits the recommended mobile budget of ≤2 samples. On Adreno 6xx/Mali-G7x,
87
+ the third sample adds ~0.5ms per frame at 1080p.
88
+ Fix: Pack the mask into the alpha channel of _MainTex (RGBA), or bake the detail
89
+ multiplicatively into _MainTex at import time to eliminate one sample.
90
+
91
+ Dynamic branch on interpolated value — CRITICAL for mobile
92
+ Problem: `if (col.a > 0.5)` branches on a sampled texture value. This causes warp
93
+ divergence on mobile GPUs — both branches execute for every fragment in a warp,
94
+ wasting half the GPU work.
95
+ Fix: Use a smooth step or multiply instead:
96
+ half brightness = 1.0 + step(0.5, col.a); // 1.0 or 2.0, no branch
97
+ // Or: half brightness = lerp(1.0, 2.0, step(0.5, col.a));
98
+
99
+ float4 used for col, mask, detail — WARNING
100
+ Problem: All three sampled values are float4 (32-bit). For a color/mask that doesn't
101
+ need full float precision, use half4 to halve ALU register pressure on mobile.
102
+ Fix: half4 col = SAMPLE_TEXTURE2D(...); half4 mask = ...; half4 detail = ...;
103
+ ```
104
+
105
+ ---
106
+
107
+ ## Notes
108
+
109
+ - GPU profiling (Mali Offline Compiler, Adreno Profiler, Xcode GPU Timeline) is the ground truth — use this skill for pre-submission review, not as a replacement for measuring.
110
+ - For desktop/console shaders, the mobile budget rules (texture count, half precision) do not apply — focus on correctness and pipeline checks instead.
@@ -0,0 +1,88 @@
1
+ # Agent NN — [Agent Name]
2
+
3
+ **Platform:** [Android | iOS | Flutter | React Native | Unity | Unreal | Cross-Platform]
4
+ **Category:** [Code Quality | Performance | UI & Design | Debugging | DevOps | Game Dev | Documentation]
5
+ **Complexity:** [Low | Medium | High]
6
+
7
+ ---
8
+
9
+ ## Purpose
10
+
11
+ [One sentence: What does this agent do and what problem does it solve?]
12
+
13
+ ---
14
+
15
+ ## Input Format
16
+
17
+ ```
18
+ FIELD_ONE: <description of expected value>
19
+ FIELD_TWO: <description of expected value>
20
+ CONTENT:
21
+ <description of the main content block>
22
+ ```
23
+
24
+ **Fields:**
25
+
26
+ | Field | Required | Description |
27
+ |---|---|---|
28
+ | `FIELD_ONE` | Yes | [What it is] |
29
+ | `FIELD_TWO` | No | [What it is, and what happens if omitted] |
30
+ | `CONTENT` | Yes | [What goes here] |
31
+
32
+ ---
33
+
34
+ ## Output Format
35
+
36
+ ```
37
+ SECTION HEADING
38
+ ===============
39
+ [Describe what appears here]
40
+
41
+ SECOND SECTION
42
+ --------------
43
+ [Describe what appears here, including any conditional blocks]
44
+
45
+ VERDICT: <OUTCOME_A | OUTCOME_B | OUTCOME_C>
46
+ ```
47
+
48
+ ---
49
+
50
+ ## System Prompt
51
+
52
+ ```
53
+ [This is the full prompt the developer pastes into their LLM session as the system/assistant prompt before submitting input.]
54
+
55
+ [Write it in second person directed at the LLM: "You are a... Your job is to..."]
56
+
57
+ [List explicit rules the LLM must follow — numbered, concrete, testable.]
58
+
59
+ [End with: "Output MUST follow the exact format specified."]
60
+ ```
61
+
62
+ ---
63
+
64
+ ## Example
65
+
66
+ ### Input
67
+
68
+ ```
69
+ FIELD_ONE: [example value]
70
+ FIELD_TWO: [example value]
71
+ CONTENT:
72
+ [real example content — not placeholder text]
73
+ ```
74
+
75
+ ### Output
76
+
77
+ ```
78
+ [Real example output that the system prompt actually produces on the example input.
79
+ Do not write "Output will appear here." Test it and paste the real result.]
80
+ ```
81
+
82
+ ---
83
+
84
+ ## Notes
85
+
86
+ - [Edge case or limitation 1]
87
+ - [Edge case or limitation 2]
88
+ - [LLM compatibility note, e.g. "Tested with: Claude Sonnet 4.6, GPT-4o"]
@@ -0,0 +1,50 @@
1
+ # Prompt — [Prompt Name]
2
+
3
+ **Platform:** [Android | iOS | Flutter | React Native | Unity | Unreal | Cross-Platform]
4
+ **Category:** [Code Quality | Performance | UI & Design | Debugging | DevOps | Game Dev | Documentation]
5
+ **Type:** [one-shot | conversational | chain-of-thought]
6
+
7
+ ---
8
+
9
+ ## Purpose
10
+
11
+ [One sentence: What does this prompt do?]
12
+
13
+ ---
14
+
15
+ ## Prompt
16
+
17
+ ```
18
+ [The raw prompt text. This is a standalone prompt — not a system prompt.
19
+ It is pasted directly into a chat interface along with the developer's content.
20
+
21
+ Format: clearly separate the instruction from the placeholder for user content.
22
+ Use [CONTENT] or triple backticks to mark where the developer should paste their code/data.]
23
+ ```
24
+
25
+ ---
26
+
27
+ ## Example Usage
28
+
29
+ **What you paste:**
30
+ ```
31
+ [Show the full prompt with realistic content substituted in]
32
+ ```
33
+
34
+ **Expected output:**
35
+ ```
36
+ [Real output — tested]
37
+ ```
38
+
39
+ ---
40
+
41
+ ## Variations
42
+
43
+ - **[Variation name]:** [Short description of how to modify the prompt for a different use case]
44
+
45
+ ---
46
+
47
+ ## Notes
48
+
49
+ - [Limitation]
50
+ - [Best LLM for this prompt]
@@ -0,0 +1,64 @@
1
+ # Skill — [Skill Name]
2
+
3
+ **Platform:** [Android | iOS | Flutter | React Native | Unity | Unreal | Cross-Platform]
4
+ **Category:** [Code Quality | Performance | UI & Design | Debugging | DevOps | Game Dev | Documentation]
5
+ **Composable With:** [list other skills this pairs well with, or "standalone"]
6
+
7
+ ---
8
+
9
+ ## Purpose
10
+
11
+ [One sentence: What reusable capability does this skill add?]
12
+
13
+ ## When to Use
14
+
15
+ [2–3 bullet points describing the scenarios where you would reach for this skill:
16
+ - When you are doing X and need Y...
17
+ - When an agent needs to...
18
+ - As a step inside a larger workflow when...]
19
+
20
+ ---
21
+
22
+ ## Skill Prompt
23
+
24
+ ```
25
+ [The skill prompt text. This is a self-contained prompt module that can be:
26
+ (a) Pasted directly into a chat session
27
+ (b) Prepended to a larger agent prompt
28
+ (c) Chained with other skills
29
+
30
+ Write it in second person: "When given X, you will..."
31
+
32
+ Keep it focused on ONE capability. If it does two things, split it into two skills.]
33
+ ```
34
+
35
+ ---
36
+
37
+ ## Example
38
+
39
+ **Input:**
40
+ ```
41
+ [Real example input]
42
+ ```
43
+
44
+ **Output:**
45
+ ```
46
+ [Real example output — tested, not hypothetical]
47
+ ```
48
+
49
+ ---
50
+
51
+ ## Composition Example
52
+
53
+ ```
54
+ [Show how to combine this skill with another skill or agent.
55
+ Example: "Prepend this skill prompt before the Android Code Reviewer system prompt
56
+ to add layer-boundary detection to the review."]
57
+ ```
58
+
59
+ ---
60
+
61
+ ## Notes
62
+
63
+ - [Limitation or edge case]
64
+ - [Version or API dependency]
@@ -0,0 +1,48 @@
1
+ # Workflow — [Name]
2
+
3
+ **Type:** [End-to-end feature | Incident response | Release management | DevOps | UI implementation]
4
+ **Agents Used:** [AGENT-NAME, AGENT-NAME]
5
+ **Skills Used:** [/skill-name, /skill-name]
6
+
7
+ ---
8
+
9
+ ## When to Use
10
+
11
+ [One sentence: the specific situation that triggers this workflow.]
12
+
13
+ ---
14
+
15
+ ## Steps
16
+
17
+ ```
18
+ 1. STEP NAME — AGENT or SKILL
19
+ ↓ What happens in this step.
20
+ ↓ What decisions are made.
21
+ ↓ What output is produced.
22
+
23
+ 2. STEP NAME — AGENT or SKILL
24
+ ↓ ...
25
+
26
+ [Continue for each step — typically 4–8 steps]
27
+ ```
28
+
29
+ ---
30
+
31
+ ## Inputs
32
+
33
+ - [What the developer provides at the start]
34
+ - [Required context, files, or access]
35
+
36
+ ---
37
+
38
+ ## Outputs
39
+
40
+ - [What is produced at the end of this workflow]
41
+ - [Artifacts, deployments, decisions]
42
+
43
+ ---
44
+
45
+ ## Notes
46
+
47
+ - [Any platform-specific variations]
48
+ - [When NOT to use this workflow]
@@ -0,0 +1,66 @@
1
+ # Workflow — App Launch
2
+
3
+ **Type:** Store submission
4
+ **Agents Used:** SENTINEL, PERF, LAUNCHPAD, SCRIBE, PIPELINE
5
+ **Skills Used:** /release-prep, /perf-audit, /store-listing
6
+
7
+ ---
8
+
9
+ ## When to Use
10
+
11
+ Final checklist before submitting a new app or major version to the Play Store or App Store.
12
+
13
+ ---
14
+
15
+ ## Steps
16
+
17
+ ```
18
+ 1. SECURITY — SENTINEL
19
+ ↓ Full security scan on release build sources.
20
+ ↓ Block on any CRITICAL or HIGH finding.
21
+ ↓ MEDIUM findings: document and plan post-launch remediation.
22
+
23
+ 2. PERFORMANCE — PERF + /perf-audit
24
+ ↓ Measure cold start time (target: < 2 seconds to interactive).
25
+ ↓ Profile the 3 most-used screens for frame drops.
26
+ ↓ Memory baseline on a 3-year-old mid-range device.
27
+
28
+ 3. STORE LISTING — LAUNCHPAD + /store-listing
29
+ ↓ Write or review Play Store / App Store copy.
30
+ ↓ ASO keyword strategy for launch category.
31
+ ↓ Screenshot brief for designer.
32
+
33
+ 4. RELEASE NOTES — SCRIBE
34
+ ↓ Generate first-version release notes from git log.
35
+ ↓ "What's new in version 1.0" — highlight top 3 features.
36
+
37
+ 5. RELEASE CHECKLIST — /release-prep
38
+ ↓ Run through the full pre-submission checklist.
39
+ ↓ All boxes must be checked before submitting.
40
+
41
+ 6. BUILD & DEPLOY — PIPELINE
42
+ ↓ Generate release build pipeline if not already set up.
43
+ ↓ Sign and upload to Play Store internal track / TestFlight.
44
+ ↓ Staged rollout plan: 1% → 5% → 20% → 100%.
45
+
46
+ 7. MONITOR
47
+ ↓ Watch crash-free rate, ANR rate, rating/review velocity.
48
+ ↓ Set up alerts for crash rate > 0.5%.
49
+ ```
50
+
51
+ ---
52
+
53
+ ## Inputs
54
+
55
+ - Release branch at feature freeze
56
+ - App store developer account access
57
+ - Designer assets (screenshots, feature graphic, app icon)
58
+
59
+ ---
60
+
61
+ ## Outputs
62
+
63
+ - Security-cleared, performance-validated release build
64
+ - Complete store listing ready for submission
65
+ - CI/CD pipeline for future releases
66
+ - Monitoring baseline for post-launch tracking