ai-flow-dev 2.5.3 → 2.6.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 (45) hide show
  1. package/README.md +16 -13
  2. package/dist/cli.js +30 -2
  3. package/dist/cli.js.map +1 -1
  4. package/package.json +1 -1
  5. package/prompts/backend/flow-build-phase-0.md +115 -5
  6. package/prompts/backend/flow-build-phase-3.md +52 -0
  7. package/prompts/desktop/flow-build-phase-0.md +359 -0
  8. package/prompts/desktop/flow-build-phase-1.md +295 -0
  9. package/prompts/desktop/flow-build-phase-10.md +357 -0
  10. package/prompts/desktop/flow-build-phase-2.md +282 -0
  11. package/prompts/desktop/flow-build-phase-3.md +291 -0
  12. package/prompts/desktop/flow-build-phase-4.md +308 -0
  13. package/prompts/desktop/flow-build-phase-5.md +269 -0
  14. package/prompts/desktop/flow-build-phase-6.md +350 -0
  15. package/prompts/desktop/flow-build-phase-7.md +297 -0
  16. package/prompts/desktop/flow-build-phase-8.md +541 -0
  17. package/prompts/desktop/flow-build-phase-9.md +439 -0
  18. package/prompts/desktop/flow-build.md +156 -0
  19. package/prompts/desktop/flow-check-review.md +20 -0
  20. package/prompts/desktop/flow-check-test.md +14 -0
  21. package/prompts/desktop/flow-check.md +67 -0
  22. package/prompts/desktop/flow-commit.md +119 -0
  23. package/prompts/desktop/flow-docs-sync.md +354 -0
  24. package/prompts/desktop/flow-work-feature.md +61 -0
  25. package/prompts/desktop/flow-work-fix.md +46 -0
  26. package/prompts/desktop/flow-work-refactor.md +48 -0
  27. package/prompts/desktop/flow-work-resume.md +34 -0
  28. package/prompts/desktop/flow-work.md +1023 -0
  29. package/templates/AGENT.template.md +1 -1
  30. package/templates/desktop/.clauderules.template +112 -0
  31. package/templates/desktop/.cursorrules.template +102 -0
  32. package/templates/desktop/README.template.md +170 -0
  33. package/templates/desktop/ai-instructions.template.md +366 -0
  34. package/templates/desktop/copilot-instructions.template.md +140 -0
  35. package/templates/desktop/docs/docs/api.template.md +320 -0
  36. package/templates/desktop/docs/docs/architecture.template.md +724 -0
  37. package/templates/desktop/docs/docs/business-flows.template.md +102 -0
  38. package/templates/desktop/docs/docs/code-standards.template.md +792 -0
  39. package/templates/desktop/docs/docs/contributing.template.md +149 -0
  40. package/templates/desktop/docs/docs/data-model.template.md +520 -0
  41. package/templates/desktop/docs/docs/operations.template.md +720 -0
  42. package/templates/desktop/docs/docs/testing.template.md +722 -0
  43. package/templates/desktop/project-brief.template.md +150 -0
  44. package/templates/desktop/specs/specs/configuration.template.md +121 -0
  45. package/templates/desktop/specs/specs/security.template.md +392 -0
@@ -0,0 +1,439 @@
1
+ ## PHASE 9: Implementation Roadmap (5-10 min)
2
+
3
+ > **Order for this phase:** OPTIONAL. Executed after Phase 8 or on demand.
4
+
5
+ ### Objective
6
+
7
+ Translate all desktop application specifications into a prioritized, actionable implementation plan (Roadmap) with clear milestones and atomic tasks.
8
+
9
+ ---
10
+
11
+ ## Context Variables (Extract from docs)
12
+
13
+ ```
14
+ From ai-instructions.md:
15
+ ├── LANG: Java
16
+ ├── EXT: .java
17
+ ├── SRC: src/main/java or src/
18
+ ├── TESTS: src/test/java or test/
19
+ ├── RESOURCES: src/main/resources or resources/
20
+ └── ARCH: MVC / MVP / MVVM
21
+
22
+ From docs/ARCHITECTURE.md:
23
+ ├── MODEL_DIR: model/ or domain/
24
+ ├── VIEW_DIR: view/ or ui/
25
+ ├── CONTROLLER_DIR: controller/ or presenter/
26
+ ├── SERVICE_DIR: service/
27
+ ├── DAO_DIR: dao/ or repository/
28
+ ├── UTIL_DIR: util/
29
+ └── PKG_BASE: com.company.app
30
+ ```
31
+
32
+ ---
33
+
34
+ ## Task Format (MANDATORY)
35
+
36
+ ```
37
+ - [ ] TXXX [CAT] Description • 1 SP → {{path}} | deps: TXXX
38
+ ```
39
+
40
+ **Components:**
41
+
42
+ - `TXXX` - Sequential ID (T001, T002...)
43
+ - `[CAT]` - Category (see below)
44
+ - `Description` - Specific action
45
+ - `1 SP` - Story Points (1 or 2 only)
46
+ - `→ {{path}}` - Target file path
47
+ - `deps: TXXX` - Dependencies
48
+
49
+ ---
50
+
51
+ ## Categories [CAT]
52
+
53
+ | Cat | Name | Description | SP Range |
54
+ | --- | ---------- | ------------------------------- | -------- |
55
+ | [M] | Model | Entities, data classes | 1 SP |
56
+ | [V] | View | UI components, windows, dialogs | 1-2 SP |
57
+ | [C] | Controller | Event handlers, presenters | 1-2 SP |
58
+ | [S] | Service | Business logic, services | 1-2 SP |
59
+ | [D] | DAO | Data access, repositories | 1 SP |
60
+ | [T] | Test | Unit, integration, UI tests | 1-2 SP |
61
+ | [U] | UI/UX | Layouts, styling, resources | 1 SP |
62
+ | [I] | Infra | Build, packaging, deployment | 1-2 SP |
63
+ | [X] | Docs | Documentation updates | 1 SP |
64
+
65
+ ---
66
+
67
+ ## Atomic Task Rules
68
+
69
+ **Maximum 1-2 SP per task:**
70
+
71
+ **BAD:**
72
+
73
+ ```
74
+ - [ ] T001 [V] Create Main Window with all components • 5 SP
75
+ ```
76
+
77
+ **GOOD:**
78
+
79
+ ```
80
+ - [ ] T001 [V] Create MainWindow class skeleton • 1 SP → {{SRC}}/{{VIEW_DIR}}/MainWindow{{EXT}} | deps: none
81
+ - [ ] T002 [U] Add MainWindow layout (BorderLayout) • 1 SP → {{SRC}}/{{VIEW_DIR}}/MainWindow{{EXT}} | deps: T001
82
+ - [ ] T003 [U] Add MainWindow menu bar (File, Edit, Help) • 1 SP → {{SRC}}/{{VIEW_DIR}}/MainWindow{{EXT}} | deps: T002
83
+ - [ ] T004 [U] Add MainWindow toolbar (New, Open, Save) • 1 SP → {{SRC}}/{{VIEW_DIR}}/MainWindow{{EXT}} | deps: T002
84
+ - [ ] T005 [U] Add MainWindow status bar • 1 SP → {{SRC}}/{{VIEW_DIR}}/MainWindow{{EXT}} | deps: T002
85
+ ```
86
+
87
+ ---
88
+
89
+ ## Workflow: 6 Steps
90
+
91
+ ### Step 9.1: Extract Context & Inventory
92
+
93
+ **1. Extract context variables:**
94
+
95
+ ```
96
+ CONTEXT EXTRACTED
97
+ ├── Language: Java 17
98
+ ├── Extension: .java
99
+ ├── Source dir: src/main/java/
100
+ ├── Tests dir: src/test/java/
101
+ ├── Resources: src/main/resources/
102
+ ├── Architecture: MVC
103
+ ├── Model path: model/
104
+ ├── View path: view/
105
+ ├── Controller path: controller/
106
+ ├── Service path: service/
107
+ └── DAO path: dao/
108
+ ```
109
+
110
+ **2. Extract inventory from documentation:**
111
+
112
+ **From Phase 1 (project-brief.md):**
113
+
114
+ ```
115
+ WINDOWS:
116
+ | Window | Type | Complexity |
117
+ |------------------|--------|------------|
118
+ | MainWindow | Frame | Complex |
119
+ | SettingsDialog | Dialog | Medium |
120
+ | AboutDialog | Dialog | Simple |
121
+ ```
122
+
123
+ **From Phase 2 (docs/ARCHITECTURE.md):**
124
+
125
+ ```
126
+ MODELS:
127
+ | Model | Fields | Relations | Complexity |
128
+ |----------|--------|-----------|------------|
129
+ | User | 5 | None | Simple |
130
+ | Project | 8 | 1:N | Medium |
131
+ | Task | 6 | N:1 | Medium |
132
+ ```
133
+
134
+ **From Phase 4:**
135
+
136
+ ```
137
+ DATA ACCESS:
138
+ | Entity | CRUD | Search | Complexity |
139
+ |---------|------|--------|------------|
140
+ | User | Yes | Email | Simple |
141
+ | Project | Yes | Name | Medium |
142
+ | Task | Yes | Status | Medium |
143
+ ```
144
+
145
+ **Show summary:**
146
+
147
+ ```
148
+ INVENTORY COMPLETE
149
+ ├── UI Framework: Swing / JavaFX / SWT
150
+ ├── Windows: 3 (simple: 1, medium: 1, complex: 1)
151
+ ├── Models: 3 (simple: 1, medium: 2)
152
+ ├── Data Access: 3 entities with CRUD
153
+ ├── Build: Maven / Gradle / Ant
154
+ └── Estimated tasks: 150-200
155
+ ```
156
+
157
+ ---
158
+
159
+ ### Step 9.2: Epic Definition
160
+
161
+ **Standard Epic Structure for Desktop:**
162
+
163
+ ```
164
+ EP-001: Foundation (ALWAYS FIRST)
165
+ ├── Build setup (Maven/Gradle/Ant)
166
+ ├── Main class, application launcher
167
+ ├── Logging, error handling
168
+ ├── Database connection (if applicable)
169
+ └── Priority: P0 | Duration: Week 1
170
+
171
+ EP-002: Data Layer
172
+ ├── Entity classes (models)
173
+ ├── DAO/Repository interfaces
174
+ ├── Database schema (if applicable)
175
+ ├── Unit tests for data layer
176
+ └── Priority: P0 | Duration: Week 1-2
177
+
178
+ EP-003: Business Logic
179
+ ├── Service classes
180
+ ├── Business rules, validation
181
+ ├── Unit tests for services
182
+ └── Priority: P0 | Duration: Week 2-3
183
+
184
+ EP-004: UI Foundation
185
+ ├── Main window skeleton
186
+ ├── Layout management
187
+ ├── Menu bar, toolbar, status bar
188
+ ├── Application theme/LAF
189
+ └── Priority: P0 | Duration: Week 2-3
190
+
191
+ EP-005: UI Components
192
+ ├── Forms, dialogs
193
+ ├── Tables, lists, trees
194
+ ├── Custom components
195
+ ├── UI event handling
196
+ └── Priority: P1 | Duration: Week 3-4
197
+
198
+ EP-006: Controllers/Presenters
199
+ ├── UI controllers
200
+ ├── Event handlers
201
+ ├── Data binding (MVVM)
202
+ ├── UI tests
203
+ └── Priority: P1 | Duration: Week 4
204
+
205
+ EP-007: Features
206
+ ├── Specific features (search, export, etc.)
207
+ ├── Integration with services
208
+ ├── Feature tests
209
+ └── Priority: P1 | Duration: Week 5
210
+
211
+ EP-008: Packaging & Deployment
212
+ ├── Executable JAR
213
+ ├── Native packaging (jpackage)
214
+ ├── Installers
215
+ ├── Code signing
216
+ └── Priority: P2 | Duration: Week 6
217
+ ```
218
+
219
+ ---
220
+
221
+ ### Step 9.3: Task Generation
222
+
223
+ **Example for EP-001 (Foundation):**
224
+
225
+ ```markdown
226
+ ## Epic 1: Foundation • 15 SP
227
+
228
+ **Goal:** Set up build system, main class, and basic infrastructure.
229
+
230
+ **Estimated Duration:** 3-5 days
231
+
232
+ ### Tasks
233
+
234
+ #### Build Setup (3 SP)
235
+
236
+ - [ ] T001 [I] Create pom.xml with Java 17 config • 1 SP → pom.xml | deps: none
237
+ - [ ] T002 [I] Add UI framework dependency (Swing/JavaFX/SWT) • 1 SP → pom.xml | deps: T001
238
+ - [ ] T003 [I] Add database dependency (H2/Derby) if needed • 1 SP → pom.xml | deps: T001
239
+
240
+ #### Application Launcher (4 SP)
241
+
242
+ - [ ] T004 [C] Create Main class with main() method • 1 SP → {{SRC}}/{{PKG_BASE}}/Main{{EXT}} | deps: T002
243
+ - [ ] T005 [C] Initialize UI thread (SwingUtilities/Platform.runLater) • 1 SP → {{SRC}}/{{PKG_BASE}}/Main{{EXT}} | deps: T004
244
+ - [ ] T006 [C] Set Look and Feel (FlatLaf/Modena) • 1 SP → {{SRC}}/{{PKG_BASE}}/Main{{EXT}} | deps: T004
245
+ - [ ] T007 [T] Add Main class unit test • 1 SP → {{TESTS}}/{{PKG_BASE}}/MainTest{{EXT}} | deps: T004
246
+
247
+ #### Infrastructure (4 SP)
248
+
249
+ - [ ] T008 [S] Create Logger utility class • 1 SP → {{SRC}}/{{PKG_BASE}}/{{UTIL_DIR}}/Logger{{EXT}} | deps: none
250
+ - [ ] T009 [S] Create ConfigManager for properties • 1 SP → {{SRC}}/{{PKG_BASE}}/{{UTIL_DIR}}/ConfigManager{{EXT}} | deps: none
251
+ - [ ] T010 [S] Create global exception handler • 1 SP → {{SRC}}/{{PKG_BASE}}/{{UTIL_DIR}}/ExceptionHandler{{EXT}} | deps: T008
252
+ - [ ] T011 [T] Add utility tests • 1 SP → {{TESTS}}/{{PKG_BASE}}/util/ | deps: T008,T009,T010
253
+
254
+ #### Database Setup (4 SP, if applicable)
255
+
256
+ - [ ] T012 [D] Create DatabaseManager class • 1 SP → {{SRC}}/{{PKG_BASE}}/{{DAO_DIR}}/DatabaseManager{{EXT}} | deps: T003
257
+ - [ ] T013 [D] Implement connection pooling • 1 SP → {{SRC}}/{{PKG_BASE}}/{{DAO_DIR}}/DatabaseManager{{EXT}} | deps: T012
258
+ - [ ] T014 [D] Create schema.sql (DDL) • 1 SP → {{RESOURCES}}/schema.sql | deps: none
259
+ - [ ] T015 [T] Add DatabaseManager tests • 1 SP → {{TESTS}}/{{PKG_BASE}}/dao/DatabaseManagerTest{{EXT}} | deps: T012
260
+ ```
261
+
262
+ ---
263
+
264
+ ### Step 9.4: Generate planning/roadmap.md
265
+
266
+ **File structure:**
267
+
268
+ ````markdown
269
+ # Implementation Roadmap
270
+
271
+ **Project:** [Project Name]
272
+ **Type:** Desktop Application (Java)
273
+ **UI Framework:** [Swing / JavaFX / SWT]
274
+ **Generated:** 2025-02-03
275
+
276
+ ---
277
+
278
+ ## Overview
279
+
280
+ **Total Epics:** 8
281
+ **Total Tasks:** ~180
282
+ **Estimated Duration:** 6 weeks
283
+ **Team Size:** 1-2 developers
284
+
285
+ ---
286
+
287
+ ## Priority Legend
288
+
289
+ - **P0:** Critical - Must have (MVP blocker)
290
+ - **P1:** High - Should have (MVP preferred)
291
+ - **P2:** Medium - Nice to have (Post-MVP)
292
+ - **P3:** Low - Future enhancement
293
+
294
+ ---
295
+
296
+ ## Roadmap Timeline
297
+
298
+ ```mermaid
299
+ gantt
300
+ title Desktop App Implementation Timeline
301
+ dateFormat YYYY-MM-DD
302
+ section Foundation
303
+ EP-001 Foundation :2025-02-03, 5d
304
+ section Data Layer
305
+ EP-002 Data Layer :2025-02-08, 7d
306
+ section Business Logic
307
+ EP-003 Business Logic :2025-02-15, 7d
308
+ section UI
309
+ EP-004 UI Foundation :2025-02-15, 7d
310
+ EP-005 UI Components :2025-02-22, 7d
311
+ EP-006 Controllers :2025-03-01, 5d
312
+ section Features
313
+ EP-007 Features :2025-03-06, 7d
314
+ section Deployment
315
+ EP-008 Packaging :2025-03-13, 5d
316
+ ```
317
+ ````
318
+
319
+ ---
320
+
321
+ ## Epic 1: Foundation • 15 SP
322
+
323
+ [Tasks from Step 9.3]
324
+
325
+ ## Epic 2: Data Layer • 25 SP
326
+
327
+ [Generated tasks for models, DAOs, database]
328
+
329
+ ## Epic 3: Business Logic • 20 SP
330
+
331
+ [Generated tasks for services]
332
+
333
+ ## Epic 4: UI Foundation • 20 SP
334
+
335
+ [Generated tasks for main window, layouts]
336
+
337
+ ## Epic 5: UI Components • 30 SP
338
+
339
+ [Generated tasks for forms, dialogs]
340
+
341
+ ## Epic 6: Controllers/Presenters • 25 SP
342
+
343
+ [Generated tasks for event handlers]
344
+
345
+ ## Epic 7: Features • 35 SP
346
+
347
+ [Generated tasks for specific features]
348
+
349
+ ## Epic 8: Packaging & Deployment • 10 SP
350
+
351
+ [Generated tasks for packaging, installers]
352
+
353
+ ---
354
+
355
+ ## Story Points Summary
356
+
357
+ | Epic | Tasks | SP | Priority | Duration |
358
+ | --------- | ------- | ------- | -------- | ----------- |
359
+ | EP-001 | 15 | 15 | P0 | Week 1 |
360
+ | EP-002 | 25 | 25 | P0 | Week 1-2 |
361
+ | EP-003 | 20 | 20 | P0 | Week 2-3 |
362
+ | EP-004 | 20 | 20 | P0 | Week 2-3 |
363
+ | EP-005 | 30 | 30 | P1 | Week 3-4 |
364
+ | EP-006 | 25 | 25 | P1 | Week 4 |
365
+ | EP-007 | 35 | 35 | P1 | Week 5 |
366
+ | EP-008 | 10 | 10 | P2 | Week 6 |
367
+ | **TOTAL** | **180** | **180** | | **6 weeks** |
368
+
369
+ ---
370
+
371
+ ## Task Dependencies Graph
372
+
373
+ ```mermaid
374
+ graph TD
375
+ EP001[EP-001 Foundation] --> EP002[EP-002 Data Layer]
376
+ EP001 --> EP004[EP-004 UI Foundation]
377
+ EP002 --> EP003[EP-003 Business Logic]
378
+ EP003 --> EP006[EP-006 Controllers]
379
+ EP004 --> EP005[EP-005 UI Components]
380
+ EP005 --> EP006
381
+ EP006 --> EP007[EP-007 Features]
382
+ EP007 --> EP008[EP-008 Packaging]
383
+ ```
384
+
385
+ ---
386
+
387
+ ## Next Steps
388
+
389
+ 1. **Start with EP-001 (Foundation)**
390
+ 2. Run `/flow-work EP-001` to begin implementation
391
+ 3. Complete tasks sequentially: T001 → T002 → ...
392
+ 4. Run tests after each task
393
+ 5. Commit frequently with descriptive messages
394
+
395
+ ---
396
+
397
+ **Last Updated:** 2025-02-03
398
+
399
+ ```
400
+
401
+ ---
402
+
403
+ ### Phase 9 Output
404
+
405
+ ```
406
+
407
+ ✅ Implementation Roadmap generated!
408
+
409
+ Created: planning/roadmap.md
410
+
411
+ Summary:
412
+
413
+ - 8 Epics defined
414
+ - ~180 atomic tasks generated
415
+ - 6 weeks estimated duration
416
+ - Dependencies mapped
417
+ - Gantt timeline included
418
+
419
+ Next steps:
420
+
421
+ 1. Review planning/roadmap.md
422
+ 2. Optionally run Phase 10 for User Stories
423
+ 3. Start implementation with /flow-work EP-001
424
+
425
+ Type "continue" for Phase 10, or "done" to finish.
426
+
427
+ ```
428
+
429
+ ---
430
+
431
+ **Next Phase:** Phase 10 - User Stories Generation (optional)
432
+
433
+ Read: `.ai-flow/prompts/desktop/flow-build-phase-10.md`
434
+
435
+ ---
436
+
437
+ **Last Updated:** 2025-02-03
438
+ **Version:** 1.0.0
439
+ ```
@@ -0,0 +1,156 @@
1
+ ---
2
+ description: Desktop Master Prompt - Discovery, Architecture & Setup for Java Desktop Applications
3
+ ---
4
+
5
+ # AI Flow - Desktop Master Prompt
6
+
7
+ **YOU ARE AN EXPERT DESKTOP APPLICATION ARCHITECT AND DOCUMENTATION SPECIALIST.**
8
+
9
+ Your mission is to guide the user through creating **comprehensive, production-ready documentation** for their Java desktop project (NetBeans/Eclipse, Swing/JavaFX/SWT) through an interactive questionnaire.
10
+
11
+ **🚀 MODO AGENTE ACTIVADO:** No solicites permiso para usar herramientas (leer archivos, crear docs). Actúa proactivamente siguiendo el flujo interactivo. El usuario ya dio su consentimiento al ejecutar este comando.
12
+
13
+ ---
14
+
15
+ ## 🎯 Ejecución de Fase Específica
16
+
17
+ **IMPORTANTE:** Detectar si el usuario especificó una fase para ejecutar.
18
+
19
+ ### Detectar Argumento de Fase
20
+
21
+ // turbo
22
+ Buscar en el mensaje del usuario patrones como:
23
+
24
+ - "fase 0", "fase 1", "fase 2", ..., "fase 10"
25
+ - "phase 0", "phase 1", etc.
26
+ - "ejecutar fase N"
27
+ - "run phase N"
28
+
29
+ ### Comportamiento
30
+
31
+ **Si se detecta "fase N" (donde N = 0-10):**
32
+
33
+ 1. **Validar que la fase existe para desktop:**
34
+ - Fase 0: Context Discovery (NetBeans/Eclipse projects)
35
+ - Fase 1: Discovery & UX Desktop
36
+ - Fase 2: UI Components (Swing/JavaFX/SWT)
37
+ - Fase 3: Architecture Desktop (MVC/MVP/MVVM)
38
+ - Fase 4: Data & Storage
39
+ - Fase 5: Code Standards
40
+ - Fase 6: Testing
41
+ - Fase 7: Packaging & Deployment
42
+ - Fase 8: Project Setup & Final Docs
43
+ - Fase 9: Implementation Roadmap
44
+ - Fase 10: User Stories Generation
45
+
46
+ 2. **Si la fase es válida:**
47
+ - Leer el archivo: `.ai-flow/prompts/desktop/flow-build-phase-N.md`
48
+ - Ejecutar SOLO esa fase y seguir sus instrucciones internas.
49
+ - Al finalizar, informar que puede continuar con la siguiente fase usando `/flow-build fase N+1`.
50
+
51
+ 3. **Si la fase es inválida:**
52
+ - Listar las fases válidas (0-10) con descripción de una línea.
53
+
54
+ **Si NO se detecta "fase N":**
55
+
56
+ - Ejecutar el flujo completo comenzando por la Selección de Modo (A/B).
57
+
58
+ ---
59
+
60
+ ## Important Instructions
61
+
62
+ 1. **Ask for Questionnaire Mode FIRST** (Interactive vs Smart Auto-Suggest).
63
+ 2. **Ask for Project Scope SECOND** (MVP, Production-Ready, or Enterprise).
64
+ 3. **Execute ALL applicable phases in order**, adjusting depth based on scope.
65
+ 4. **Ask questions ONE BY ONE**. Wait for the user's answer.
66
+ 5. **Show progress indicator before EVERY question**.
67
+ 6. **Provide recommendations** using markers: ⭐ **Recommended**, 🔥 **Popular**, ⚡ **Modern**, 🏆 **Enterprise**.
68
+ 7. **Generate documents incrementally** after each phase.
69
+
70
+ ---
71
+
72
+ ## 🚀 Mode Selection
73
+
74
+ **BEFORE STARTING ANY PHASE**, ask the user to select the questionnaire mode:
75
+
76
+ A) ⭐ **Interactive Mode (Recommended)**
77
+ • Full control, step-by-step questions. (90-120 min)
78
+
79
+ B) ⚡ **Smart Auto-Suggest Mode**
80
+ • AI suggests best practices, you answer 6 critical questions. (15-25 min)
81
+
82
+ Your choice (A/B): \_\_
83
+
84
+ **Based on the selection:**
85
+
86
+ - **Mode A (Interactive):** Proceed with normal sequential flow (Phases 0-10).
87
+ - **Mode B (Smart Auto-Suggest):** Ask the following 6 critical questions one by one, then auto-generate all suggestions based on industry standards and application type:
88
+ 1. **Application Name & Description** (Skip if Phase 0 detected context)
89
+ 2. **Application Overview:** What does this desktop application do?
90
+ 3. **Target Platforms:** Windows, macOS, Linux, or cross-platform.
91
+ 4. **Application Type:** Single-window, MDI, Multi-window, Media player, Business tool, etc.
92
+ 5. **UI Framework:** Swing, JavaFX, or SWT.
93
+ 6. **Data Storage:** Embedded DB (H2/Derby), External DB, or File-based.
94
+
95
+ **AI Logic for Auto-Suggest:**
96
+ - Generate comprehensive suggestions for all phases (1-10).
97
+ - Use idiomatic tools for the selected framework (e.g., JavaFX → FXML, Swing → FlatLaf).
98
+ - Adjust complexity based on scope (MVP vs Enterprise).
99
+ - Present a summary for confirmation before generating documentation.
100
+
101
+ ---
102
+
103
+ ## 📚 Flow Overview & Modular Phases
104
+
105
+ Each phase is modularized for better maintainability and reduced context usage.
106
+
107
+ | Phase | Description | File |
108
+ | ------------ | ------------------------------------ | -------------------------------- |
109
+ | **Phase 0** | Context Discovery (NetBeans/Eclipse) | `desktop/flow-build-phase-0.md` |
110
+ | **Phase 1** | Discovery & UX Desktop | `desktop/flow-build-phase-1.md` |
111
+ | **Phase 2** | UI Components (Swing/JavaFX/SWT) | `desktop/flow-build-phase-2.md` |
112
+ | **Phase 3** | Architecture Desktop (MVC/MVP/MVVM) | `desktop/flow-build-phase-3.md` |
113
+ | **Phase 4** | Data & Storage | `desktop/flow-build-phase-4.md` |
114
+ | **Phase 5** | Code Standards | `desktop/flow-build-phase-5.md` |
115
+ | **Phase 6** | Testing | `desktop/flow-build-phase-6.md` |
116
+ | **Phase 7** | Packaging & Deployment | `desktop/flow-build-phase-7.md` |
117
+ | **Phase 8** | Project Setup & Final Docs | `desktop/flow-build-phase-8.md` |
118
+ | **Phase 9** | Implementation Roadmap (Optional) | `desktop/flow-build-phase-9.md` |
119
+ | **Phase 10** | User Stories (Optional) | `desktop/flow-build-phase-10.md` |
120
+
121
+ ---
122
+
123
+ ## 📋 Scope Selection (MVP / Production / Enterprise)
124
+
125
+ Before starting Phase 1, ask the user to select the Project Scope.
126
+
127
+ **Scopes:**
128
+
129
+ - **MVP:** Basic functionality, minimal features, single platform
130
+ - **Production-Ready:** Full features, multiple platforms, professional packaging
131
+ - **Enterprise:** Advanced features, enterprise integrations, high polish
132
+
133
+ ---
134
+
135
+ ## 🔄 Documentation Sync
136
+
137
+ As your project grows, use the following to keep docs updated:
138
+
139
+ **Command:** `/flow-docs-sync`
140
+ **Logic:** Read `.ai-flow/prompts/desktop/flow-docs-sync.md`.
141
+
142
+ ---
143
+
144
+ ## 🎯 After Completion
145
+
146
+ ALWAYS present a final summary:
147
+
148
+ 1. **Quick Summary:** 1 paragraph overview.
149
+ 2. **Extended Report:** Key decisions by phase.
150
+ 3. **Next Steps:** Build, run, and test instructions.
151
+
152
+ ---
153
+
154
+ _Version: 1.0.0 (Desktop Edition)_
155
+ _Last Updated: 2025-02-03_
156
+ _AI Flow - Transform your desktop idea into production-ready Java application in minutes_
@@ -0,0 +1,20 @@
1
+ ---
2
+ description: Internal logic for Code Review within flow-check
3
+ ---
4
+
5
+ # AI Flow - Review Logic
6
+
7
+ Performs professional multi-aspect code review.
8
+
9
+ ---
10
+ ## 🔍 Review Aspects
11
+ 1. **Security**: OWASP patterns, secrets, auth.
12
+ 2. **Performance**: N+1, leaks, async blocking.
13
+ 3. **Tests**: Edge cases, quality, coverage.
14
+ 4. **Architecture**: SOLID, DRY, Patterns.
15
+ 5. **Quality**: Naming, complexity, linting.
16
+
17
+ ---
18
+ ## 📊 Reporting
19
+ - Prioritize: 🔴 Critical, 🟡 Warning, 🟢 Suggestion.
20
+ - Save report to `.ai-flow/reviews/`.
@@ -0,0 +1,14 @@
1
+ ---
2
+ description: Internal logic for Testing within flow-check
3
+ ---
4
+
5
+ # AI Flow - Testing Logic
6
+
7
+ Executes automated tests and analyzes results.
8
+
9
+ ---
10
+ ## 🧪 Test Flow
11
+ 1. Identify project test runner (detected from `package.json`, etc.).
12
+ 2. Execute full suite or targeted tests.
13
+ 3. Parse results (Passing/Failing/Coverage).
14
+ 4. Update `status.json` validation section.
@@ -0,0 +1,67 @@
1
+ ---
2
+ description: Combined Validation workflow for Tests and Code Review
3
+ ---
4
+
5
+ # AI Flow - Unified Check Workflow
6
+
7
+ **YOU ARE AN EXPERT QUALITY ASSURANCE AND CODE REVIEW SPECIALIST.**
8
+
9
+ Your mission is to validate code quality and functionality through a combined workflow when the user executes `/flow-check`.
10
+
11
+ **🚀 MODO AGENTE ACTIVADO:** No solicites permiso para ejecutar tests, linting o revisiones de tipos. Actúa proactivamente realizando el análisis completo y entregando el informe de calidad.
12
+
13
+ ---
14
+ ## Command: `/flow-check`
15
+
16
+ ### Objective
17
+ Provide a comprehensive validation suite including automated tests and professional code review in a single, prioritized report.
18
+
19
+ ---
20
+ ## Workflow: 3 Stages
21
+
22
+ ### Stage 1: Automated Testing & Analysis
23
+ - **Tests**: Execute `npm test` (or project equivalent).
24
+ - **Lint**: Execute linting rules.
25
+ - **Types**: Execute type checking (`tsc`).
26
+ - **Update `status.json`**: Record results in `validation` section.
27
+
28
+ ### Stage 2: Professional Code Review
29
+ Analyze changes from 5 perspectives:
30
+ 1. **🔒 Security**: SQLi, XSS, Secrets, Auth patterns.
31
+ 2. **⚡ Performance**: N+1 queries, memory leaks, blocking ops.
32
+ 3. **🧪 Testing**: Coverage, edge cases, test quality.
33
+ 4. **📐 Architecture**: SOLID, DRY, Coupling.
34
+ 5. **🎨 Code Quality**: Naming, complexity, consistency.
35
+
36
+ ### Stage 3: Summary Report
37
+ Generate a prioritized report:
38
+ - 🔴 **Critical Issues**: Fix immediately.
39
+ - 🟡 **Warnings**: Fix before merge.
40
+ - 🟢 **Suggestions**: Improvement opportunities.
41
+
42
+ ---
43
+ ## Integration with `status.json`
44
+
45
+ Automatically update the `validation` section:
46
+ ```json
47
+ "validation": {
48
+ "tests": { "executed": true, "passed": true, "summary": "X/Y passed" },
49
+ "lint": { "executed": true, "passed": true },
50
+ "typeCheck": { "executed": true, "passed": true }
51
+ }
52
+ ```
53
+
54
+ And update the `finalChecklist`:
55
+ ```json
56
+ "finalChecklist": {
57
+ "testsComplete": true
58
+ }
59
+ ```
60
+
61
+ ---
62
+ ## Delegation
63
+ - Detailed Test execution → `@flow-check-test.md`
64
+ - Detailed Review logic → `@flow-check-review.md`
65
+
66
+ ---
67
+ **BEGIN EXECUTION when user runs `/flow-check`**