ai-flow-dev 2.7.0 → 2.8.1
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/LICENSE +21 -21
- package/README.md +573 -570
- package/package.json +74 -74
- package/prompts/backend/flow-build-phase-0.md +535 -535
- package/prompts/backend/flow-build-phase-1.md +626 -626
- package/prompts/backend/flow-build-phase-10.md +340 -340
- package/prompts/backend/flow-build-phase-2.md +573 -573
- package/prompts/backend/flow-build-phase-3.md +834 -834
- package/prompts/backend/flow-build-phase-4.md +554 -554
- package/prompts/backend/flow-build-phase-5.md +703 -703
- package/prompts/backend/flow-build-phase-6.md +524 -524
- package/prompts/backend/flow-build-phase-7.md +1001 -1001
- package/prompts/backend/flow-build-phase-8.md +1407 -1407
- package/prompts/backend/flow-build-phase-9.md +477 -477
- package/prompts/backend/flow-build.md +137 -137
- package/prompts/backend/flow-check-review.md +656 -20
- package/prompts/backend/flow-check-test.md +526 -14
- package/prompts/backend/flow-check.md +717 -67
- package/prompts/backend/flow-commit.md +88 -119
- package/prompts/backend/flow-docs-sync.md +354 -354
- package/prompts/backend/flow-finish.md +919 -0
- package/prompts/backend/flow-release.md +949 -0
- package/prompts/backend/flow-work-feature.md +61 -61
- package/prompts/backend/flow-work-fix.md +46 -46
- package/prompts/backend/flow-work-refactor.md +48 -48
- package/prompts/backend/flow-work-resume.md +34 -34
- package/prompts/backend/flow-work.md +1098 -1286
- package/prompts/desktop/flow-build-phase-0.md +359 -359
- package/prompts/desktop/flow-build-phase-1.md +295 -295
- package/prompts/desktop/flow-build-phase-10.md +357 -357
- package/prompts/desktop/flow-build-phase-2.md +282 -282
- package/prompts/desktop/flow-build-phase-3.md +291 -291
- package/prompts/desktop/flow-build-phase-4.md +308 -308
- package/prompts/desktop/flow-build-phase-5.md +269 -269
- package/prompts/desktop/flow-build-phase-6.md +350 -350
- package/prompts/desktop/flow-build-phase-7.md +297 -297
- package/prompts/desktop/flow-build-phase-8.md +541 -541
- package/prompts/desktop/flow-build-phase-9.md +439 -439
- package/prompts/desktop/flow-build.md +156 -156
- package/prompts/desktop/flow-check-review.md +656 -20
- package/prompts/desktop/flow-check-test.md +526 -14
- package/prompts/desktop/flow-check.md +717 -67
- package/prompts/desktop/flow-commit.md +88 -119
- package/prompts/desktop/flow-docs-sync.md +354 -354
- package/prompts/desktop/flow-finish.md +919 -0
- package/prompts/desktop/flow-release.md +662 -0
- package/prompts/desktop/flow-work-feature.md +61 -61
- package/prompts/desktop/flow-work-fix.md +46 -46
- package/prompts/desktop/flow-work-refactor.md +48 -48
- package/prompts/desktop/flow-work-resume.md +34 -34
- package/prompts/desktop/flow-work.md +1202 -1390
- package/prompts/frontend/flow-build-phase-0.md +425 -425
- package/prompts/frontend/flow-build-phase-1.md +626 -626
- package/prompts/frontend/flow-build-phase-10.md +33 -33
- package/prompts/frontend/flow-build-phase-2.md +573 -573
- package/prompts/frontend/flow-build-phase-3.md +782 -782
- package/prompts/frontend/flow-build-phase-4.md +554 -554
- package/prompts/frontend/flow-build-phase-5.md +703 -703
- package/prompts/frontend/flow-build-phase-6.md +524 -524
- package/prompts/frontend/flow-build-phase-7.md +1001 -1001
- package/prompts/frontend/flow-build-phase-8.md +872 -872
- package/prompts/frontend/flow-build-phase-9.md +94 -94
- package/prompts/frontend/flow-build.md +137 -137
- package/prompts/frontend/flow-check-review.md +656 -20
- package/prompts/frontend/flow-check-test.md +526 -14
- package/prompts/frontend/flow-check.md +717 -67
- package/prompts/frontend/flow-commit.md +88 -119
- package/prompts/frontend/flow-docs-sync.md +550 -550
- package/prompts/frontend/flow-finish.md +919 -0
- package/prompts/frontend/flow-release.md +519 -0
- package/prompts/frontend/flow-work-api.md +1547 -0
- package/prompts/frontend/flow-work-feature.md +61 -61
- package/prompts/frontend/flow-work-fix.md +38 -38
- package/prompts/frontend/flow-work-refactor.md +48 -48
- package/prompts/frontend/flow-work-resume.md +34 -34
- package/prompts/frontend/flow-work.md +1595 -1320
- package/prompts/mobile/flow-build-phase-0.md +425 -425
- package/prompts/mobile/flow-build-phase-1.md +626 -626
- package/prompts/mobile/flow-build-phase-10.md +32 -32
- package/prompts/mobile/flow-build-phase-2.md +573 -573
- package/prompts/mobile/flow-build-phase-3.md +782 -782
- package/prompts/mobile/flow-build-phase-4.md +554 -554
- package/prompts/mobile/flow-build-phase-5.md +703 -703
- package/prompts/mobile/flow-build-phase-6.md +524 -524
- package/prompts/mobile/flow-build-phase-7.md +1001 -1001
- package/prompts/mobile/flow-build-phase-8.md +888 -888
- package/prompts/mobile/flow-build-phase-9.md +90 -90
- package/prompts/mobile/flow-build.md +135 -135
- package/prompts/mobile/flow-check-review.md +656 -20
- package/prompts/mobile/flow-check-test.md +526 -14
- package/prompts/mobile/flow-check.md +717 -67
- package/prompts/mobile/flow-commit.md +88 -119
- package/prompts/mobile/flow-docs-sync.md +620 -620
- package/prompts/mobile/flow-finish.md +919 -0
- package/prompts/mobile/flow-release.md +751 -0
- package/prompts/mobile/flow-work-api.md +1500 -0
- package/prompts/mobile/flow-work-feature.md +61 -61
- package/prompts/mobile/flow-work-fix.md +46 -46
- package/prompts/mobile/flow-work-refactor.md +48 -48
- package/prompts/mobile/flow-work-resume.md +34 -34
- package/prompts/mobile/flow-work.md +1605 -1329
- package/prompts/shared/mermaid-guidelines.md +102 -102
- package/prompts/shared/scope-levels.md +114 -114
- package/prompts/shared/smart-skip-preflight.md +214 -214
- package/prompts/shared/story-points.md +55 -55
- package/prompts/shared/task-format.md +74 -74
- package/prompts/shared/task-summary-template.md +277 -277
- package/templates/AGENT.template.md +443 -443
- package/templates/backend/.clauderules.template +112 -112
- package/templates/backend/.cursorrules.template +102 -102
- package/templates/backend/README.template.md +2 -2
- package/templates/backend/ai-instructions.template.md +2 -2
- package/templates/backend/copilot-instructions.template.md +2 -2
- package/templates/backend/docs/api.template.md +320 -320
- package/templates/backend/docs/business-flows.template.md +97 -97
- package/templates/backend/docs/code-standards.template.md +2 -2
- package/templates/backend/docs/contributing.template.md +3 -3
- package/templates/backend/docs/data-model.template.md +520 -520
- package/templates/backend/docs/testing.template.md +2 -2
- package/templates/backend/project-brief.template.md +2 -2
- package/templates/backend/specs/configuration.template.md +2 -2
- package/templates/backend/specs/security.template.md +2 -2
- package/templates/desktop/.clauderules.template +112 -112
- package/templates/desktop/.cursorrules.template +102 -102
- package/templates/desktop/README.template.md +170 -170
- package/templates/desktop/ai-instructions.template.md +366 -366
- package/templates/desktop/copilot-instructions.template.md +140 -140
- package/templates/desktop/docs/docs/api.template.md +320 -320
- package/templates/desktop/docs/docs/architecture.template.md +724 -724
- package/templates/desktop/docs/docs/business-flows.template.md +102 -102
- package/templates/desktop/docs/docs/code-standards.template.md +792 -792
- package/templates/desktop/docs/docs/contributing.template.md +149 -149
- package/templates/desktop/docs/docs/data-model.template.md +520 -520
- package/templates/desktop/docs/docs/operations.template.md +720 -720
- package/templates/desktop/docs/docs/testing.template.md +722 -722
- package/templates/desktop/project-brief.template.md +150 -150
- package/templates/desktop/specs/specs/configuration.template.md +121 -121
- package/templates/desktop/specs/specs/security.template.md +392 -392
- package/templates/frontend/README.template.md +2 -2
- package/templates/frontend/ai-instructions.template.md +2 -2
- package/templates/frontend/docs/api-integration.template.md +362 -362
- package/templates/frontend/docs/components.template.md +2 -2
- package/templates/frontend/docs/error-handling.template.md +360 -360
- package/templates/frontend/docs/operations.template.md +107 -107
- package/templates/frontend/docs/performance.template.md +124 -124
- package/templates/frontend/docs/pwa.template.md +119 -119
- package/templates/frontend/docs/state-management.template.md +2 -2
- package/templates/frontend/docs/styling.template.md +2 -2
- package/templates/frontend/docs/testing.template.md +2 -2
- package/templates/frontend/project-brief.template.md +2 -2
- package/templates/frontend/specs/accessibility.template.md +95 -95
- package/templates/frontend/specs/configuration.template.md +2 -2
- package/templates/frontend/specs/security.template.md +175 -175
- package/templates/fullstack/README.template.md +252 -252
- package/templates/fullstack/ai-instructions.template.md +444 -444
- package/templates/fullstack/project-brief.template.md +157 -157
- package/templates/fullstack/specs/configuration.template.md +340 -340
- package/templates/mobile/README.template.md +167 -167
- package/templates/mobile/ai-instructions.template.md +196 -196
- package/templates/mobile/docs/app-store.template.md +135 -135
- package/templates/mobile/docs/architecture.template.md +63 -63
- package/templates/mobile/docs/native-features.template.md +94 -94
- package/templates/mobile/docs/navigation.template.md +59 -59
- package/templates/mobile/docs/offline-strategy.template.md +65 -65
- package/templates/mobile/docs/permissions.template.md +56 -56
- package/templates/mobile/docs/state-management.template.md +85 -85
- package/templates/mobile/docs/testing.template.md +109 -109
- package/templates/mobile/project-brief.template.md +69 -69
- package/templates/mobile/specs/build-configuration.template.md +91 -91
- package/templates/mobile/specs/deployment.template.md +92 -92
- package/templates/work.template.md +61 -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
|