ai-flow-dev 2.6.0 → 2.7.0

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 (161) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +570 -570
  3. package/package.json +73 -73
  4. package/prompts/backend/flow-build-phase-0.md +535 -535
  5. package/prompts/backend/flow-build-phase-1.md +626 -626
  6. package/prompts/backend/flow-build-phase-10.md +340 -340
  7. package/prompts/backend/flow-build-phase-2.md +573 -573
  8. package/prompts/backend/flow-build-phase-3.md +834 -834
  9. package/prompts/backend/flow-build-phase-4.md +554 -554
  10. package/prompts/backend/flow-build-phase-5.md +703 -703
  11. package/prompts/backend/flow-build-phase-6.md +524 -524
  12. package/prompts/backend/flow-build-phase-7.md +1001 -1001
  13. package/prompts/backend/flow-build-phase-8.md +1407 -1407
  14. package/prompts/backend/flow-build-phase-9.md +477 -477
  15. package/prompts/backend/flow-build.md +137 -137
  16. package/prompts/backend/flow-check-review.md +20 -20
  17. package/prompts/backend/flow-check-test.md +14 -14
  18. package/prompts/backend/flow-check.md +67 -67
  19. package/prompts/backend/flow-commit.md +119 -119
  20. package/prompts/backend/flow-docs-sync.md +354 -354
  21. package/prompts/backend/flow-work-feature.md +61 -61
  22. package/prompts/backend/flow-work-fix.md +46 -46
  23. package/prompts/backend/flow-work-refactor.md +48 -48
  24. package/prompts/backend/flow-work-resume.md +34 -34
  25. package/prompts/backend/flow-work.md +1286 -1023
  26. package/prompts/desktop/flow-build-phase-0.md +359 -359
  27. package/prompts/desktop/flow-build-phase-1.md +295 -295
  28. package/prompts/desktop/flow-build-phase-10.md +357 -357
  29. package/prompts/desktop/flow-build-phase-2.md +282 -282
  30. package/prompts/desktop/flow-build-phase-3.md +291 -291
  31. package/prompts/desktop/flow-build-phase-4.md +308 -308
  32. package/prompts/desktop/flow-build-phase-5.md +269 -269
  33. package/prompts/desktop/flow-build-phase-6.md +350 -350
  34. package/prompts/desktop/flow-build-phase-7.md +297 -297
  35. package/prompts/desktop/flow-build-phase-8.md +541 -541
  36. package/prompts/desktop/flow-build-phase-9.md +439 -439
  37. package/prompts/desktop/flow-build.md +156 -156
  38. package/prompts/desktop/flow-check-review.md +20 -20
  39. package/prompts/desktop/flow-check-test.md +14 -14
  40. package/prompts/desktop/flow-check.md +67 -67
  41. package/prompts/desktop/flow-commit.md +119 -119
  42. package/prompts/desktop/flow-docs-sync.md +354 -354
  43. package/prompts/desktop/flow-work-feature.md +61 -61
  44. package/prompts/desktop/flow-work-fix.md +46 -46
  45. package/prompts/desktop/flow-work-refactor.md +48 -48
  46. package/prompts/desktop/flow-work-resume.md +34 -34
  47. package/prompts/desktop/flow-work.md +1390 -1023
  48. package/prompts/frontend/flow-build-phase-0.md +425 -425
  49. package/prompts/frontend/flow-build-phase-1.md +626 -626
  50. package/prompts/frontend/flow-build-phase-10.md +33 -33
  51. package/prompts/frontend/flow-build-phase-2.md +573 -573
  52. package/prompts/frontend/flow-build-phase-3.md +782 -782
  53. package/prompts/frontend/flow-build-phase-4.md +554 -554
  54. package/prompts/frontend/flow-build-phase-5.md +703 -703
  55. package/prompts/frontend/flow-build-phase-6.md +524 -524
  56. package/prompts/frontend/flow-build-phase-7.md +1001 -1001
  57. package/prompts/frontend/flow-build-phase-8.md +872 -872
  58. package/prompts/frontend/flow-build-phase-9.md +94 -94
  59. package/prompts/frontend/flow-build.md +137 -137
  60. package/prompts/frontend/flow-check-review.md +20 -20
  61. package/prompts/frontend/flow-check-test.md +14 -14
  62. package/prompts/frontend/flow-check.md +67 -67
  63. package/prompts/frontend/flow-commit.md +119 -119
  64. package/prompts/frontend/flow-docs-sync.md +550 -550
  65. package/prompts/frontend/flow-work-feature.md +61 -61
  66. package/prompts/frontend/flow-work-fix.md +38 -38
  67. package/prompts/frontend/flow-work-refactor.md +48 -48
  68. package/prompts/frontend/flow-work-resume.md +34 -34
  69. package/prompts/frontend/flow-work.md +1320 -1027
  70. package/prompts/mobile/flow-build-phase-0.md +425 -425
  71. package/prompts/mobile/flow-build-phase-1.md +626 -626
  72. package/prompts/mobile/flow-build-phase-10.md +32 -32
  73. package/prompts/mobile/flow-build-phase-2.md +573 -573
  74. package/prompts/mobile/flow-build-phase-3.md +782 -782
  75. package/prompts/mobile/flow-build-phase-4.md +554 -554
  76. package/prompts/mobile/flow-build-phase-5.md +703 -703
  77. package/prompts/mobile/flow-build-phase-6.md +524 -524
  78. package/prompts/mobile/flow-build-phase-7.md +1001 -1001
  79. package/prompts/mobile/flow-build-phase-8.md +888 -888
  80. package/prompts/mobile/flow-build-phase-9.md +90 -90
  81. package/prompts/mobile/flow-build.md +135 -135
  82. package/prompts/mobile/flow-check-review.md +20 -20
  83. package/prompts/mobile/flow-check-test.md +14 -14
  84. package/prompts/mobile/flow-check.md +67 -67
  85. package/prompts/mobile/flow-commit.md +119 -119
  86. package/prompts/mobile/flow-docs-sync.md +620 -620
  87. package/prompts/mobile/flow-work-feature.md +61 -61
  88. package/prompts/mobile/flow-work-fix.md +46 -46
  89. package/prompts/mobile/flow-work-refactor.md +48 -48
  90. package/prompts/mobile/flow-work-resume.md +34 -34
  91. package/prompts/mobile/flow-work.md +1329 -1023
  92. package/prompts/shared/mermaid-guidelines.md +102 -102
  93. package/prompts/shared/scope-levels.md +114 -114
  94. package/prompts/shared/smart-skip-preflight.md +214 -214
  95. package/prompts/shared/story-points.md +55 -55
  96. package/prompts/shared/task-format.md +74 -74
  97. package/prompts/shared/task-summary-template.md +277 -277
  98. package/templates/AGENT.template.md +443 -443
  99. package/templates/backend/.clauderules.template +112 -112
  100. package/templates/backend/.cursorrules.template +102 -102
  101. package/templates/backend/README.template.md +2 -2
  102. package/templates/backend/ai-instructions.template.md +2 -2
  103. package/templates/backend/copilot-instructions.template.md +2 -2
  104. package/templates/backend/docs/api.template.md +320 -320
  105. package/templates/backend/docs/business-flows.template.md +97 -97
  106. package/templates/backend/docs/code-standards.template.md +2 -2
  107. package/templates/backend/docs/contributing.template.md +3 -3
  108. package/templates/backend/docs/data-model.template.md +520 -520
  109. package/templates/backend/docs/testing.template.md +2 -2
  110. package/templates/backend/project-brief.template.md +2 -2
  111. package/templates/backend/specs/configuration.template.md +2 -2
  112. package/templates/backend/specs/security.template.md +2 -2
  113. package/templates/desktop/.clauderules.template +112 -112
  114. package/templates/desktop/.cursorrules.template +102 -102
  115. package/templates/desktop/README.template.md +170 -170
  116. package/templates/desktop/ai-instructions.template.md +366 -366
  117. package/templates/desktop/copilot-instructions.template.md +140 -140
  118. package/templates/desktop/docs/docs/api.template.md +320 -320
  119. package/templates/desktop/docs/docs/architecture.template.md +724 -724
  120. package/templates/desktop/docs/docs/business-flows.template.md +102 -102
  121. package/templates/desktop/docs/docs/code-standards.template.md +792 -792
  122. package/templates/desktop/docs/docs/contributing.template.md +149 -149
  123. package/templates/desktop/docs/docs/data-model.template.md +520 -520
  124. package/templates/desktop/docs/docs/operations.template.md +720 -720
  125. package/templates/desktop/docs/docs/testing.template.md +722 -722
  126. package/templates/desktop/project-brief.template.md +150 -150
  127. package/templates/desktop/specs/specs/configuration.template.md +121 -121
  128. package/templates/desktop/specs/specs/security.template.md +392 -392
  129. package/templates/frontend/README.template.md +2 -2
  130. package/templates/frontend/ai-instructions.template.md +2 -2
  131. package/templates/frontend/docs/api-integration.template.md +362 -362
  132. package/templates/frontend/docs/components.template.md +2 -2
  133. package/templates/frontend/docs/error-handling.template.md +360 -360
  134. package/templates/frontend/docs/operations.template.md +107 -107
  135. package/templates/frontend/docs/performance.template.md +124 -124
  136. package/templates/frontend/docs/pwa.template.md +119 -119
  137. package/templates/frontend/docs/state-management.template.md +2 -2
  138. package/templates/frontend/docs/styling.template.md +2 -2
  139. package/templates/frontend/docs/testing.template.md +2 -2
  140. package/templates/frontend/project-brief.template.md +2 -2
  141. package/templates/frontend/specs/accessibility.template.md +95 -95
  142. package/templates/frontend/specs/configuration.template.md +2 -2
  143. package/templates/frontend/specs/security.template.md +175 -175
  144. package/templates/fullstack/README.template.md +252 -252
  145. package/templates/fullstack/ai-instructions.template.md +444 -444
  146. package/templates/fullstack/project-brief.template.md +157 -157
  147. package/templates/fullstack/specs/configuration.template.md +340 -340
  148. package/templates/mobile/README.template.md +167 -167
  149. package/templates/mobile/ai-instructions.template.md +196 -196
  150. package/templates/mobile/docs/app-store.template.md +135 -135
  151. package/templates/mobile/docs/architecture.template.md +63 -63
  152. package/templates/mobile/docs/native-features.template.md +94 -94
  153. package/templates/mobile/docs/navigation.template.md +59 -59
  154. package/templates/mobile/docs/offline-strategy.template.md +65 -65
  155. package/templates/mobile/docs/permissions.template.md +56 -56
  156. package/templates/mobile/docs/state-management.template.md +85 -85
  157. package/templates/mobile/docs/testing.template.md +109 -109
  158. package/templates/mobile/project-brief.template.md +69 -69
  159. package/templates/mobile/specs/build-configuration.template.md +91 -91
  160. package/templates/mobile/specs/deployment.template.md +92 -92
  161. package/templates/work.template.md +47 -47
@@ -1,295 +1,295 @@
1
- ## PHASE 1: Discovery & UX Desktop (15-20 min)
2
-
3
- > **Order for this phase:** 1.1 → 1.2 → 1.3 → 1.4 → 1.5 → 1.6 → 1.7 → 1.8 → 1.9 → 1.10
4
-
5
- > **📌 Scope-based behavior:**
6
- >
7
- > - **MVP/Basic Scope:** Focus only on core windows and user flows
8
- > - **Production-Ready Scope:** In-depth exploration of accessibility, platform integration, and polish
9
-
10
- ### Objective
11
-
12
- Define the desktop application's core purpose, user interface structure, and desktop-specific requirements.
13
-
14
- ---
15
-
16
- ## 🔍 Pre-Flight Check (Smart Skip Logic)
17
-
18
- **Execute Pre-Flight Check for Phase 1:**
19
-
20
- - **Target File**: `project-brief.md`
21
- - **Phase Name**: "DESKTOP UX CONTEXT"
22
- - **Key Items**: Application type, target platform, main windows, user flows, desktop features
23
- - **Typical Gaps**: Platform integration, native features, installation requirements
24
-
25
- ---
26
-
27
- ## Phase 1 Questions (Full Mode)
28
-
29
- **1.1 Application Name & Description**
30
-
31
- ```
32
- What is your desktop application name?
33
-
34
- Provide a description of your desktop application:
35
- (Don't worry about perfection - we'll refine it together!)
36
-
37
- Example: "A music player with library management and playlist features for Windows/Mac"
38
- ```
39
-
40
- **1.2 Target Platforms**
41
-
42
- ```
43
- Which platforms will your application support? (Select all that apply)
44
-
45
- A) 🪟 Windows (10/11)
46
- B) 🍎 macOS (Intel + Apple Silicon)
47
- C) 🐧 Linux (Debian/Ubuntu, Fedora/RHEL, Arch)
48
- D) ☕ Cross-platform (Write once, run anywhere - Java JAR)
49
-
50
- Your choice: __
51
-
52
- Platform-specific considerations:
53
- - Windows: File paths (C:\\), registry, native notifications
54
- - macOS: .app bundles, keychain, Dock integration
55
- - Linux: .desktop files, package managers, themes
56
- ```
57
-
58
- **1.3 Application Type**
59
-
60
- ```
61
- What type of desktop application are you building?
62
-
63
- A) 🎨 Single-window tool - Simple utility (Calculator, Clock, Notes)
64
- B) 📊 MDI (Multiple Document Interface) - Multiple documents in one window (Office apps)
65
- C) 🪟 Multi-window application - Multiple independent windows (GIMP, IDE)
66
- D) 🎛️ Wizard/Assistant - Step-by-step guided process
67
- E) 🖼️ Media player/viewer - Image/video/audio player
68
- F) 📁 File manager/browser - Directory navigation and file operations
69
- G) 🎮 Game - Desktop game application
70
- H) 💼 Business tool - CRM, POS, Inventory, etc.
71
- I) Other: __
72
-
73
- Your choice: __
74
- ```
75
-
76
- **1.4 Main Windows/Screens**
77
-
78
- ```
79
- List the main windows or screens your application will have:
80
-
81
- For each window, provide:
82
- - Name: e.g., "Main Window", "Settings Dialog", "About Window"
83
- - Type: Main window, Dialog, Wizard, Splash screen
84
- - Purpose: Brief description
85
-
86
- Example:
87
- 1. Main Window - Primary interface with menu bar, toolbar, and content area
88
- 2. Preferences Dialog - Application settings
89
- 3. About Dialog - Version info and credits
90
- 4. Login Window - User authentication (if required)
91
-
92
- Your windows:
93
- 1.
94
- 2.
95
- 3.
96
- ...
97
- ```
98
-
99
- **1.5 Main UI Components**
100
-
101
- ```
102
- What are the main UI components in your application? (Select all that apply)
103
-
104
- Standard Components:
105
- A) 📋 Menu bar - File, Edit, View, Help
106
- B) 🔧 Toolbar - Quick access buttons
107
- C) 📊 Status bar - Progress, notifications
108
- D) 🗂️ Tabs/Panels - Multiple views in one window
109
- E) 🌳 Tree view - Hierarchical navigation
110
- F) 📑 Table/List view - Data display
111
- G) 📄 Text editor - Rich or plain text
112
- H) 📈 Charts/Graphs - Data visualization
113
- I) 🖼️ Canvas/Drawing area - Custom graphics
114
- J) 🎚️ Form inputs - Text fields, combo boxes, checkboxes
115
-
116
- Advanced Components:
117
- K) 🔍 Search/Filter bar
118
- L) 🎛️ Sidebar navigation
119
- M) 📌 Dockable panels
120
- N) 🖱️ Context menus (right-click)
121
- O) 🎨 Custom painted components
122
- P) 📹 Embedded media player
123
-
124
- Your components: __
125
- ```
126
-
127
- **1.6 Desktop-Specific Features**
128
-
129
- ```
130
- Which desktop-specific features does your application need? (Select all that apply)
131
-
132
- System Integration:
133
- A) 🔔 System notifications/toasts
134
- B) 🎯 System tray icon (minimize to tray)
135
- C) 📂 File associations (open .xyz files)
136
- D) 🔗 URL protocol handler (myapp://...)
137
- E) 🚀 Auto-start on login
138
- F) 🖨️ Printing support
139
- G) 📋 Clipboard integration (copy/paste)
140
- H) 🎤 Microphone/webcam access
141
- I) 🖱️ Global hotkeys/shortcuts
142
-
143
- File System:
144
- J) 📁 File picker dialogs (open/save)
145
- K) 📂 Directory watching (auto-reload on file changes)
146
- L) 🗄️ Recent files list
147
- M) 🔐 Secure file storage (encrypted)
148
- N) 📦 File bundling/archiving
149
-
150
- Native UI:
151
- O) 🎨 Native look and feel (platform-specific UI)
152
- P) 🌓 Dark/Light mode support
153
- Q) ♿ Accessibility (screen reader support)
154
- R) 🌍 Multi-language (i18n)
155
- S) ⌨️ Keyboard navigation
156
- T) 🖱️ Drag & drop support
157
-
158
- Your features: __
159
- ```
160
-
161
- **1.7 Data Storage**
162
-
163
- ```
164
- How will your application store data?
165
-
166
- A) 💾 Local files (JSON, XML, Properties)
167
- B) 🗄️ Embedded database (H2, Derby, SQLite)
168
- C) 🏢 External database (MySQL, PostgreSQL)
169
- D) ☁️ Cloud sync (Firebase, AWS, custom API)
170
- E) 📝 User preferences (Preferences API, Registry)
171
- F) 🔐 Secure storage (Keychain/Credential Manager)
172
- G) No persistent storage needed
173
-
174
- Your choice: __
175
-
176
- If using database, specify:
177
- - Schema: Auto-generated or manual?
178
- - Migration: Flyway, Liquibase, or custom?
179
- - Backup: Automatic backup strategy?
180
- ```
181
-
182
- **1.8 Network Features**
183
-
184
- ```
185
- Does your application need network connectivity?
186
-
187
- A) ✅ Yes - Required for core functionality
188
- B) 🔄 Optional - Works offline, syncs when online
189
- C) ❌ No - Fully offline application
190
-
191
- If yes, what network features:
192
- A) 🌐 REST API calls (HTTP client)
193
- B) 🔌 WebSocket (real-time updates)
194
- C) 📧 Email sending (SMTP)
195
- D) 📦 Auto-updates (check for new versions)
196
- E) 🔐 Authentication (OAuth, JWT)
197
- F) ☁️ Cloud storage sync
198
- G) 📊 Analytics/telemetry
199
-
200
- Your features: __
201
- ```
202
-
203
- **1.9 User Flows**
204
-
205
- ```
206
- Describe the main user flows in your application:
207
-
208
- Example (Music Player):
209
- 1. Launch application
210
- 2. Import music library (drag & drop folder)
211
- 3. Browse songs by artist/album/genre
212
- 4. Create playlist
213
- 5. Play songs with controls (play/pause/skip)
214
- 6. Edit metadata (tags)
215
- 7. Export playlist
216
-
217
- Your flows:
218
- 1.
219
- 2.
220
- 3.
221
- ...
222
-
223
- For each flow, you can optionally specify the steps. If not specified, the AI will deduce typical steps.
224
- ```
225
-
226
- **1.10 Success Metrics**
227
-
228
- ```
229
- How will you measure success?
230
-
231
- 1. Performance Targets:
232
- - Startup time: < __ seconds
233
- - Memory usage: < __ MB
234
- - CPU usage: < __ % (idle)
235
-
236
- 2. User Experience:
237
- - UI responsiveness: < __ ms for actions
238
- - File load time: < __ seconds for typical file
239
- - Installation size: < __ MB
240
-
241
- ⭐ Standard for Desktop MVP:
242
- - Startup: < 5 seconds
243
- - Memory: < 100 MB
244
- - UI response: < 100 ms
245
- - Install size: < 50 MB
246
-
247
- 🏆 Standard for Production:
248
- - Startup: < 2 seconds
249
- - Memory: < 50 MB (optimized)
250
- - UI response: < 50 ms
251
- - Install size: < 20 MB (compressed)
252
- ```
253
-
254
- ---
255
-
256
- ### Phase 1 Output
257
-
258
- ```
259
- 📋 PHASE 1 SUMMARY:
260
-
261
- Application: [name]
262
- Description: [1 sentence]
263
- Target Platforms: [Windows/macOS/Linux]
264
- Application Type: [Single-window/MDI/Multi-window]
265
- Main Windows: [list]
266
- UI Components: [list]
267
- Desktop Features: [list]
268
- Data Storage: [method]
269
- Network Features: [list/none]
270
- User Flows: [list of main flows]
271
- Success Metrics: [performance targets]
272
-
273
- Is this correct? (Yes/No)
274
- ```
275
-
276
- ---
277
-
278
- ### 📄 Generate Phase 1 Documents
279
-
280
- **Generate `project-brief.md` automatically:**
281
-
282
- - Use template: `.ai-flow/templates/desktop/project-brief.template.md`
283
- - Fill with all Phase 1 information
284
- - Write to project root: `project-brief.md`
285
-
286
- ---
287
-
288
- **Next Phase:** Phase 2 - UI Components (15-20 min)
289
-
290
- Read: `.ai-flow/prompts/desktop/flow-build-phase-2.md`
291
-
292
- ---
293
-
294
- **Last Updated:** 2025-02-03
295
- **Version:** 1.0.0
1
+ ## PHASE 1: Discovery & UX Desktop (15-20 min)
2
+
3
+ > **Order for this phase:** 1.1 → 1.2 → 1.3 → 1.4 → 1.5 → 1.6 → 1.7 → 1.8 → 1.9 → 1.10
4
+
5
+ > **📌 Scope-based behavior:**
6
+ >
7
+ > - **MVP/Basic Scope:** Focus only on core windows and user flows
8
+ > - **Production-Ready Scope:** In-depth exploration of accessibility, platform integration, and polish
9
+
10
+ ### Objective
11
+
12
+ Define the desktop application's core purpose, user interface structure, and desktop-specific requirements.
13
+
14
+ ---
15
+
16
+ ## 🔍 Pre-Flight Check (Smart Skip Logic)
17
+
18
+ **Execute Pre-Flight Check for Phase 1:**
19
+
20
+ - **Target File**: `project-brief.md`
21
+ - **Phase Name**: "DESKTOP UX CONTEXT"
22
+ - **Key Items**: Application type, target platform, main windows, user flows, desktop features
23
+ - **Typical Gaps**: Platform integration, native features, installation requirements
24
+
25
+ ---
26
+
27
+ ## Phase 1 Questions (Full Mode)
28
+
29
+ **1.1 Application Name & Description**
30
+
31
+ ```
32
+ What is your desktop application name?
33
+
34
+ Provide a description of your desktop application:
35
+ (Don't worry about perfection - we'll refine it together!)
36
+
37
+ Example: "A music player with library management and playlist features for Windows/Mac"
38
+ ```
39
+
40
+ **1.2 Target Platforms**
41
+
42
+ ```
43
+ Which platforms will your application support? (Select all that apply)
44
+
45
+ A) 🪟 Windows (10/11)
46
+ B) 🍎 macOS (Intel + Apple Silicon)
47
+ C) 🐧 Linux (Debian/Ubuntu, Fedora/RHEL, Arch)
48
+ D) ☕ Cross-platform (Write once, run anywhere - Java JAR)
49
+
50
+ Your choice: __
51
+
52
+ Platform-specific considerations:
53
+ - Windows: File paths (C:\\), registry, native notifications
54
+ - macOS: .app bundles, keychain, Dock integration
55
+ - Linux: .desktop files, package managers, themes
56
+ ```
57
+
58
+ **1.3 Application Type**
59
+
60
+ ```
61
+ What type of desktop application are you building?
62
+
63
+ A) 🎨 Single-window tool - Simple utility (Calculator, Clock, Notes)
64
+ B) 📊 MDI (Multiple Document Interface) - Multiple documents in one window (Office apps)
65
+ C) 🪟 Multi-window application - Multiple independent windows (GIMP, IDE)
66
+ D) 🎛️ Wizard/Assistant - Step-by-step guided process
67
+ E) 🖼️ Media player/viewer - Image/video/audio player
68
+ F) 📁 File manager/browser - Directory navigation and file operations
69
+ G) 🎮 Game - Desktop game application
70
+ H) 💼 Business tool - CRM, POS, Inventory, etc.
71
+ I) Other: __
72
+
73
+ Your choice: __
74
+ ```
75
+
76
+ **1.4 Main Windows/Screens**
77
+
78
+ ```
79
+ List the main windows or screens your application will have:
80
+
81
+ For each window, provide:
82
+ - Name: e.g., "Main Window", "Settings Dialog", "About Window"
83
+ - Type: Main window, Dialog, Wizard, Splash screen
84
+ - Purpose: Brief description
85
+
86
+ Example:
87
+ 1. Main Window - Primary interface with menu bar, toolbar, and content area
88
+ 2. Preferences Dialog - Application settings
89
+ 3. About Dialog - Version info and credits
90
+ 4. Login Window - User authentication (if required)
91
+
92
+ Your windows:
93
+ 1.
94
+ 2.
95
+ 3.
96
+ ...
97
+ ```
98
+
99
+ **1.5 Main UI Components**
100
+
101
+ ```
102
+ What are the main UI components in your application? (Select all that apply)
103
+
104
+ Standard Components:
105
+ A) 📋 Menu bar - File, Edit, View, Help
106
+ B) 🔧 Toolbar - Quick access buttons
107
+ C) 📊 Status bar - Progress, notifications
108
+ D) 🗂️ Tabs/Panels - Multiple views in one window
109
+ E) 🌳 Tree view - Hierarchical navigation
110
+ F) 📑 Table/List view - Data display
111
+ G) 📄 Text editor - Rich or plain text
112
+ H) 📈 Charts/Graphs - Data visualization
113
+ I) 🖼️ Canvas/Drawing area - Custom graphics
114
+ J) 🎚️ Form inputs - Text fields, combo boxes, checkboxes
115
+
116
+ Advanced Components:
117
+ K) 🔍 Search/Filter bar
118
+ L) 🎛️ Sidebar navigation
119
+ M) 📌 Dockable panels
120
+ N) 🖱️ Context menus (right-click)
121
+ O) 🎨 Custom painted components
122
+ P) 📹 Embedded media player
123
+
124
+ Your components: __
125
+ ```
126
+
127
+ **1.6 Desktop-Specific Features**
128
+
129
+ ```
130
+ Which desktop-specific features does your application need? (Select all that apply)
131
+
132
+ System Integration:
133
+ A) 🔔 System notifications/toasts
134
+ B) 🎯 System tray icon (minimize to tray)
135
+ C) 📂 File associations (open .xyz files)
136
+ D) 🔗 URL protocol handler (myapp://...)
137
+ E) 🚀 Auto-start on login
138
+ F) 🖨️ Printing support
139
+ G) 📋 Clipboard integration (copy/paste)
140
+ H) 🎤 Microphone/webcam access
141
+ I) 🖱️ Global hotkeys/shortcuts
142
+
143
+ File System:
144
+ J) 📁 File picker dialogs (open/save)
145
+ K) 📂 Directory watching (auto-reload on file changes)
146
+ L) 🗄️ Recent files list
147
+ M) 🔐 Secure file storage (encrypted)
148
+ N) 📦 File bundling/archiving
149
+
150
+ Native UI:
151
+ O) 🎨 Native look and feel (platform-specific UI)
152
+ P) 🌓 Dark/Light mode support
153
+ Q) ♿ Accessibility (screen reader support)
154
+ R) 🌍 Multi-language (i18n)
155
+ S) ⌨️ Keyboard navigation
156
+ T) 🖱️ Drag & drop support
157
+
158
+ Your features: __
159
+ ```
160
+
161
+ **1.7 Data Storage**
162
+
163
+ ```
164
+ How will your application store data?
165
+
166
+ A) 💾 Local files (JSON, XML, Properties)
167
+ B) 🗄️ Embedded database (H2, Derby, SQLite)
168
+ C) 🏢 External database (MySQL, PostgreSQL)
169
+ D) ☁️ Cloud sync (Firebase, AWS, custom API)
170
+ E) 📝 User preferences (Preferences API, Registry)
171
+ F) 🔐 Secure storage (Keychain/Credential Manager)
172
+ G) No persistent storage needed
173
+
174
+ Your choice: __
175
+
176
+ If using database, specify:
177
+ - Schema: Auto-generated or manual?
178
+ - Migration: Flyway, Liquibase, or custom?
179
+ - Backup: Automatic backup strategy?
180
+ ```
181
+
182
+ **1.8 Network Features**
183
+
184
+ ```
185
+ Does your application need network connectivity?
186
+
187
+ A) ✅ Yes - Required for core functionality
188
+ B) 🔄 Optional - Works offline, syncs when online
189
+ C) ❌ No - Fully offline application
190
+
191
+ If yes, what network features:
192
+ A) 🌐 REST API calls (HTTP client)
193
+ B) 🔌 WebSocket (real-time updates)
194
+ C) 📧 Email sending (SMTP)
195
+ D) 📦 Auto-updates (check for new versions)
196
+ E) 🔐 Authentication (OAuth, JWT)
197
+ F) ☁️ Cloud storage sync
198
+ G) 📊 Analytics/telemetry
199
+
200
+ Your features: __
201
+ ```
202
+
203
+ **1.9 User Flows**
204
+
205
+ ```
206
+ Describe the main user flows in your application:
207
+
208
+ Example (Music Player):
209
+ 1. Launch application
210
+ 2. Import music library (drag & drop folder)
211
+ 3. Browse songs by artist/album/genre
212
+ 4. Create playlist
213
+ 5. Play songs with controls (play/pause/skip)
214
+ 6. Edit metadata (tags)
215
+ 7. Export playlist
216
+
217
+ Your flows:
218
+ 1.
219
+ 2.
220
+ 3.
221
+ ...
222
+
223
+ For each flow, you can optionally specify the steps. If not specified, the AI will deduce typical steps.
224
+ ```
225
+
226
+ **1.10 Success Metrics**
227
+
228
+ ```
229
+ How will you measure success?
230
+
231
+ 1. Performance Targets:
232
+ - Startup time: < __ seconds
233
+ - Memory usage: < __ MB
234
+ - CPU usage: < __ % (idle)
235
+
236
+ 2. User Experience:
237
+ - UI responsiveness: < __ ms for actions
238
+ - File load time: < __ seconds for typical file
239
+ - Installation size: < __ MB
240
+
241
+ ⭐ Standard for Desktop MVP:
242
+ - Startup: < 5 seconds
243
+ - Memory: < 100 MB
244
+ - UI response: < 100 ms
245
+ - Install size: < 50 MB
246
+
247
+ 🏆 Standard for Production:
248
+ - Startup: < 2 seconds
249
+ - Memory: < 50 MB (optimized)
250
+ - UI response: < 50 ms
251
+ - Install size: < 20 MB (compressed)
252
+ ```
253
+
254
+ ---
255
+
256
+ ### Phase 1 Output
257
+
258
+ ```
259
+ 📋 PHASE 1 SUMMARY:
260
+
261
+ Application: [name]
262
+ Description: [1 sentence]
263
+ Target Platforms: [Windows/macOS/Linux]
264
+ Application Type: [Single-window/MDI/Multi-window]
265
+ Main Windows: [list]
266
+ UI Components: [list]
267
+ Desktop Features: [list]
268
+ Data Storage: [method]
269
+ Network Features: [list/none]
270
+ User Flows: [list of main flows]
271
+ Success Metrics: [performance targets]
272
+
273
+ Is this correct? (Yes/No)
274
+ ```
275
+
276
+ ---
277
+
278
+ ### 📄 Generate Phase 1 Documents
279
+
280
+ **Generate `project-brief.md` automatically:**
281
+
282
+ - Use template: `.ai-flow/templates/desktop/project-brief.template.md`
283
+ - Fill with all Phase 1 information
284
+ - Write to project root: `project-brief.md`
285
+
286
+ ---
287
+
288
+ **Next Phase:** Phase 2 - UI Components (15-20 min)
289
+
290
+ Read: `.ai-flow/prompts/desktop/flow-build-phase-2.md`
291
+
292
+ ---
293
+
294
+ **Last Updated:** 2025-02-03
295
+ **Version:** 1.0.0