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.
- package/AGENTS.md +228 -0
- package/CLAUDE.md +236 -0
- package/LICENSE +21 -0
- package/README.md +652 -0
- package/agents/android/android-crash-analyzer/README.md +134 -0
- package/agents/android/android-crash-analyzer/agent.md +206 -0
- package/agents/android/android-crash-analyzer/example-input.md +138 -0
- package/agents/android/android-crash-analyzer/example-output.md +225 -0
- package/agents/android/anr-investigation/README.md +78 -0
- package/agents/android/anr-investigation/agent.md +117 -0
- package/agents/android/anr-investigation/example-input.md +62 -0
- package/agents/android/anr-investigation/example-output.md +103 -0
- package/agents/android/axiom/agent.md +197 -0
- package/agents/android/code-reviewer/README.md +108 -0
- package/agents/android/code-reviewer/agent.md +210 -0
- package/agents/android/code-reviewer/example-input.md +116 -0
- package/agents/android/code-reviewer/example-output.md +115 -0
- package/agents/android/compose-navigation/README.md +76 -0
- package/agents/android/compose-navigation/agent.md +121 -0
- package/agents/android/compose-navigation/example-input.md +49 -0
- package/agents/android/compose-navigation/example-output.md +325 -0
- package/agents/android/compose-screen-builder/README.md +95 -0
- package/agents/android/compose-screen-builder/agent.md +170 -0
- package/agents/android/compose-screen-builder/example-input.md +40 -0
- package/agents/android/compose-screen-builder/example-output.md +568 -0
- package/agents/android/compose-ui-reviewer/README.md +73 -0
- package/agents/android/compose-ui-reviewer/agent.md +253 -0
- package/agents/android/compose-ui-reviewer/example-input.md +84 -0
- package/agents/android/compose-ui-reviewer/example-output.md +102 -0
- package/agents/android/crash-analyzer/README.md +53 -0
- package/agents/android/crash-analyzer/agent.md +295 -0
- package/agents/android/memory-leak-analyzer/README.md +79 -0
- package/agents/android/memory-leak-analyzer/agent.md +116 -0
- package/agents/android/memory-leak-analyzer/example-input.md +78 -0
- package/agents/android/memory-leak-analyzer/example-output.md +128 -0
- package/agents/cross-platform/accessibility-auditor/README.md +47 -0
- package/agents/cross-platform/accessibility-auditor/agent.md +268 -0
- package/agents/cross-platform/accessibility-auditor/example-input.md +84 -0
- package/agents/cross-platform/accessibility-auditor/example-output.md +132 -0
- package/agents/cross-platform/appforge/agent.md +303 -0
- package/agents/cross-platform/ci-cd-generator/README.md +65 -0
- package/agents/cross-platform/ci-cd-generator/agent.md +422 -0
- package/agents/cross-platform/ci-cd-generator/example-input.md +69 -0
- package/agents/cross-platform/ci-cd-generator/example-output.md +261 -0
- package/agents/cross-platform/crasher/agent.md +221 -0
- package/agents/cross-platform/figma/agent.md +247 -0
- package/agents/cross-platform/launchpad/agent.md +330 -0
- package/agents/cross-platform/mobile-harness/agent.md +422 -0
- package/agents/cross-platform/mobile-memory/agent.md +429 -0
- package/agents/cross-platform/perf/agent.md +261 -0
- package/agents/cross-platform/pipeline/agent.md +288 -0
- package/agents/cross-platform/release-notes-generator/README.md +63 -0
- package/agents/cross-platform/release-notes-generator/agent.md +218 -0
- package/agents/cross-platform/release-notes-generator/example-input.md +71 -0
- package/agents/cross-platform/release-notes-generator/example-output.md +96 -0
- package/agents/cross-platform/scribe/agent.md +180 -0
- package/agents/cross-platform/security-scanner/README.md +61 -0
- package/agents/cross-platform/security-scanner/agent.md +287 -0
- package/agents/cross-platform/security-scanner/example-input.md +77 -0
- package/agents/cross-platform/security-scanner/example-output.md +141 -0
- package/agents/cross-platform/sentinel/agent.md +217 -0
- package/agents/cross-platform/store-listing-writer/README.md +58 -0
- package/agents/cross-platform/store-listing-writer/agent.md +380 -0
- package/agents/cross-platform/store-listing-writer/example-input.md +67 -0
- package/agents/cross-platform/store-listing-writer/example-output.md +131 -0
- package/agents/flutter/bloc-feature-builder/README.md +101 -0
- package/agents/flutter/bloc-feature-builder/agent.md +225 -0
- package/agents/flutter/bloc-feature-builder/example-input.md +47 -0
- package/agents/flutter/bloc-feature-builder/example-output.md +838 -0
- package/agents/flutter/dart/agent.md +223 -0
- package/agents/flutter/widget-generator/README.md +66 -0
- package/agents/flutter/widget-generator/agent.md +264 -0
- package/agents/flutter/widget-generator/example-input.md +71 -0
- package/agents/flutter/widget-generator/example-output.md +163 -0
- package/agents/gaming/forge/agent.md +197 -0
- package/agents/gaming/unreal/agent.md +200 -0
- package/agents/ios/crash-analyzer/README.md +69 -0
- package/agents/ios/crash-analyzer/agent.md +300 -0
- package/agents/ios/crash-analyzer/example-input.md +83 -0
- package/agents/ios/crash-analyzer/example-output.md +126 -0
- package/agents/ios/swift/agent.md +206 -0
- package/agents/ios/swift-reviewer/README.md +68 -0
- package/agents/ios/swift-reviewer/agent.md +231 -0
- package/agents/ios/swift-reviewer/example-input.md +100 -0
- package/agents/ios/swift-reviewer/example-output.md +127 -0
- package/agents/react-native/bridge/agent.md +212 -0
- package/agents/react-native/performance-optimizer/README.md +81 -0
- package/agents/react-native/performance-optimizer/agent.md +284 -0
- package/agents/react-native/performance-optimizer/example-input.md +104 -0
- package/agents/react-native/performance-optimizer/example-output.md +132 -0
- package/agents/unity/shader-generator/README.md +77 -0
- package/agents/unity/shader-generator/agent.md +270 -0
- package/agents/unity/shader-generator/example-input.md +70 -0
- package/agents/unity/shader-generator/example-output.md +160 -0
- package/agents/unreal/blueprint-advisor/README.md +71 -0
- package/agents/unreal/blueprint-advisor/agent.md +311 -0
- package/agents/unreal/blueprint-advisor/example-input.md +73 -0
- package/agents/unreal/blueprint-advisor/example-output.md +217 -0
- package/cli/index.js +1091 -0
- package/docs/agent-guide.md +138 -0
- package/docs/chatgpt-integration.md +219 -0
- package/docs/core-loops.md +143 -0
- package/docs/cursor-integration.md +143 -0
- package/docs/getting-started.md +132 -0
- package/docs/index.html +711 -0
- package/docs/installation.md +271 -0
- package/docs/mobile-harness.md +160 -0
- package/docs/mobile-mcp.md +172 -0
- package/docs/mobile-memory.md +349 -0
- package/docs/release-process.md +85 -0
- package/docs/releases/release-v1.0.0.md +165 -0
- package/docs/roadmap/github-issues.md +239 -0
- package/docs/skill-categories.md +125 -0
- package/docs/vscode-copilot-integration.md +104 -0
- package/docs/wiki.md +615 -0
- package/install.sh +507 -0
- package/mobile-karpathy.md +79 -0
- package/package.json +57 -0
- package/skills/android/README.md +31 -0
- package/skills/android/android-tdd.md +89 -0
- package/skills/android/anr-investigation.md +251 -0
- package/skills/android/code-review.md +98 -0
- package/skills/android/compose-migration.md +48 -0
- package/skills/android/compose-review.md +78 -0
- package/skills/android/kotlin-modernize.md +51 -0
- package/skills/android/memory-leak-investigation.md +256 -0
- package/skills/android/proguard-rules.md +48 -0
- package/skills/cross-platform/accessibility-audit.md +63 -0
- package/skills/cross-platform/api-versioning.md +59 -0
- package/skills/cross-platform/clean-code-audit.md +239 -0
- package/skills/cross-platform/crash-triage.md +53 -0
- package/skills/cross-platform/deeplink-debug.md +57 -0
- package/skills/cross-platform/feature-slice.md +48 -0
- package/skills/cross-platform/grill-mobile.md +64 -0
- package/skills/cross-platform/mobile-mcp-qa.md +193 -0
- package/skills/cross-platform/mobile-memory-graph.md +179 -0
- package/skills/cross-platform/mobile-memory-save.md +210 -0
- package/skills/cross-platform/mobile-memory-search.md +154 -0
- package/skills/cross-platform/perf-audit.md +61 -0
- package/skills/cross-platform/prd-verification.md +324 -0
- package/skills/cross-platform/release-prep.md +64 -0
- package/skills/cross-platform/security-audit.md +281 -0
- package/skills/cross-platform/store-listing.md +75 -0
- package/skills/flutter/README.md +32 -0
- package/skills/flutter/dart-modernize.md +47 -0
- package/skills/flutter/flutter-review.md +59 -0
- package/skills/flutter/flutter-tdd.md +73 -0
- package/skills/flutter/widget-extract.md +41 -0
- package/skills/flutter/widget-gen.md +131 -0
- package/skills/gaming/blueprint-to-cpp.md +51 -0
- package/skills/gaming/game-perf.md +54 -0
- package/skills/gaming/shader-gen.md +44 -0
- package/skills/gaming/unity-tdd.md +85 -0
- package/skills/ios/README.md +45 -0
- package/skills/ios/data-persistence.md +151 -0
- package/skills/ios/ios-tdd.md +90 -0
- package/skills/ios/networking.md +139 -0
- package/skills/ios/performance.md +122 -0
- package/skills/ios/swift-concurrency.md +57 -0
- package/skills/ios/swift-review.md +124 -0
- package/skills/ios/swiftui-review.md +49 -0
- package/skills/ios/swiftui-state.md +122 -0
- package/skills/ios/unit-testing.md +144 -0
- package/skills/ios/xcode-warnings.md +37 -0
- package/skills/react-native/README.md +42 -0
- package/skills/react-native/bridge-audit.md +104 -0
- package/skills/react-native/expo-optimize.md +55 -0
- package/skills/react-native/new-arch-migrate.md +53 -0
- package/skills/react-native/performance.md +124 -0
- package/skills/react-native/rn-review.md +53 -0
- package/skills/react-native/rn-tdd.md +76 -0
- package/skills/shared/README.md +46 -0
- package/skills/shared/accessibility-audit.md +132 -0
- package/skills/shared/crash-analysis.md +110 -0
- package/skills/shared/security-scan.md +149 -0
- package/skills/unity/README.md +31 -0
- package/skills/unity/shader-review.md +110 -0
- package/templates/agent-template.md +88 -0
- package/templates/prompt-template.md +50 -0
- package/templates/skill-template.md +64 -0
- package/templates/workflow-template.md +48 -0
- package/workflows/app-launch.md +66 -0
- package/workflows/appforge-workflow.md +232 -0
- package/workflows/ci-setup.md +77 -0
- package/workflows/crash-to-fix.md +71 -0
- package/workflows/feature-ship.md +61 -0
- package/workflows/game-level.md +72 -0
- package/workflows/mobile-harness.md +319 -0
- package/workflows/mobile-mcp-qa.md +228 -0
- package/workflows/mobile-memory-workflow.md +243 -0
- package/workflows/new-project-setup.md +93 -0
- package/workflows/new-screen.md +68 -0
- package/workflows/perf-sprint.md +78 -0
- package/workflows/release-cycle.md +71 -0
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
# Workflow — Mobile Memory Context Loop
|
|
2
|
+
|
|
3
|
+
**Type:** AI session continuity
|
|
4
|
+
**Agents Used:** Mobile Memory, AXIOM, CRASHER, SWIFT, DART, BRIDGE, SENTINEL, PERF
|
|
5
|
+
**Skills Used:** /mobile-memory-save, /mobile-memory-graph, /mobile-memory-search, /grill-mobile, /crash-triage, /release-prep
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## When to Use
|
|
10
|
+
|
|
11
|
+
Use this workflow when a mobile project will span multiple AI sessions, multiple tools, or multiple teammates. It prevents context loss when tokens run out, a session resets, or a teammate needs to continue from the exact current state.
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Quick Reference
|
|
16
|
+
|
|
17
|
+
```text
|
|
18
|
+
Session Start
|
|
19
|
+
↓
|
|
20
|
+
mobile-ai-agents memory inject
|
|
21
|
+
↓
|
|
22
|
+
/mobile-memory restore
|
|
23
|
+
↓
|
|
24
|
+
/grill-mobile → decisions captured
|
|
25
|
+
↓
|
|
26
|
+
Build / refactor / debug
|
|
27
|
+
↓
|
|
28
|
+
AXIOM / CRASHER / DART / SWIFT findings captured
|
|
29
|
+
↓
|
|
30
|
+
mobile-ai-agents memory capture
|
|
31
|
+
↓
|
|
32
|
+
/mobile-memory save before context runs out
|
|
33
|
+
↓
|
|
34
|
+
Commit MOBILE_MEMORY.md for handoff
|
|
35
|
+
↓
|
|
36
|
+
Next AI tool reads MOBILE_MEMORY.md and continues from NEXT ACTION
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
## Full Loop
|
|
42
|
+
|
|
43
|
+
### 1. Initialize Local Memory
|
|
44
|
+
|
|
45
|
+
Run once per project:
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
npx mobile-ai-agents memory init
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Capture durable events during the project:
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
npx mobile-ai-agents memory capture --type decision --text "Use Room for offline persistence."
|
|
55
|
+
npx mobile-ai-agents memory capture --type finding --text "PRD verification failed because restart persistence is missing."
|
|
56
|
+
npx mobile-ai-agents memory capture --type next-action --text "Implement HabitDao and restart persistence test."
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Raw events are stored in `.mobile-ai-agents/memory/events.jsonl` and ignored by git by default.
|
|
60
|
+
|
|
61
|
+
### 2. Session Start
|
|
62
|
+
|
|
63
|
+
Run:
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
npx mobile-ai-agents memory inject
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Paste the output into the new AI session, or ask the AI to run it when the tool has terminal access.
|
|
70
|
+
|
|
71
|
+
Then run:
|
|
72
|
+
|
|
73
|
+
```text
|
|
74
|
+
/mobile-memory restore
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Then paste the existing `MOBILE_MEMORY.md`. Mobile Memory summarizes the project in five bullets, briefs the active agent state, and continues from `NEXT ACTION`.
|
|
78
|
+
|
|
79
|
+
Output to expect:
|
|
80
|
+
|
|
81
|
+
```text
|
|
82
|
+
Mobile Memory loaded. Here is what I know:
|
|
83
|
+
- Platform, stack, and architecture
|
|
84
|
+
- Current task
|
|
85
|
+
- Decisions already made
|
|
86
|
+
- Health risks and active agent findings
|
|
87
|
+
- The exact NEXT ACTION
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
### 3. During Development
|
|
91
|
+
|
|
92
|
+
Run:
|
|
93
|
+
|
|
94
|
+
```text
|
|
95
|
+
/grill-mobile
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
Capture requirements and decisions directly into the next Mobile Memory update:
|
|
99
|
+
|
|
100
|
+
- Target platform and OS constraints
|
|
101
|
+
- Architecture decisions
|
|
102
|
+
- State management choices
|
|
103
|
+
- API, persistence, navigation, and test decisions
|
|
104
|
+
- Rejected alternatives
|
|
105
|
+
|
|
106
|
+
Also capture durable decisions into local memory:
|
|
107
|
+
|
|
108
|
+
```bash
|
|
109
|
+
npx mobile-ai-agents memory capture --type decision --title "State management" --text "Use StateFlow in ViewModels and collectAsStateWithLifecycle in Compose."
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
### 4. Code Review
|
|
113
|
+
|
|
114
|
+
Run the platform agent:
|
|
115
|
+
|
|
116
|
+
```text
|
|
117
|
+
@AXIOM review CartViewModel.kt
|
|
118
|
+
/flutter-review checkout_page.dart
|
|
119
|
+
@SWIFT review ProfileViewModel.swift
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
Write findings into the `Agent State` and `Health Report` sections:
|
|
123
|
+
|
|
124
|
+
```text
|
|
125
|
+
AXIOM → CartViewModel → CRITICAL: direct repository construction → pending DI refactor
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
Capture the finding:
|
|
129
|
+
|
|
130
|
+
```bash
|
|
131
|
+
npx mobile-ai-agents memory capture --type finding --title "AXIOM CartViewModel" --text "CRITICAL: direct repository construction; pending DI refactor."
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
### 5. Crash Analysis
|
|
135
|
+
|
|
136
|
+
Run:
|
|
137
|
+
|
|
138
|
+
```text
|
|
139
|
+
/crash-triage
|
|
140
|
+
@CRASHER analyze crash.log
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
Mobile Memory stores:
|
|
144
|
+
|
|
145
|
+
- Crash type and severity
|
|
146
|
+
- Failure path
|
|
147
|
+
- Root cause
|
|
148
|
+
- Regression test
|
|
149
|
+
- Pending fix
|
|
150
|
+
|
|
151
|
+
Critical crash findings belong in `Health Report > CRITICAL`.
|
|
152
|
+
|
|
153
|
+
### 6. Search Before Continuing
|
|
154
|
+
|
|
155
|
+
When returning to a project after days or weeks, search local memory before re-reading the full codebase:
|
|
156
|
+
|
|
157
|
+
```bash
|
|
158
|
+
npx mobile-ai-agents memory search persistence
|
|
159
|
+
npx mobile-ai-agents memory timeline --limit 20
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
Use `/mobile-memory-search` to turn search output into confirmed context, assumptions, files to read next, and one `NEXT ACTION`.
|
|
163
|
+
|
|
164
|
+
### 7. Token Warning
|
|
165
|
+
|
|
166
|
+
When the session covers several topics, writes large code, or produces agent findings, run:
|
|
167
|
+
|
|
168
|
+
```text
|
|
169
|
+
/mobile-memory save
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
This creates the full `MOBILE_MEMORY.md` checkpoint. A new session can load it and continue without reading the entire codebase again.
|
|
173
|
+
|
|
174
|
+
You can also generate `MOBILE_MEMORY.md` from local memory:
|
|
175
|
+
|
|
176
|
+
```bash
|
|
177
|
+
npx mobile-ai-agents memory checkpoint
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
### 8. Feature Complete
|
|
181
|
+
|
|
182
|
+
Run:
|
|
183
|
+
|
|
184
|
+
```text
|
|
185
|
+
/mobile-memory update
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
Update `MOBILE_MEMORY.md` with:
|
|
189
|
+
|
|
190
|
+
- Completed files
|
|
191
|
+
- Final decisions
|
|
192
|
+
- Agent findings resolved
|
|
193
|
+
- Remaining tech debt
|
|
194
|
+
- Next release or review action
|
|
195
|
+
|
|
196
|
+
Commit `MOBILE_MEMORY.md` with the feature branch when the session context is valuable for review or handoff.
|
|
197
|
+
|
|
198
|
+
### 9. Team Handoff
|
|
199
|
+
|
|
200
|
+
Commit or send `MOBILE_MEMORY.md`. The teammate opens any AI tool and says:
|
|
201
|
+
|
|
202
|
+
```text
|
|
203
|
+
Read MOBILE_MEMORY.md and continue from NEXT ACTION.
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
No re-explanation required. The teammate's AI sees the architecture, graph, decisions, health report, and exact next step.
|
|
207
|
+
|
|
208
|
+
---
|
|
209
|
+
|
|
210
|
+
## Integration Points
|
|
211
|
+
|
|
212
|
+
| Moment | Tool | Memory Section Updated |
|
|
213
|
+
|---|---|---|
|
|
214
|
+
| Memory setup | `mobile-ai-agents memory init` | Local event store |
|
|
215
|
+
| Session start | `mobile-ai-agents memory inject`, `/mobile-memory restore` | Instant Resume, Progress |
|
|
216
|
+
| Requirements | `/grill-mobile` | Decisions Made, Open Questions |
|
|
217
|
+
| Durable decision | `mobile-ai-agents memory capture` | `.mobile-ai-agents/memory/events.jsonl` |
|
|
218
|
+
| Memory search | `mobile-ai-agents memory search`, `/mobile-memory-search` | Relevant context |
|
|
219
|
+
| Architecture map | `/mobile-memory graph` | Knowledge Graph |
|
|
220
|
+
| Android review | `AXIOM` | Agent State, Health Report |
|
|
221
|
+
| Crash debug | `CRASHER` | Health Report, Current Task |
|
|
222
|
+
| Token warning | `/mobile-memory save` | Full checkpoint |
|
|
223
|
+
| Feature complete | `/mobile-memory update` | Progress, NEXT ACTION |
|
|
224
|
+
| Team handoff | Committed `MOBILE_MEMORY.md` | Resume Instructions |
|
|
225
|
+
|
|
226
|
+
---
|
|
227
|
+
|
|
228
|
+
## Output
|
|
229
|
+
|
|
230
|
+
- A portable `MOBILE_MEMORY.md`
|
|
231
|
+
- A mobile architecture knowledge graph
|
|
232
|
+
- A preserved list of decisions and rejected alternatives
|
|
233
|
+
- Agent findings that survive session resets
|
|
234
|
+
- One executable `NEXT ACTION`
|
|
235
|
+
|
|
236
|
+
---
|
|
237
|
+
|
|
238
|
+
## Failure Modes
|
|
239
|
+
|
|
240
|
+
- If `NEXT ACTION` is vague, rewrite it before saving.
|
|
241
|
+
- If a relationship is inferred from naming only, mark it `INFERRED`.
|
|
242
|
+
- If a file is mid-edit, paste enough current code in `Code State` for a new AI to avoid guessing.
|
|
243
|
+
- If a finding is resolved, move it from `CRITICAL` or `WARNING` to `Done` or `Tech Debt`.
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# Workflow — New Project Setup
|
|
2
|
+
|
|
3
|
+
**Type:** Project bootstrapping
|
|
4
|
+
**Agents Used:** AXIOM / SWIFT / DART / BRIDGE, PIPELINE, SENTINEL, FIGMA
|
|
5
|
+
**Skills Used:** /grill-mobile, /android-tdd or /ios-tdd or /flutter-tdd
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## When to Use
|
|
10
|
+
|
|
11
|
+
Starting a new mobile project from scratch. Do this once, do it right.
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Steps
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
1. DEFINE — /grill-mobile (full 20 questions)
|
|
19
|
+
↓ All 20 questions. No shortcuts.
|
|
20
|
+
↓ This conversation determines every architecture decision that follows.
|
|
21
|
+
↓ Output: confirmed understanding of the app's purpose, audience, and constraints.
|
|
22
|
+
|
|
23
|
+
2. ARCHITECTURE — AXIOM / SWIFT / DART / BRIDGE
|
|
24
|
+
↓ Generate the project structure based on /grill-mobile answers:
|
|
25
|
+
- Package/module structure
|
|
26
|
+
- Layer breakdown (data / domain / presentation)
|
|
27
|
+
- State management choice and why
|
|
28
|
+
- Navigation approach
|
|
29
|
+
- Dependency injection setup
|
|
30
|
+
↓ Output: folder structure + base classes for each layer.
|
|
31
|
+
|
|
32
|
+
3. CI FROM DAY ONE — PIPELINE
|
|
33
|
+
↓ Set up CI before writing any feature code.
|
|
34
|
+
↓ PR check: lint + unit tests (< 5 min)
|
|
35
|
+
↓ Merge to main: build + deploy to Firebase App Distribution
|
|
36
|
+
↓ Output: working CI pipeline on first commit.
|
|
37
|
+
|
|
38
|
+
4. SECURITY BASELINE — SENTINEL
|
|
39
|
+
↓ Review the project template for default insecure configurations.
|
|
40
|
+
↓ Network security config (no cleartext traffic).
|
|
41
|
+
↓ Keychain / Keystore setup for credentials.
|
|
42
|
+
↓ Certificate pinning setup for production API.
|
|
43
|
+
|
|
44
|
+
5. TEST INFRASTRUCTURE — /android-tdd or /ios-tdd or /flutter-tdd
|
|
45
|
+
↓ Set up the test structure before any feature tests are needed.
|
|
46
|
+
↓ Base test class for ViewModel tests.
|
|
47
|
+
↓ Test doubles / mock infrastructure.
|
|
48
|
+
↓ First test: a trivial "project compiles and one test passes" smoke test.
|
|
49
|
+
|
|
50
|
+
6. DESIGN HANDOFF — FIGMA (if Figma access available)
|
|
51
|
+
↓ Set up design token mapping to code tokens.
|
|
52
|
+
↓ Generate base theme from design system.
|
|
53
|
+
↓ Typography and color system in code.
|
|
54
|
+
|
|
55
|
+
7. READY TO BUILD
|
|
56
|
+
↓ Clean architecture structure ✓
|
|
57
|
+
↓ CI running on first PR ✓
|
|
58
|
+
↓ Security baseline in place ✓
|
|
59
|
+
↓ Test infrastructure ready ✓
|
|
60
|
+
↓ Design tokens wired up ✓
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## Project Setup Checklist
|
|
66
|
+
|
|
67
|
+
```
|
|
68
|
+
[ ] Version control: .gitignore includes keystore, local.properties, .env files
|
|
69
|
+
[ ] README: setup instructions that work on a fresh checkout
|
|
70
|
+
[ ] Architecture: documented decision (why this pattern, not just what)
|
|
71
|
+
[ ] CI: first pipeline run successful
|
|
72
|
+
[ ] Signing: debug keystore committed, release keystore in CI secrets only
|
|
73
|
+
[ ] API environment: dev/staging/prod configs separated (not hardcoded)
|
|
74
|
+
[ ] Analytics: event tracking structure decided before first feature
|
|
75
|
+
[ ] Crash reporting: Firebase Crashlytics or Sentry configured
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
## Inputs
|
|
81
|
+
|
|
82
|
+
- App concept and target audience (from /grill-mobile)
|
|
83
|
+
- Platform and minimum OS version
|
|
84
|
+
- Team size and development timeline
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
## Outputs
|
|
89
|
+
|
|
90
|
+
- Complete project scaffold with architecture
|
|
91
|
+
- Working CI pipeline
|
|
92
|
+
- Security-baseline configuration
|
|
93
|
+
- Test infrastructure ready for first feature
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# Workflow — New Screen
|
|
2
|
+
|
|
3
|
+
**Type:** UI implementation
|
|
4
|
+
**Agents Used:** FIGMA, AXIOM / SWIFT / DART / BRIDGE, PERF
|
|
5
|
+
**Skills Used:** /grill-mobile, /compose-review or /swiftui-review or /flutter-review, /android-tdd or /ios-tdd
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## When to Use
|
|
10
|
+
|
|
11
|
+
Implementing a new screen from a Figma or design spec.
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Steps
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
1. DESIGN HANDOFF — FIGMA
|
|
19
|
+
↓ Translate Figma spec into component spec:
|
|
20
|
+
- Layout dimensions and spacing
|
|
21
|
+
- Typography tokens
|
|
22
|
+
- Color tokens
|
|
23
|
+
- States: default, loading, empty, error
|
|
24
|
+
- Interactions and animations
|
|
25
|
+
↓ Output: detailed component spec for implementation.
|
|
26
|
+
|
|
27
|
+
2. ALIGNMENT — /grill-mobile (5 key questions for a screen)
|
|
28
|
+
↓ What data does this screen load? From where?
|
|
29
|
+
↓ What are the loading, empty, and error states?
|
|
30
|
+
↓ What happens on tapping each interactive element?
|
|
31
|
+
↓ Does this screen need to be deep-linkable?
|
|
32
|
+
↓ What accessibility requirements apply?
|
|
33
|
+
|
|
34
|
+
3. IMPLEMENTATION — AXIOM / SWIFT / DART / BRIDGE
|
|
35
|
+
↓ Data/domain layer first (repository, use case, ViewModel/state).
|
|
36
|
+
↓ UI scaffold: structure without real data.
|
|
37
|
+
↓ Wire up real data with loading + error states.
|
|
38
|
+
↓ Animations and interactions.
|
|
39
|
+
|
|
40
|
+
4. REVIEW — /compose-review or /swiftui-review or /flutter-review
|
|
41
|
+
↓ Recomposition / rebuild audit.
|
|
42
|
+
↓ Accessibility check (touch targets, content descriptions).
|
|
43
|
+
|
|
44
|
+
5. PERFORMANCE — PERF
|
|
45
|
+
↓ Is the screen 60fps on a mid-range device?
|
|
46
|
+
↓ Any list without virtualization?
|
|
47
|
+
↓ Any main thread work during transition?
|
|
48
|
+
|
|
49
|
+
6. TESTS
|
|
50
|
+
↓ UI test: happy path loads and displays data correctly.
|
|
51
|
+
↓ Unit test: ViewModel handles loading, success, and error states.
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## Inputs
|
|
57
|
+
|
|
58
|
+
- Figma design file or detailed design description
|
|
59
|
+
- API contract for data this screen consumes
|
|
60
|
+
- Platform context (SDK version, design system in use)
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
## Outputs
|
|
65
|
+
|
|
66
|
+
- Pixel-perfect, accessible, 60fps screen implementation
|
|
67
|
+
- Unit test for ViewModel
|
|
68
|
+
- UI test for happy path
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# Workflow — Performance Sprint
|
|
2
|
+
|
|
3
|
+
**Type:** Performance optimization
|
|
4
|
+
**Agents Used:** PERF, AXIOM / DART / BRIDGE
|
|
5
|
+
**Skills Used:** /perf-audit, /compose-review or /flutter-review
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## When to Use
|
|
10
|
+
|
|
11
|
+
When users are reporting slow performance, or before a major release as a performance gate.
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Steps
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
1. BASELINE — PERF
|
|
19
|
+
↓ Measure before touching anything:
|
|
20
|
+
- App cold start time
|
|
21
|
+
- Hot start time (from background)
|
|
22
|
+
- 3 most-used screens: frame rate during scroll/interaction
|
|
23
|
+
- Memory footprint on target device
|
|
24
|
+
- Battery drain over 10 minutes of active use
|
|
25
|
+
↓ Document numbers. This is your benchmark.
|
|
26
|
+
|
|
27
|
+
2. PROFILE — /perf-audit
|
|
28
|
+
↓ Run screen-by-screen profiling.
|
|
29
|
+
↓ Use platform profiler (Systrace / Instruments / DevTools / Flipper).
|
|
30
|
+
↓ Identify top 3 bottlenecks by frame time cost.
|
|
31
|
+
|
|
32
|
+
3. FIX — AXIOM / DART / BRIDGE (platform-specific)
|
|
33
|
+
↓ Fix the highest-impact bottleneck first.
|
|
34
|
+
↓ Fix one thing at a time and re-measure after each fix.
|
|
35
|
+
↓ Do NOT batch fixes — you won't know which one helped.
|
|
36
|
+
|
|
37
|
+
4. REVIEW — /compose-review or /flutter-review (UI layer)
|
|
38
|
+
↓ Check for unnecessary rebuilds introduced by the fix.
|
|
39
|
+
↓ Ensure the optimization didn't create new jank.
|
|
40
|
+
|
|
41
|
+
5. VALIDATE — PERF
|
|
42
|
+
↓ Re-measure all baselines from step 1.
|
|
43
|
+
↓ Target: each bottleneck shows measurable improvement.
|
|
44
|
+
↓ Document: before numbers, after numbers, what changed.
|
|
45
|
+
|
|
46
|
+
6. DOCUMENT
|
|
47
|
+
↓ Add before/after screenshots to PR description.
|
|
48
|
+
↓ Link to profiler traces in the PR.
|
|
49
|
+
↓ Add a performance test or threshold to CI so it doesn't regress.
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
## Performance Targets (Mobile)
|
|
55
|
+
|
|
56
|
+
| Metric | Target |
|
|
57
|
+
|---|---|
|
|
58
|
+
| Cold start (time to interactive) | < 2 seconds |
|
|
59
|
+
| Hot start | < 500ms |
|
|
60
|
+
| Scroll frame rate | Consistent 60fps (< 16.7ms/frame) |
|
|
61
|
+
| Memory (mid-range device) | < 150MB active |
|
|
62
|
+
| Crash-free rate | > 99.5% |
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
## Inputs
|
|
67
|
+
|
|
68
|
+
- Platform and device target (flagship / mid-range / low-end)
|
|
69
|
+
- List of screens or features reported as slow
|
|
70
|
+
- Profiler traces if available
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
## Outputs
|
|
75
|
+
|
|
76
|
+
- Measured baseline vs. improved numbers
|
|
77
|
+
- Code changes with documented performance rationale
|
|
78
|
+
- Performance CI gate to prevent regression
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# Workflow — Release Cycle
|
|
2
|
+
|
|
3
|
+
**Type:** Release management
|
|
4
|
+
**Agents Used:** CRASHER, SENTINEL, SCRIBE, LAUNCHPAD, PIPELINE
|
|
5
|
+
**Skills Used:** /release-prep
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## When to Use
|
|
10
|
+
|
|
11
|
+
Every release, from feature freeze to store submission.
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Steps
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
1. FEATURE FREEZE
|
|
19
|
+
↓ Cut release branch: git checkout -b release/vX.Y.Z
|
|
20
|
+
↓ No new features merged after this point. Only bug fixes.
|
|
21
|
+
|
|
22
|
+
2. CRASH REVIEW — CRASHER
|
|
23
|
+
↓ Pull last 7 days of crash data from Crashlytics/Sentry.
|
|
24
|
+
↓ Any P0/P1 crashes must be fixed before this release ships.
|
|
25
|
+
↓ Document crash-free rate baseline for comparison post-launch.
|
|
26
|
+
|
|
27
|
+
3. SECURITY PASS — SENTINEL
|
|
28
|
+
↓ Scan release branch for any new CRITICAL or HIGH vulnerabilities.
|
|
29
|
+
↓ Focus on any new third-party dependencies added in this cycle.
|
|
30
|
+
↓ Block release on any new CRITICAL finding.
|
|
31
|
+
|
|
32
|
+
4. RELEASE NOTES — SCRIBE
|
|
33
|
+
↓ git log <last-tag>..HEAD --oneline → paste into SCRIBE.
|
|
34
|
+
↓ Generate store listing notes + internal changelog + stakeholder summary.
|
|
35
|
+
↓ Human review before publishing.
|
|
36
|
+
|
|
37
|
+
5. STORE LISTING — LAUNCHPAD (if features changed)
|
|
38
|
+
↓ Update Play Store / App Store listing if new features warrant it.
|
|
39
|
+
↓ New screenshots if UI changed significantly.
|
|
40
|
+
|
|
41
|
+
6. CHECKLIST — /release-prep
|
|
42
|
+
↓ Work through the full release checklist.
|
|
43
|
+
↓ Every item checked before proceeding.
|
|
44
|
+
|
|
45
|
+
7. BUILD & UPLOAD — PIPELINE
|
|
46
|
+
↓ Trigger release build workflow.
|
|
47
|
+
↓ AAB uploaded to Play Store internal track.
|
|
48
|
+
↓ IPA uploaded to TestFlight.
|
|
49
|
+
|
|
50
|
+
8. STAGED ROLLOUT
|
|
51
|
+
↓ Play Store: 1% → 5% → 20% → 100% (monitor 24h at each stage).
|
|
52
|
+
↓ App Store: release after review approval.
|
|
53
|
+
↓ Monitor: crash rate, ANR rate, user ratings.
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## Inputs
|
|
59
|
+
|
|
60
|
+
- Last release tag for git log diff
|
|
61
|
+
- Crash reports from current version
|
|
62
|
+
- Store developer account access
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
## Outputs
|
|
67
|
+
|
|
68
|
+
- Release branch with all fixes
|
|
69
|
+
- Store listing updated
|
|
70
|
+
- Build uploaded to stores
|
|
71
|
+
- Post-release monitoring active
|