ai-flow-dev 2.1.3 → 2.1.5

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 (96) hide show
  1. package/README.md +25 -38
  2. package/dist/cli.js +68 -46
  3. package/dist/cli.js.map +1 -1
  4. package/package.json +5 -5
  5. package/prompts/backend/flow-build-phase-0.md +31 -63
  6. package/prompts/backend/flow-build-phase-1.md +9 -17
  7. package/prompts/backend/flow-build-phase-10.md +199 -585
  8. package/prompts/backend/flow-build-phase-2.md +152 -86
  9. package/prompts/backend/flow-build-phase-3.md +108 -68
  10. package/prompts/backend/flow-build-phase-4.md +5 -8
  11. package/prompts/backend/flow-build-phase-5.md +39 -12
  12. package/prompts/backend/flow-build-phase-6.md +29 -8
  13. package/prompts/backend/flow-build-phase-7.md +120 -40
  14. package/prompts/backend/flow-build-phase-8.md +28 -65
  15. package/prompts/backend/flow-build-phase-9.md +267 -1298
  16. package/prompts/backend/flow-build.md +881 -957
  17. package/prompts/backend/flow-dev-commit.md +27 -50
  18. package/prompts/backend/flow-dev-feature.md +1929 -2017
  19. package/prompts/backend/flow-dev-fix.md +936 -964
  20. package/prompts/backend/flow-dev-refactor.md +672 -701
  21. package/prompts/backend/flow-dev-review.md +356 -389
  22. package/prompts/backend/flow-dev-work.md +1066 -1118
  23. package/prompts/backend/flow-docs-sync.md +20 -196
  24. package/prompts/frontend/flow-build-phase-0.md +503 -484
  25. package/prompts/frontend/flow-build-phase-1.md +445 -433
  26. package/prompts/frontend/flow-build-phase-2.md +910 -957
  27. package/prompts/frontend/flow-build-phase-3.md +692 -664
  28. package/prompts/frontend/flow-build-phase-4.md +478 -463
  29. package/prompts/frontend/flow-build-phase-5.md +488 -467
  30. package/prompts/frontend/flow-build-phase-6.md +571 -550
  31. package/prompts/frontend/flow-build-phase-7.md +560 -592
  32. package/prompts/frontend/flow-build-phase-8.md +17 -42
  33. package/prompts/frontend/flow-build.md +457 -503
  34. package/prompts/frontend/flow-docs-sync.md +14 -35
  35. package/prompts/mobile/flow-build-phase-0.md +104 -97
  36. package/prompts/mobile/flow-build-phase-1.md +137 -122
  37. package/prompts/mobile/flow-build-phase-2.md +123 -130
  38. package/prompts/mobile/flow-build-phase-3.md +144 -149
  39. package/prompts/mobile/flow-build-phase-4.md +140 -132
  40. package/prompts/mobile/flow-build-phase-5.md +70 -70
  41. package/prompts/mobile/flow-build-phase-6.md +136 -134
  42. package/prompts/mobile/flow-build-phase-7.md +24 -58
  43. package/prompts/mobile/flow-build-phase-8.md +17 -42
  44. package/prompts/mobile/flow-build.md +47 -97
  45. package/prompts/mobile/flow-docs-sync.md +13 -32
  46. package/prompts/shared/mermaid-guidelines.md +106 -0
  47. package/prompts/shared/scope-levels.md +126 -0
  48. package/prompts/shared/story-points.md +65 -0
  49. package/prompts/shared/task-format.md +86 -0
  50. package/templates/AGENT.template.md +194 -15
  51. package/templates/backend/README.template.md +2 -32
  52. package/templates/backend/ai-instructions.template.md +2 -32
  53. package/templates/backend/copilot-instructions.template.md +2 -22
  54. package/templates/backend/docs/api.template.md +89 -20
  55. package/templates/backend/docs/architecture.template.md +165 -53
  56. package/templates/backend/docs/business-flows.template.md +7 -14
  57. package/templates/backend/docs/code-standards.template.md +2 -38
  58. package/templates/backend/docs/contributing.template.md +2 -16
  59. package/templates/backend/docs/data-model.template.md +125 -21
  60. package/templates/backend/docs/operations.template.md +179 -50
  61. package/templates/backend/docs/testing.template.md +2 -42
  62. package/templates/backend/project-brief.template.md +2 -28
  63. package/templates/backend/specs/configuration.template.md +2 -14
  64. package/templates/backend/specs/security.template.md +2 -32
  65. package/templates/frontend/README.template.md +2 -18
  66. package/templates/frontend/ai-instructions.template.md +2 -20
  67. package/templates/frontend/docs/api-integration.template.md +12 -30
  68. package/templates/frontend/docs/components.template.md +2 -28
  69. package/templates/frontend/docs/error-handling.template.md +11 -27
  70. package/templates/frontend/docs/operations.template.md +8 -18
  71. package/templates/frontend/docs/performance.template.md +8 -18
  72. package/templates/frontend/docs/pwa.template.md +8 -18
  73. package/templates/frontend/docs/state-management.template.md +2 -28
  74. package/templates/frontend/docs/styling.template.md +2 -26
  75. package/templates/frontend/docs/testing.template.md +2 -28
  76. package/templates/frontend/project-brief.template.md +2 -16
  77. package/templates/frontend/specs/accessibility.template.md +8 -18
  78. package/templates/frontend/specs/configuration.template.md +2 -24
  79. package/templates/frontend/specs/security.template.md +10 -24
  80. package/templates/fullstack/README.template.md +17 -47
  81. package/templates/fullstack/ai-instructions.template.md +17 -45
  82. package/templates/fullstack/project-brief.template.md +16 -42
  83. package/templates/fullstack/specs/configuration.template.md +16 -42
  84. package/templates/mobile/README.template.md +11 -29
  85. package/templates/mobile/ai-instructions.template.md +11 -27
  86. package/templates/mobile/docs/app-store.template.md +11 -29
  87. package/templates/mobile/docs/architecture.template.md +14 -38
  88. package/templates/mobile/docs/native-features.template.md +16 -44
  89. package/templates/mobile/docs/navigation.template.md +9 -23
  90. package/templates/mobile/docs/offline-strategy.template.md +10 -26
  91. package/templates/mobile/docs/permissions.template.md +9 -23
  92. package/templates/mobile/docs/state-management.template.md +12 -32
  93. package/templates/mobile/docs/testing.template.md +14 -38
  94. package/templates/mobile/project-brief.template.md +12 -30
  95. package/templates/mobile/specs/build-configuration.template.md +10 -26
  96. package/templates/mobile/specs/deployment.template.md +9 -23
@@ -1,451 +1,463 @@
1
- # Phase 1: Discovery & UX Requirements
2
-
3
- **Duration:** 15-20 minutes
4
- **Questions:** ~10 questions
5
- **Output:** project-brief.md, parts of AGENT.md
6
-
1
+ # Phase 1: Discovery & UX Requirements
2
+
3
+ **Duration:** 15-20 minutes
4
+ **Questions:** ~10 questions
5
+ **Output:** project-brief.md, parts of AGENT.md
7
6
  ---
8
-
9
- ## 🎯 Objective
10
-
11
- Understand the **user-facing aspects** of the application:
12
-
13
- 1. What type of application is being built?
14
- 2. Who are the target users?
15
- 3. What are the key user journeys?
16
- 4. What devices and browsers must be supported?
17
- 5. What are the UX priorities?
18
-
7
+ ## 🎯 Objective
8
+
9
+ Understand the **user-facing aspects** of the application:
10
+
11
+ 1. What type of application is being built?
12
+ 2. Who are the target users?
13
+ 3. What are the key user journeys?
14
+ 4. What devices and browsers must be supported?
15
+ 5. What are the UX priorities?
19
16
  ---
20
-
21
- ## 📋 Questions
22
-
23
- ### Question 1.1: Application Type
24
-
25
- **What type of frontend application are you building?**
26
-
27
- A) ⭐ **Single Page Application (SPA)**
28
- - Example: Gmail, Notion, Figma
29
- - Characteristics: Client-side routing, dynamic updates, minimal page reloads
30
- - Best for: Web apps, dashboards, admin panels
31
-
32
- B) 🔥 **Multi-Page Application (MPA)**
33
- - Example: E-commerce sites, blogs, marketing sites
34
- - Characteristics: Server-rendered pages, traditional navigation
35
- - Best for: Content-heavy sites, SEO-critical apps
36
-
37
- C) ⚡ **Progressive Web App (PWA)**
38
- - Example: Twitter Lite, Starbucks PWA
39
- - Characteristics: Offline support, installable, push notifications
40
- - Best for: Mobile-first apps, offline-first experiences
41
-
42
- D) 🏆 **Server-Side Rendered (SSR) App**
43
- - Example: Next.js apps, Nuxt apps
44
- - Characteristics: Initial server render, hydration, SEO-friendly
45
- - Best for: Hybrid apps, dynamic content with SEO needs
46
-
47
- E) **Static Site (SSG)**
48
- - Example: Documentation sites, portfolios
49
- - Characteristics: Pre-rendered at build time, fast, CDN-friendly
50
- - Best for: Blogs, documentation, landing pages
51
-
52
- **Your answer:**
53
-
17
+ ## 📋 Questions
18
+
19
+ ### Question 1.1: Application Type
20
+
21
+ **What type of frontend application are you building?**
22
+
23
+ A) ⭐ **Single Page Application (SPA)**
24
+
25
+ - Example: Gmail, Notion, Figma
26
+ - Characteristics: Client-side routing, dynamic updates, minimal page reloads
27
+ - Best for: Web apps, dashboards, admin panels
28
+
29
+ B) 🔥 **Multi-Page Application (MPA)**
30
+
31
+ - Example: E-commerce sites, blogs, marketing sites
32
+ - Characteristics: Server-rendered pages, traditional navigation
33
+ - Best for: Content-heavy sites, SEO-critical apps
34
+
35
+ C) **Progressive Web App (PWA)**
36
+
37
+ - Example: Twitter Lite, Starbucks PWA
38
+ - Characteristics: Offline support, installable, push notifications
39
+ - Best for: Mobile-first apps, offline-first experiences
40
+
41
+ D) 🏆 **Server-Side Rendered (SSR) App**
42
+
43
+ - Example: Next.js apps, Nuxt apps
44
+ - Characteristics: Initial server render, hydration, SEO-friendly
45
+ - Best for: Hybrid apps, dynamic content with SEO needs
46
+
47
+ E) **Static Site (SSG)**
48
+
49
+ - Example: Documentation sites, portfolios
50
+ - Characteristics: Pre-rendered at build time, fast, CDN-friendly
51
+ - Best for: Blogs, documentation, landing pages
52
+
53
+ **Your answer:**
54
54
  ---
55
-
56
- ### Question 1.2: Target Users
57
-
58
- **Who are your primary target users?**
59
-
60
- Describe your user personas (3-5 bullet points):
61
- - Demographics (age, tech-savviness, etc.)
62
- - Use cases / goals
63
- - Device preferences
64
- - Accessibility needs
65
-
66
- **Example:**
67
- ```
68
- - Small business owners (30-50 years old, moderate tech skills)
69
- - Goal: Manage inventory and track sales
70
- - Devices: Desktop (70%), Mobile (30%)
71
- - Accessibility: WCAG 2.1 AA compliance required
72
- ```
73
-
74
- **Your answer:**
75
-
55
+ ### Question 1.2: Target Users
56
+
57
+ **Who are your primary target users?**
58
+
59
+ Describe your user personas (3-5 bullet points):
60
+
61
+ - Demographics (age, tech-savviness, etc.)
62
+ - Use cases / goals
63
+ - Device preferences
64
+ - Accessibility needs
65
+
66
+ **Example:**
67
+
68
+ ```
69
+ - Small business owners (30-50 years old, moderate tech skills)
70
+ - Goal: Manage inventory and track sales
71
+ - Devices: Desktop (70%), Mobile (30%)
72
+ - Accessibility: WCAG 2.1 AA compliance required
73
+ ```
74
+
75
+ **Your answer:**
76
76
  ---
77
-
78
- ### Question 1.3: Key User Journeys
79
-
80
- **What are the 3-5 most critical user flows?**
81
-
82
- List the core journeys users will take through your app.
83
-
84
- **Example:**
85
- ```
86
- 1. Sign up → Email verification → Onboarding wizard → Dashboard
87
- 2. Create new project → Add team members → Set up integrations
88
- 3. Browse products → Add to cart → Checkout → Payment confirmation
89
- 4. Search for content → Filter results → View details → Save favorite
90
- ```
91
-
92
- **Your answer:**
93
-
77
+ ### Question 1.3: Key User Journeys
78
+
79
+ **What are the 3-5 most critical user flows?**
80
+
81
+ List the core journeys users will take through your app.
82
+
83
+ **Example:**
84
+
85
+ ```
86
+ 1. Sign up → Email verification → Onboarding wizard → Dashboard
87
+ 2. Create new project → Add team members → Set up integrations
88
+ 3. Browse products → Add to cart → Checkout → Payment confirmation
89
+ 4. Search for content → Filter results → View details → Save favorite
90
+ ```
91
+
92
+ **Your answer:**
94
93
  ---
95
-
96
- ### Question 1.4: Device & Browser Support
97
-
98
- **What devices and browsers must you support?**
99
-
100
- A) ⭐ **Modern Browsers Only** (Last 2 versions)
101
- - Chrome, Firefox, Safari, Edge
102
- - Mobile: iOS Safari 14+, Chrome Android
103
- - Pros: Use latest web features, smaller bundle size
104
- - Cons: May exclude <5% of users
105
-
106
- B) 🔥 **Broad Compatibility** (Last 3-4 years)
107
- - Include IE11, older Safari versions
108
- - Requires polyfills and transpilation
109
- - Pros: Wider audience reach
110
- - Cons: Larger bundle, limited features
111
-
112
- C) **Mobile-First**
113
- - Prioritize iOS Safari and Chrome Android
114
- - Responsive design for desktop
115
- - Best for: Consumer apps, e-commerce
116
-
117
- D) **Desktop-First**
118
- - Optimize for desktop browsers
119
- - Mobile as secondary experience
120
- - Best for: Admin panels, dashboards, B2B tools
121
-
122
- **Your answer:**
123
-
94
+ ### Question 1.4: Device & Browser Support
95
+
96
+ **What devices and browsers must you support?**
97
+
98
+ A) ⭐ **Modern Browsers Only** (Last 2 versions)
99
+
100
+ - Chrome, Firefox, Safari, Edge
101
+ - Mobile: iOS Safari 14+, Chrome Android
102
+ - Pros: Use latest web features, smaller bundle size
103
+ - Cons: May exclude <5% of users
104
+
105
+ B) 🔥 **Broad Compatibility** (Last 3-4 years)
106
+
107
+ - Include IE11, older Safari versions
108
+ - Requires polyfills and transpilation
109
+ - Pros: Wider audience reach
110
+ - Cons: Larger bundle, limited features
111
+
112
+ C) **Mobile-First**
113
+
114
+ - Prioritize iOS Safari and Chrome Android
115
+ - Responsive design for desktop
116
+ - Best for: Consumer apps, e-commerce
117
+
118
+ D) **Desktop-First**
119
+
120
+ - Optimize for desktop browsers
121
+ - Mobile as secondary experience
122
+ - Best for: Admin panels, dashboards, B2B tools
123
+
124
+ **Your answer:**
124
125
  ---
125
-
126
- ### Question 1.5: Responsive Strategy
127
-
128
- **How will you handle different screen sizes?**
129
-
130
- A) ⭐ **Mobile-First Responsive** (Recommended)
131
- - Design for mobile first, scale up for desktop
132
- - Breakpoints: 640px (mobile), 768px (tablet), 1024px (desktop)
133
- - Best for: Most modern apps
134
-
135
- B) **Desktop-First Responsive**
136
- - Design for desktop, scale down for mobile
137
- - Best for: Complex dashboards with dense data
138
-
139
- C) **Adaptive (Multiple Designs)**
140
- - Separate designs for mobile vs desktop
141
- - Example: Different layouts/features per breakpoint
142
- - Best for: Apps with very different mobile/desktop experiences
143
-
144
- D) **Fixed Width (Desktop Only)**
145
- - No mobile optimization
146
- - Best for: Internal tools, admin panels (desktop-only users)
147
-
148
- **Your answer:**
149
-
126
+ ### Question 1.5: Responsive Strategy
127
+
128
+ **How will you handle different screen sizes?**
129
+
130
+ A) ⭐ **Mobile-First Responsive** (Recommended)
131
+
132
+ - Design for mobile first, scale up for desktop
133
+ - Breakpoints: 640px (mobile), 768px (tablet), 1024px (desktop)
134
+ - Best for: Most modern apps
135
+
136
+ B) **Desktop-First Responsive**
137
+
138
+ - Design for desktop, scale down for mobile
139
+ - Best for: Complex dashboards with dense data
140
+
141
+ C) **Adaptive (Multiple Designs)**
142
+
143
+ - Separate designs for mobile vs desktop
144
+ - Example: Different layouts/features per breakpoint
145
+ - Best for: Apps with very different mobile/desktop experiences
146
+
147
+ D) **Fixed Width (Desktop Only)**
148
+
149
+ - No mobile optimization
150
+ - Best for: Internal tools, admin panels (desktop-only users)
151
+
152
+ **Your answer:**
150
153
  ---
151
-
152
- ### Question 1.6: Internationalization (i18n)
153
-
154
- **Do you need multi-language support?**
155
-
156
- A) ⭐ **Single Language Only**
157
- - No i18n needed
158
- - Fastest development
159
-
160
- B) **Multi-Language (Static)**
161
- - Support 2-5 languages
162
- - Translations managed in code (JSON files)
163
- - Example: English, Spanish, French
164
-
165
- C) 🌍 **Multi-Language (Dynamic)**
166
- - Support 10+ languages
167
- - CMS-driven translations or API-based
168
- - Example: Crowdin, Phrase integration
169
-
170
- D) **Right-to-Left (RTL) Support**
171
- - Include Arabic, Hebrew, etc.
172
- - Requires bidirectional layout support
173
-
174
- **Your answer:**
175
-
176
- **If multi-language selected, list target languages:**
177
-
154
+ ### Question 1.6: Internationalization (i18n)
155
+
156
+ **Do you need multi-language support?**
157
+
158
+ A) ⭐ **Single Language Only**
159
+
160
+ - No i18n needed
161
+ - Fastest development
162
+
163
+ B) **Multi-Language (Static)**
164
+
165
+ - Support 2-5 languages
166
+ - Translations managed in code (JSON files)
167
+ - Example: English, Spanish, French
168
+
169
+ C) 🌍 **Multi-Language (Dynamic)**
170
+
171
+ - Support 10+ languages
172
+ - CMS-driven translations or API-based
173
+ - Example: Crowdin, Phrase integration
174
+
175
+ D) **Right-to-Left (RTL) Support**
176
+
177
+ - Include Arabic, Hebrew, etc.
178
+ - Requires bidirectional layout support
179
+
180
+ **Your answer:**
181
+
182
+ **If multi-language selected, list target languages:**
178
183
  ---
179
-
180
- ### Question 1.7: Authentication Requirements
181
-
182
- **What authentication method will you use?**
183
-
184
- A) ⭐ **Email/Password (Traditional)**
185
- - Users sign up with email and password
186
- - Requires password reset flow
187
- - Best for: Most apps
188
-
189
- B) 🔥 **Social Login (OAuth)**
190
- - Google, GitHub, Facebook, etc.
191
- - Faster signup, lower friction
192
- - Best for: Consumer apps
193
-
194
- C) **Magic Link / Passwordless**
195
- - Email-based login link
196
- - No password management
197
- - Best for: B2B SaaS, low-security apps
198
-
199
- D) **SSO / SAML (Enterprise)**
200
- - Okta, Auth0, Azure AD integration
201
- - Best for: Enterprise B2B apps
202
-
203
- E) **Multi-Factor Authentication (MFA)**
204
- - SMS, authenticator app, WebAuthn
205
- - Best for: High-security apps (finance, healthcare)
206
-
207
- F) **No Authentication**
208
- - Public app, no user accounts
209
- - Best for: Marketing sites, public tools
210
-
211
- **Your answer:**
212
-
184
+ ### Question 1.7: Authentication Requirements
185
+
186
+ **What authentication method will you use?**
187
+
188
+ A) ⭐ **Email/Password (Traditional)**
189
+
190
+ - Users sign up with email and password
191
+ - Requires password reset flow
192
+ - Best for: Most apps
193
+
194
+ B) 🔥 **Social Login (OAuth)**
195
+
196
+ - Google, GitHub, Facebook, etc.
197
+ - Faster signup, lower friction
198
+ - Best for: Consumer apps
199
+
200
+ C) **Magic Link / Passwordless**
201
+
202
+ - Email-based login link
203
+ - No password management
204
+ - Best for: B2B SaaS, low-security apps
205
+
206
+ D) **SSO / SAML (Enterprise)**
207
+
208
+ - Okta, Auth0, Azure AD integration
209
+ - Best for: Enterprise B2B apps
210
+
211
+ E) **Multi-Factor Authentication (MFA)**
212
+
213
+ - SMS, authenticator app, WebAuthn
214
+ - Best for: High-security apps (finance, healthcare)
215
+
216
+ F) **No Authentication**
217
+
218
+ - Public app, no user accounts
219
+ - Best for: Marketing sites, public tools
220
+
221
+ **Your answer:**
213
222
  ---
214
-
215
- ### Question 1.8: Data Privacy & Compliance
216
-
217
- **What data privacy requirements do you have?**
218
-
219
- A) ⭐ **Standard (No Special Requirements)**
220
- - Basic privacy policy
221
- - No regulated data
222
-
223
- B) **GDPR Compliance (EU)**
224
- - Cookie consent banner
225
- - Right to be forgotten
226
- - Data export capabilities
227
-
228
- C) **CCPA Compliance (California)**
229
- - "Do Not Sell" option
230
- - Data deletion requests
231
-
232
- D) 🏆 **HIPAA Compliance (Healthcare)**
233
- - Encrypted data transmission
234
- - Audit logs
235
- - Strict access controls
236
-
237
- E) **SOC 2 / ISO 27001 (Enterprise)**
238
- - Security audit requirements
239
- - Detailed logging and monitoring
240
-
241
- F) **Multiple Regulations**
242
- - Combine GDPR + CCPA + others
243
- - Most restrictive controls apply
244
-
245
- **Your answer:**
246
-
223
+ ### Question 1.8: Data Privacy & Compliance
224
+
225
+ **What data privacy requirements do you have?**
226
+
227
+ A) ⭐ **Standard (No Special Requirements)**
228
+
229
+ - Basic privacy policy
230
+ - No regulated data
231
+
232
+ B) **GDPR Compliance (EU)**
233
+
234
+ - Cookie consent banner
235
+ - Right to be forgotten
236
+ - Data export capabilities
237
+
238
+ C) **CCPA Compliance (California)**
239
+
240
+ - "Do Not Sell" option
241
+ - Data deletion requests
242
+
243
+ D) 🏆 **HIPAA Compliance (Healthcare)**
244
+
245
+ - Encrypted data transmission
246
+ - Audit logs
247
+ - Strict access controls
248
+
249
+ E) **SOC 2 / ISO 27001 (Enterprise)**
250
+
251
+ - Security audit requirements
252
+ - Detailed logging and monitoring
253
+
254
+ F) **Multiple Regulations**
255
+
256
+ - Combine GDPR + CCPA + others
257
+ - Most restrictive controls apply
258
+
259
+ **Your answer:**
247
260
  ---
248
-
249
- ### Question 1.9: Offline Support
250
-
251
- **Do users need offline access?**
252
-
253
- A) ⭐ **Online Only**
254
- - Requires internet connection
255
- - Simplest implementation
256
-
257
- B) **Basic Offline (Read-Only)**
258
- - Cache data for offline viewing
259
- - No offline editing
260
- - Example: News apps, documentation
261
-
262
- C) 🔥 **Full Offline (Sync)**
263
- - Offline editing with sync when online
264
- - Requires conflict resolution
265
- - Example: Note apps, task managers
266
- - Technologies: Service Workers, IndexedDB
267
-
268
- D) **Offline-First**
269
- - Works offline by default
270
- - Syncs in background
271
- - Best for: Mobile apps, unreliable networks
272
-
273
- **Your answer:**
274
-
261
+ ### Question 1.9: Offline Support
262
+
263
+ **Do users need offline access?**
264
+
265
+ A) ⭐ **Online Only**
266
+
267
+ - Requires internet connection
268
+ - Simplest implementation
269
+
270
+ B) **Basic Offline (Read-Only)**
271
+
272
+ - Cache data for offline viewing
273
+ - No offline editing
274
+ - Example: News apps, documentation
275
+
276
+ C) 🔥 **Full Offline (Sync)**
277
+
278
+ - Offline editing with sync when online
279
+ - Requires conflict resolution
280
+ - Example: Note apps, task managers
281
+ - Technologies: Service Workers, IndexedDB
282
+
283
+ D) **Offline-First**
284
+
285
+ - Works offline by default
286
+ - Syncs in background
287
+ - Best for: Mobile apps, unreliable networks
288
+
289
+ **Your answer:**
275
290
  ---
276
-
277
- ### Question 1.10: Performance Priorities
278
-
279
- **What are your performance priorities?** (Select top 3)
280
-
281
- A) ⭐ **Fast Initial Load (LCP < 2.5s)**
282
- - Optimize Core Web Vitals
283
- - Code splitting, lazy loading
284
- - Best for: SEO, user retention
285
-
286
- B) **Smooth Interactions (FID < 100ms)**
287
- - Debounce inputs, optimize re-renders
288
- - Best for: Interactive apps, dashboards
289
-
290
- C) **Visual Stability (CLS < 0.1)**
291
- - Prevent layout shifts
292
- - Reserve space for dynamic content
293
- - Best for: Content-heavy sites
294
-
295
- D) **Low Bundle Size**
296
- - Minimize JavaScript payload
297
- - Tree shaking, compression
298
- - Best for: Mobile users, slow networks
299
-
300
- E) **Fast Time to Interactive (TTI)**
301
- - Hydration optimization
302
- - Critical CSS inlining
303
- - Best for: SSR apps
304
-
305
- F) **Perceived Performance**
306
- - Skeleton screens, optimistic UI
307
- - Best for: User experience
308
-
309
- **Your answer (top 3):**
310
-
291
+ ### Question 1.10: Performance Priorities
292
+
293
+ **What are your performance priorities?** (Select top 3)
294
+
295
+ A) ⭐ **Fast Initial Load (LCP < 2.5s)**
296
+
297
+ - Optimize Core Web Vitals
298
+ - Code splitting, lazy loading
299
+ - Best for: SEO, user retention
300
+
301
+ B) **Smooth Interactions (FID < 100ms)**
302
+
303
+ - Debounce inputs, optimize re-renders
304
+ - Best for: Interactive apps, dashboards
305
+
306
+ C) **Visual Stability (CLS < 0.1)**
307
+
308
+ - Prevent layout shifts
309
+ - Reserve space for dynamic content
310
+ - Best for: Content-heavy sites
311
+
312
+ D) **Low Bundle Size**
313
+
314
+ - Minimize JavaScript payload
315
+ - Tree shaking, compression
316
+ - Best for: Mobile users, slow networks
317
+
318
+ E) **Fast Time to Interactive (TTI)**
319
+
320
+ - Hydration optimization
321
+ - Critical CSS inlining
322
+ - Best for: SSR apps
323
+
324
+ F) **Perceived Performance**
325
+
326
+ - Skeleton screens, optimistic UI
327
+ - Best for: User experience
328
+
329
+ **Your answer (top 3):**
311
330
  ---
312
-
313
- ## 📊 Phase 1 Summary
314
-
315
- Before proceeding to Phase 2, confirm the following:
316
-
317
- ```
318
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
319
- 📋 PHASE 1 SUMMARY: DISCOVERY & UX
320
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
321
-
322
- Application Type: [Answer from 1.1]
323
- Target Users: [Answer from 1.2]
324
- Key User Journeys: [Answer from 1.3]
325
- Device/Browser Support: [Answer from 1.4]
326
- Responsive Strategy: [Answer from 1.5]
327
- Internationalization: [Answer from 1.6]
328
- Authentication: [Answer from 1.7]
329
- Data Privacy: [Answer from 1.8]
330
- Offline Support: [Answer from 1.9]
331
- Performance Priorities: [Answer from 1.10]
332
-
333
- Is this correct? (Y/n)
334
- ```
335
-
336
- If **Yes:** Proceed to Phase 2
337
-
338
- If **No:** Allow user to correct specific answers
339
-
331
+ ## 📊 Phase 1 Summary
332
+
333
+ Before proceeding to Phase 2, confirm the following:
334
+
335
+ ```
340
336
  ---
341
-
342
- ## 📝 Document Generation (Partial)
343
-
344
- At the end of Phase 1, generate or update:
345
-
346
- ### 1. project-brief.md (Partial)
347
-
348
- ```markdown
349
- # {{PROJECT_NAME}} - Project Brief
350
-
351
- ## Overview
352
-
353
- {{PROJECT_DESCRIPTION}}
354
-
355
- ## Application Type
356
-
357
- {{APPLICATION_TYPE}}
358
-
359
- ## Target Users
360
-
361
- {{TARGET_USERS}}
362
-
363
- ## Key User Journeys
364
-
365
- 1. {{USER_JOURNEY_1}}
366
- 2. {{USER_JOURNEY_2}}
367
- 3. {{USER_JOURNEY_3}}
368
- 4. {{USER_JOURNEY_4}}
369
- 5. {{USER_JOURNEY_5}}
370
-
371
- ## Technical Requirements
372
-
373
- ### Browser Support
374
-
375
- {{BROWSER_SUPPORT}}
376
-
377
- ### Responsive Strategy
378
-
379
- {{RESPONSIVE_STRATEGY}}
380
-
381
- ### Internationalization
382
-
383
- {{I18N_SUPPORT}}
384
-
385
- ### Authentication
386
-
387
- {{AUTH_METHOD}}
388
-
389
- ### Data Privacy
390
-
391
- {{DATA_PRIVACY_COMPLIANCE}}
392
-
393
- ### Offline Support
394
-
395
- {{OFFLINE_SUPPORT}}
396
-
397
- ### Performance Priorities
398
-
399
- {{PERFORMANCE_PRIORITIES}}
400
- ```
401
-
402
- ### 2. AGENT.md (Partial)
403
-
404
- ```markdown
405
- # AGENT.md
406
-
407
- ## About This Project
408
-
409
- **Project Name:** {{PROJECT_NAME}}
410
-
411
- **Type:** {{APPLICATION_TYPE}}
412
-
413
- **Target Users:** {{TARGET_USERS}}
414
-
415
- ## Key Features
416
-
417
- {{KEY_USER_JOURNEYS}}
418
-
419
- ## Requirements
420
-
421
- - Browser Support: {{BROWSER_SUPPORT}}
422
- - Responsive: {{RESPONSIVE_STRATEGY}}
423
- - i18n: {{I18N_SUPPORT}}
424
- - Authentication: {{AUTH_METHOD}}
425
- - Compliance: {{DATA_PRIVACY_COMPLIANCE}}
426
- ```
427
-
337
+ 📋 PHASE 1 SUMMARY: DISCOVERY & UX
428
338
  ---
429
-
430
- ## 🚀 Next Steps
431
-
432
- ```
433
- Phase 1 Complete!
434
-
435
- Documents Generated:
436
- - project-brief.md (partial)
437
- - AGENT.md (partial)
438
-
439
- Next: Phase 2 - Components & Framework
440
-
441
- Read: .ai-flow/prompts/frontend/flow-build-phase-2-components.md
442
- ```
443
-
339
+ Application Type: [Answer from 1.1]
340
+ Target Users: [Answer from 1.2]
341
+ Key User Journeys: [Answer from 1.3]
342
+ Device/Browser Support: [Answer from 1.4]
343
+ Responsive Strategy: [Answer from 1.5]
344
+ Internationalization: [Answer from 1.6]
345
+ Authentication: [Answer from 1.7]
346
+ Data Privacy: [Answer from 1.8]
347
+ Offline Support: [Answer from 1.9]
348
+ Performance Priorities: [Answer from 1.10]
349
+
350
+ Is this correct? (Y/n)
351
+ ```
352
+
353
+ If **Yes:** Proceed to Phase 2
354
+
355
+ If **No:** Allow user to correct specific answers
444
356
  ---
445
-
446
- **Last Updated:** 2025-01-XX
447
-
448
- **Version:** 1.2.0
357
+ ## 📝 Document Generation (Partial)
358
+
359
+ At the end of Phase 1, generate or update:
360
+
361
+ ### 1. project-brief.md (Partial)
362
+
363
+ ```markdown
364
+ # {{PROJECT_NAME}} - Project Brief
365
+
366
+ ## Overview
367
+
368
+ {{PROJECT_DESCRIPTION}}
369
+
370
+ ## Application Type
371
+
372
+ {{APPLICATION_TYPE}}
373
+
374
+ ## Target Users
375
+
376
+ {{TARGET_USERS}}
377
+
378
+ ## Key User Journeys
379
+
380
+ 1. {{USER_JOURNEY_1}}
381
+ 2. {{USER_JOURNEY_2}}
382
+ 3. {{USER_JOURNEY_3}}
383
+ 4. {{USER_JOURNEY_4}}
384
+ 5. {{USER_JOURNEY_5}}
385
+
386
+ ## Technical Requirements
387
+
388
+ ### Browser Support
389
+
390
+ {{BROWSER_SUPPORT}}
391
+
392
+ ### Responsive Strategy
393
+
394
+ {{RESPONSIVE_STRATEGY}}
395
+
396
+ ### Internationalization
397
+
398
+ {{I18N_SUPPORT}}
399
+
400
+ ### Authentication
401
+
402
+ {{AUTH_METHOD}}
403
+
404
+ ### Data Privacy
405
+
406
+ {{DATA_PRIVACY_COMPLIANCE}}
407
+
408
+ ### Offline Support
409
+
410
+ {{OFFLINE_SUPPORT}}
411
+
412
+ ### Performance Priorities
413
+
414
+ {{PERFORMANCE_PRIORITIES}}
415
+ ```
416
+
417
+ ### 2. AGENT.md (Partial)
418
+
419
+ ```markdown
420
+ # AGENT.md
421
+
422
+ ## About This Project
423
+
424
+ **Project Name:** {{PROJECT_NAME}}
425
+
426
+ **Type:** {{APPLICATION_TYPE}}
427
+
428
+ **Target Users:** {{TARGET_USERS}}
429
+
430
+ ## Key Features
431
+
432
+ {{KEY_USER_JOURNEYS}}
433
+
434
+ ## Requirements
435
+
436
+ - Browser Support: {{BROWSER_SUPPORT}}
437
+ - Responsive: {{RESPONSIVE_STRATEGY}}
438
+ - i18n: {{I18N_SUPPORT}}
439
+ - Authentication: {{AUTH_METHOD}}
440
+ - Compliance: {{DATA_PRIVACY_COMPLIANCE}}
441
+ ```
442
+ ---
443
+ ## 🚀 Next Steps
444
+
445
+ ```
446
+ ✅ Phase 1 Complete!
447
+
448
+ Documents Generated:
449
+ - project-brief.md (partial)
450
+ - AGENT.md (partial)
451
+
452
+ Next: Phase 2 - Components & Framework
453
+
454
+ Read: .ai-flow/prompts/frontend/flow-build-phase-2-components.md
455
+ ```
456
+ ---
457
+ **Last Updated:** 2025-01-XX
458
+
459
+ **Version:** 1.2.0
460
+
449
461
 
450
462
 
451
463