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.
- package/README.md +25 -38
- package/dist/cli.js +68 -46
- package/dist/cli.js.map +1 -1
- package/package.json +5 -5
- package/prompts/backend/flow-build-phase-0.md +31 -63
- package/prompts/backend/flow-build-phase-1.md +9 -17
- package/prompts/backend/flow-build-phase-10.md +199 -585
- package/prompts/backend/flow-build-phase-2.md +152 -86
- package/prompts/backend/flow-build-phase-3.md +108 -68
- package/prompts/backend/flow-build-phase-4.md +5 -8
- package/prompts/backend/flow-build-phase-5.md +39 -12
- package/prompts/backend/flow-build-phase-6.md +29 -8
- package/prompts/backend/flow-build-phase-7.md +120 -40
- package/prompts/backend/flow-build-phase-8.md +28 -65
- package/prompts/backend/flow-build-phase-9.md +267 -1298
- package/prompts/backend/flow-build.md +881 -957
- package/prompts/backend/flow-dev-commit.md +27 -50
- package/prompts/backend/flow-dev-feature.md +1929 -2017
- package/prompts/backend/flow-dev-fix.md +936 -964
- package/prompts/backend/flow-dev-refactor.md +672 -701
- package/prompts/backend/flow-dev-review.md +356 -389
- package/prompts/backend/flow-dev-work.md +1066 -1118
- package/prompts/backend/flow-docs-sync.md +20 -196
- package/prompts/frontend/flow-build-phase-0.md +503 -484
- package/prompts/frontend/flow-build-phase-1.md +445 -433
- package/prompts/frontend/flow-build-phase-2.md +910 -957
- package/prompts/frontend/flow-build-phase-3.md +692 -664
- package/prompts/frontend/flow-build-phase-4.md +478 -463
- package/prompts/frontend/flow-build-phase-5.md +488 -467
- package/prompts/frontend/flow-build-phase-6.md +571 -550
- package/prompts/frontend/flow-build-phase-7.md +560 -592
- package/prompts/frontend/flow-build-phase-8.md +17 -42
- package/prompts/frontend/flow-build.md +457 -503
- package/prompts/frontend/flow-docs-sync.md +14 -35
- package/prompts/mobile/flow-build-phase-0.md +104 -97
- package/prompts/mobile/flow-build-phase-1.md +137 -122
- package/prompts/mobile/flow-build-phase-2.md +123 -130
- package/prompts/mobile/flow-build-phase-3.md +144 -149
- package/prompts/mobile/flow-build-phase-4.md +140 -132
- package/prompts/mobile/flow-build-phase-5.md +70 -70
- package/prompts/mobile/flow-build-phase-6.md +136 -134
- package/prompts/mobile/flow-build-phase-7.md +24 -58
- package/prompts/mobile/flow-build-phase-8.md +17 -42
- package/prompts/mobile/flow-build.md +47 -97
- package/prompts/mobile/flow-docs-sync.md +13 -32
- package/prompts/shared/mermaid-guidelines.md +106 -0
- package/prompts/shared/scope-levels.md +126 -0
- package/prompts/shared/story-points.md +65 -0
- package/prompts/shared/task-format.md +86 -0
- package/templates/AGENT.template.md +194 -15
- package/templates/backend/README.template.md +2 -32
- package/templates/backend/ai-instructions.template.md +2 -32
- package/templates/backend/copilot-instructions.template.md +2 -22
- package/templates/backend/docs/api.template.md +89 -20
- package/templates/backend/docs/architecture.template.md +165 -53
- package/templates/backend/docs/business-flows.template.md +7 -14
- package/templates/backend/docs/code-standards.template.md +2 -38
- package/templates/backend/docs/contributing.template.md +2 -16
- package/templates/backend/docs/data-model.template.md +125 -21
- package/templates/backend/docs/operations.template.md +179 -50
- package/templates/backend/docs/testing.template.md +2 -42
- package/templates/backend/project-brief.template.md +2 -28
- package/templates/backend/specs/configuration.template.md +2 -14
- package/templates/backend/specs/security.template.md +2 -32
- package/templates/frontend/README.template.md +2 -18
- package/templates/frontend/ai-instructions.template.md +2 -20
- package/templates/frontend/docs/api-integration.template.md +12 -30
- package/templates/frontend/docs/components.template.md +2 -28
- package/templates/frontend/docs/error-handling.template.md +11 -27
- package/templates/frontend/docs/operations.template.md +8 -18
- package/templates/frontend/docs/performance.template.md +8 -18
- package/templates/frontend/docs/pwa.template.md +8 -18
- package/templates/frontend/docs/state-management.template.md +2 -28
- package/templates/frontend/docs/styling.template.md +2 -26
- package/templates/frontend/docs/testing.template.md +2 -28
- package/templates/frontend/project-brief.template.md +2 -16
- package/templates/frontend/specs/accessibility.template.md +8 -18
- package/templates/frontend/specs/configuration.template.md +2 -24
- package/templates/frontend/specs/security.template.md +10 -24
- package/templates/fullstack/README.template.md +17 -47
- package/templates/fullstack/ai-instructions.template.md +17 -45
- package/templates/fullstack/project-brief.template.md +16 -42
- package/templates/fullstack/specs/configuration.template.md +16 -42
- package/templates/mobile/README.template.md +11 -29
- package/templates/mobile/ai-instructions.template.md +11 -27
- package/templates/mobile/docs/app-store.template.md +11 -29
- package/templates/mobile/docs/architecture.template.md +14 -38
- package/templates/mobile/docs/native-features.template.md +16 -44
- package/templates/mobile/docs/navigation.template.md +9 -23
- package/templates/mobile/docs/offline-strategy.template.md +10 -26
- package/templates/mobile/docs/permissions.template.md +9 -23
- package/templates/mobile/docs/state-management.template.md +12 -32
- package/templates/mobile/docs/testing.template.md +14 -38
- package/templates/mobile/project-brief.template.md +12 -30
- package/templates/mobile/specs/build-configuration.template.md +10 -26
- 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
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
B) 🔥 **Multi-Page Application (MPA)**
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
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
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
- Demographics (age, tech-savviness, etc.)
|
|
62
|
-
- Use cases / goals
|
|
63
|
-
- Device preferences
|
|
64
|
-
- Accessibility needs
|
|
65
|
-
|
|
66
|
-
**Example:**
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
-
|
|
70
|
-
-
|
|
71
|
-
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
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
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
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:**
|
|
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
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
B) 🔥 **Broad Compatibility** (Last 3-4 years)
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
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
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
B) **Desktop-First Responsive**
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
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
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
B) **Multi-Language (Static)**
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
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
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
B) 🔥 **Social Login (OAuth)**
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
**
|
|
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
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
B) **GDPR Compliance (EU)**
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
**
|
|
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
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
B) **Basic Offline (Read-Only)**
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
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
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
B) **Smooth Interactions (FID < 100ms)**
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
**
|
|
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
|
-
|
|
314
|
-
|
|
315
|
-
|
|
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
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
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
|
-
|
|
447
|
-
|
|
448
|
-
|
|
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
|
|